|
@@ -16,7 +16,10 @@ import com.diagbot.util.DateUtil;
|
|
import com.diagbot.util.ListUtil;
|
|
import com.diagbot.util.ListUtil;
|
|
import com.diagbot.util.StringUtil;
|
|
import com.diagbot.util.StringUtil;
|
|
import com.diagbot.util.SysUserUtils;
|
|
import com.diagbot.util.SysUserUtils;
|
|
-import com.diagbot.vo.*;
|
|
|
|
|
|
+import com.diagbot.vo.CheckWorkPageVO;
|
|
|
|
+import com.diagbot.vo.MedCheckWorkAddVO;
|
|
|
|
+import com.diagbot.vo.RecordTypeVO;
|
|
|
|
+import com.diagbot.vo.SysUserBaseVO;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
@@ -82,8 +85,7 @@ public class MedCheckWorkFacade {
|
|
}
|
|
}
|
|
|
|
|
|
int i = medCheckInfoFacade.getBaseMapper().deleteBatchCodes(medCheckWorkVO.getBehospitalCodeList());
|
|
int i = medCheckInfoFacade.getBaseMapper().deleteBatchCodes(medCheckWorkVO.getBehospitalCodeList());
|
|
- if(i!=0)
|
|
|
|
- {
|
|
|
|
|
|
+ if (i != 0) {
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
} else if (checkStatus != null && checkStatus == 1) {
|
|
} else if (checkStatus != null && checkStatus == 1) {
|
|
@@ -148,14 +150,12 @@ public class MedCheckWorkFacade {
|
|
}
|
|
}
|
|
//2.批量执行插入操作
|
|
//2.批量执行插入操作
|
|
try {
|
|
try {
|
|
- if (medBehospitalTypeMap!=null&&medBehospitalTypeMap.size() > 0) {
|
|
|
|
|
|
+ if (medBehospitalTypeMap != null && medBehospitalTypeMap.size() > 0) {
|
|
List<MedBehospitalType> medBehospitalTypeList = new ArrayList<>(medBehospitalTypeMap.values());
|
|
List<MedBehospitalType> medBehospitalTypeList = new ArrayList<>(medBehospitalTypeMap.values());
|
|
medBehospitalTypeServiceImpl.saveOrUpdateBatch(medBehospitalTypeList, batchSize);
|
|
medBehospitalTypeServiceImpl.saveOrUpdateBatch(medBehospitalTypeList, batchSize);
|
|
}
|
|
}
|
|
- }
|
|
|
|
- catch(Exception e)
|
|
|
|
- {
|
|
|
|
- log.error(e.getMessage(),e);
|
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ log.error(e.getMessage(), e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -234,6 +234,12 @@ public class MedCheckWorkFacade {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
checkWorkPageVO.setHospitalId(Long.parseLong(SysUserUtils.getCurrentHospitalID()));
|
|
checkWorkPageVO.setHospitalId(Long.parseLong(SysUserUtils.getCurrentHospitalID()));
|
|
|
|
+
|
|
|
|
+ if (StringUtil.isNotBlank(checkWorkPageVO.getJobType()) && (CheckJobTypeEnum.DEPT_SUPERVISOR.getKey() + "").equals(checkWorkPageVO.getJobType())) {
|
|
|
|
+ SysUserBaseVO sysUserBaseVO = new SysUserBaseVO();
|
|
|
|
+ sysUserBaseVO.setUserId(Long.parseLong(SysUserUtils.getCurrentPrincipleID()));
|
|
|
|
+ checkWorkPageVO.setDepartments(sysUserFacade.getUserDepts(sysUserBaseVO).getSelDepts().stream().map(i -> i.getDeptId()).collect(Collectors.toList()));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
public boolean getCheckListByUserId() {
|
|
public boolean getCheckListByUserId() {
|
|
@@ -244,9 +250,7 @@ public class MedCheckWorkFacade {
|
|
if (null != task && StringUtil.isNotBlank(task.getCron())) {
|
|
if (null != task && StringUtil.isNotBlank(task.getCron())) {
|
|
try {
|
|
try {
|
|
execute(task.getParam());
|
|
execute(task.getParam());
|
|
- }
|
|
|
|
- catch (Exception e)
|
|
|
|
- {
|
|
|
|
|
|
+ } catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|