|
|
|
@ -29,6 +29,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
@ -87,6 +88,7 @@ public class MzsyBusinessServiceImpl implements MzsyBusinessService {
|
|
|
|
nodeLogAddDTO.setCreater(submitName+"("+submitNo+")");
|
|
|
|
nodeLogAddDTO.setCreater(submitName+"("+submitNo+")");
|
|
|
|
nodeLogAddDTO.setCreaterName(submitName+"("+submitNo+")");
|
|
|
|
nodeLogAddDTO.setCreaterName(submitName+"("+submitNo+")");
|
|
|
|
hospitalSubmitNodeServiceApi.addLog(nodeLogAddDTO);
|
|
|
|
hospitalSubmitNodeServiceApi.addLog(nodeLogAddDTO);
|
|
|
|
|
|
|
|
updateBackLogSubmitTime(patientIds.get(0));
|
|
|
|
meiZhouSyRpc.archiveAndRecall(archiveRequest(patientIds.get(0),"EMR"));
|
|
|
|
meiZhouSyRpc.archiveAndRecall(archiveRequest(patientIds.get(0),"EMR"));
|
|
|
|
return new MessageResponse(ResultCode.SUCCESS.getCode(), success());
|
|
|
|
return new MessageResponse(ResultCode.SUCCESS.getCode(), success());
|
|
|
|
} catch (BaseException baseException) {
|
|
|
|
} catch (BaseException baseException) {
|
|
|
|
@ -105,6 +107,7 @@ public class MzsyBusinessServiceImpl implements MzsyBusinessService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public MessageResponse nurseSubmitHandle(Message message) {
|
|
|
|
public MessageResponse nurseSubmitHandle(Message message) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
@ -151,6 +154,15 @@ public class MzsyBusinessServiceImpl implements MzsyBusinessService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void updateBackLogSubmitTime(String patientId) {
|
|
|
|
|
|
|
|
Long id = tBasicMapper.getLastBackLogId(patientId);
|
|
|
|
|
|
|
|
if(id != null){
|
|
|
|
|
|
|
|
String time = Func.formatDateTime(LocalDateTime.now());
|
|
|
|
|
|
|
|
tBasicMapper.updateBackLogSubmitTime(id,time);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void verifyPatientIds(List<String> patientIds) {
|
|
|
|
private void verifyPatientIds(List<String> patientIds) {
|
|
|
|
if (Func.isEmpty(patientIds)) {
|
|
|
|
if (Func.isEmpty(patientIds)) {
|
|
|
|
throw new BaseException("系统无此患者!");
|
|
|
|
throw new BaseException("系统无此患者!");
|
|
|
|
|