ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskController.java
@@ -1,5 +1,6 @@ package com.ruoyi.web.controller.smartor; import com.github.pagehelper.ISelect; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; @@ -47,7 +48,18 @@ @PostMapping("/patItem") public TableDataInfo patItem(@RequestBody ServiceSubtask ivrTaskcall) { PageUtils.startPageByPost(ivrTaskcall.getPageNum(), ivrTaskcall.getPageSize()); return getDataTable(serviceSubtaskService.patItem(ivrTaskcall)); List<ServiceSubtask> serviceSubtaskList = serviceSubtaskService.patItem(ivrTaskcall); //è·åtotal long total = PageUtils.count(new ISelect() { @Override public void doSelect() { ivrTaskcall.setPageNum(null); ivrTaskcall.setPageSize(null); serviceSubtaskService.patItem(ivrTaskcall); } }); return getDataTable2(total, serviceSubtaskList); // return getDataTable(serviceSubtaskService.patItem(ivrTaskcall)); } /** ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceTaskController.java
@@ -186,7 +186,7 @@ } log.info("tidåpidçå¼ä¸ºï¼{},{}", tid, pid); return success(serviceTaskService.getScriptInfoByCondition(tid, pid)); return success(serviceTaskService.getScriptInfoByCondition(tid, pid, true)); } } ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java
@@ -2,6 +2,7 @@ import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSONObject; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.reflect.TypeToken; @@ -17,6 +18,7 @@ import com.smartor.common.SendService; import com.smartor.domain.*; import com.smartor.mapper.ServiceTaskMapper; import com.smartor.mapper.SysUserImportMapper; import com.smartor.service.*; import lombok.extern.slf4j.Slf4j; import org.apache.commons.collections4.CollectionUtils; @@ -63,6 +65,9 @@ @Autowired private PlatformTransactionManager transactionManager; @Autowired private SysUserImportMapper sysUserImportMapper; @Value("${localIP}") private String localIP; @@ -119,36 +124,30 @@ } public void importData() { // String filePath = "path/to/your/file.txt"; // æ¿æ¢ä¸ºä½ çæä»¶è·¯å¾ // // try { // // 读åæä»¶å 容 // String jsonContent = new String(Files.readAllBytes(Paths.get(filePath))); // // // å建ObjectMapper对象 // ObjectMapper objectMapper = new ObjectMapper(); // // // è§£æJSON为JsonNode // JsonNode rootNode = objectMapper.readTree(jsonContent); // // è·åresultList // JsonNode resultListNode = rootNode.path("results").path("resultList"); // // éåresultListä¸çæ¯ä¸ªå¯¹è±¡ // for (JsonNode item : resultListNode) { // String userName = item.path("staffNum").asText(); // String idCard = item.path("idCard").asText(); // String personnelStampNum = item.path("defaultWardId").asText(); // String personnelStampNum = item.path("defaultWardName").asText(); // String deptName = item.path("defaultDeptName").asText(); // String deptCode = item.path("defaultDeptId").asText(); // String phonenumber = item.path("telphone").asText(); // String nickName = item.path("staffName").asText(); // String sex = item.path("staffSex").asText(); // // } // // } catch (IOException e) { // e.printStackTrace(); // } String filePath = "C:\\Users\\86176\\Desktop\\æ°å»ºææ¬ææ¡£ 4.txt"; // æ¿æ¢ä¸ºä½ çæä»¶è·¯å¾ try { // 读åæä»¶å 容 String jsonContent = new String(Files.readAllBytes(Paths.get(filePath)), StandardCharsets.UTF_8); // å建ObjectMapper对象 ObjectMapper objectMapper = new ObjectMapper(); // è§£æJSON为JsonNode JsonNode rootNode = objectMapper.readTree(jsonContent); // è·åresultList JsonNode resultListNode = rootNode.path("results").path("resultList"); // éåresultListä¸çæ¯ä¸ªå¯¹è±¡ for (JsonNode item : resultListNode) { SysUserImport person = objectMapper.treeToValue(item, SysUserImport.class); person.setStaffPhoto(""); sysUserImportMapper.insertSysUserImport(person); } } catch (IOException e) { e.printStackTrace(); } } @@ -563,7 +562,7 @@ patMedInhosp.setLeaveldeptid(thiedInhospInfo.getCurrDeptCode()); //妿æ¯åºé¢ï¼å éè¿æ£è ç¼å·åæµæ°´å·å»æ¥ä¸ä¸ï¼æ£è æ¯å¦åå¨ï¼å¦æåå¨ï¼åè¿è¡ä¿®æ¹ PatMedInhosp inhosp = new PatMedInhosp(); inhosp.setInhospno(patArchive.getPatientno()); inhosp.setPatno(patArchive.getPatientno()); inhosp.setSerialnum(patMedInhosp.getSerialnum()); List<PatMedInhosp> patMedInhosps = patMedInhospService.selectPatMedInhospList(inhosp); if (CollectionUtils.isNotEmpty(patMedInhosps)) { smartor/src/main/java/com/smartor/domain/ServiceSubTaskQueryReq.java
@@ -45,4 +45,9 @@ @ApiModelProperty(value = "é¢ç®ID") private Long scriptid; /** * æ¯å¦å®æ */ private Boolean isFinish = true; } smartor/src/main/java/com/smartor/domain/SysUserImport.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,330 @@ package com.smartor.domain; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.Date; /** * ç¨æ·ä¿¡æ¯å¯¹è±¡ sys_user_import * * @author lihu * @date 2024-09-23 */ @Data @ApiModel("ç¨æ·ä¿¡æ¯Import") public class SysUserImport extends BaseEntity { private static final long serialVersionUID = 1L; /** * ç¨æ·ID */ @ApiModelProperty("ç¨æ·ID") //æ°æ®åºèªå¢æ¹æ@TableId(type = IdType.AUTO) private Long id; /** * é¨é¨ID */ @ApiModelProperty("é¨é¨ID") @Excel(name = "é¨é¨ID") private String subId; private String wards; private String defaultHisWardId; private String defaultWardName; private String openId; private String defaultWardId; private String caUpdateTime; private String caPic; private String sort; /** * é¨é¨ç¼å· */ @ApiModelProperty("é¨é¨ç¼å·") @Excel(name = "é¨é¨ç¼å·") private String hisStaffId; /** * é¨é¨åç§° */ @ApiModelProperty("é¨é¨åç§°") @Excel(name = "é¨é¨åç§°") private String personnelStampNum; /** * ç¨æ·è´¦å· */ @ApiModelProperty("ç¨æ·è´¦å·") @Excel(name = "ç¨æ·è´¦å·") private String idCard; /** * ç¨æ·æµç§° */ @ApiModelProperty("ç¨æ·æµç§°") @Excel(name = "ç¨æ·æµç§°") private String staffPhoto; /** * ç¨æ·ç±»åï¼00ç³»ç»ç¨æ·ï¼ */ @ApiModelProperty("ç¨æ·ç±»åï¼00ç³»ç»ç¨æ·ï¼") @Excel(name = "ç¨æ·ç±»å", readConverterExp = "0=0ç³»ç»ç¨æ·") private String effectiveStart; /** * æ£è èå´ï¼0å ¨é¨ï¼1å»çã2æ¤å£«ã9æ */ @ApiModelProperty("æ£è èå´ï¼0å ¨é¨ï¼1å»çã2æ¤å£«ã9æ ") @Excel(name = "æ£è èå´ï¼0å ¨é¨ï¼1å»çã2æ¤å£«ã9æ ") private String personnelProfile; /** * èç§° */ @ApiModelProperty("èç§°") @Excel(name = "èç§°") private String staffNation; /** * å²ä½ */ @ApiModelProperty("å²ä½") @Excel(name = "å²ä½") private String staffNum; /** * ç¨æ·é®ç®± */ @ApiModelProperty("ç¨æ·é®ç®±") @Excel(name = "ç¨æ·é®ç®±") private String effectiveEnd; /** * ææºå·ç */ @ApiModelProperty("ææºå·ç ") @Excel(name = "ææºå·ç ") private String insuranceCode; /** * ç¨æ·æ§å«ï¼0ç· 1女 2æªç¥ï¼ */ @ApiModelProperty("ç¨æ·æ§å«ï¼0ç· 1女 2æªç¥ï¼") @Excel(name = "ç¨æ·æ§å«", readConverterExp = "0=ç·,1=女,2=æªç¥") private String searchCode3; /** * 头åå°å */ @ApiModelProperty("头åå°å") @Excel(name = "头åå°å") private String searchCode2; /** * å¯ç */ @ApiModelProperty("å¯ç ") @Excel(name = "å¯ç ") private String searchCode1; /** * å¸å·ç¶æï¼0æ£å¸¸ 1åç¨ï¼ */ @ApiModelProperty("å¸å·ç¶æï¼0æ£å¸¸ 1åç¨ï¼") @Excel(name = "å¸å·ç¶æ", readConverterExp = "0=æ£å¸¸,1=åç¨") private String hospitalId; /** * å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼ */ @ApiModelProperty("å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼") @Excel(name = "å 餿 å¿", readConverterExp = "0=ï¼æªå é¤,1=ï¼å·²å é¤") private String preUpdater; /** * æåç»å½IP */ @ApiModelProperty("æåç»å½IP") @Excel(name = "æåç»å½IP") private String staffName; /** * æåç»å½æ¶é´ */ @ApiModelProperty("æåç»å½æ¶é´") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @Excel(name = "æåç»å½æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private String defaultDeptName; /** * å建è */ @ApiModelProperty("å建è ") @Excel(name = "å建è ") private String state; /** * å建æ¶é´ */ @ApiModelProperty("å建æ¶é´") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @Excel(name = "å建æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private String famousDoctorRank; /** * æ´æ°è */ @ApiModelProperty("æ´æ°è ") @Excel(name = "æ´æ°è ") private String firstWorkDate; /** * æ´æ°æ¶é´ */ @ApiModelProperty("æ´æ°æ¶é´") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @Excel(name = "æ´æ°æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private String preUpdaterNum; /** * 夿³¨ */ @ApiModelProperty("夿³¨") @Excel(name = "夿³¨") private String staffStatus; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String mgrPosiCode; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String defaultHisDeptId; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String staffSex; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String staffType; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String userId; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String preUpdateTime; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String famousDoctorRankName; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String personnelBirthday; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String staffTitle; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String signPic; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String telphone; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String employPostCode; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String defaultDeptId; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String depts; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String staffId; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String staffLevel; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String selfCollectDialecticalFees; /** * $column.columnComment */ @ApiModelProperty("$column.columnComment") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") private String subIds; } smartor/src/main/java/com/smartor/mapper/SysUserImportMapper.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,63 @@ package com.smartor.mapper; import java.util.List; import org.apache.ibatis.annotations.Mapper; import com.smartor.domain.SysUserImport; /** * ç¨æ·ä¿¡æ¯Mapperæ¥å£ * * @author lihu * @date 2024-09-23 */ @Mapper public interface SysUserImportMapper { /** * æ¥è¯¢ç¨æ·ä¿¡æ¯ * * @param id ç¨æ·ä¿¡æ¯ä¸»é® * @return ç¨æ·ä¿¡æ¯ */ public SysUserImport selectSysUserImportById(Long id); /** * æ¥è¯¢ç¨æ·ä¿¡æ¯å表 * * @param sysUserImport ç¨æ·ä¿¡æ¯ * @return ç¨æ·ä¿¡æ¯éå */ public List<SysUserImport> selectSysUserImportList(SysUserImport sysUserImport); /** * æ°å¢ç¨æ·ä¿¡æ¯ * * @param sysUserImport ç¨æ·ä¿¡æ¯ * @return ç»æ */ public int insertSysUserImport(SysUserImport sysUserImport); /** * ä¿®æ¹ç¨æ·ä¿¡æ¯ * * @param sysUserImport ç¨æ·ä¿¡æ¯ * @return ç»æ */ public int updateSysUserImport(SysUserImport sysUserImport); /** * å é¤ç¨æ·ä¿¡æ¯ * * @param id ç¨æ·ä¿¡æ¯ä¸»é® * @return ç»æ */ public int deleteSysUserImportById(Long id); /** * æ¹éå é¤ç¨æ·ä¿¡æ¯ * * @param ids éè¦å é¤çæ°æ®ä¸»é®éå * @return ç»æ */ public int deleteSysUserImportByIds(Long[] ids); } smartor/src/main/java/com/smartor/service/IServiceTaskService.java
@@ -68,7 +68,7 @@ * @param patid * @return */ public Map<String, Object> getScriptInfoByCondition(Long taskid, Long patid); public Map<String, Object> getScriptInfoByCondition(Long taskid, Long patid,Boolean isFinish); } smartor/src/main/java/com/smartor/service/impl/PatMedInhospServiceImpl.java
@@ -183,6 +183,7 @@ public int deletePatMedInhospByInhospid(Long inhospid) { return patMedInhospMapper.deletePatMedInhospByInhospid(inhospid); } /** * å 餿£è ä½é¢è®°å½ä¿¡æ¯ * @@ -325,26 +326,53 @@ serviceSubtask.setServiceType("2"); serviceSubtask.setServiceform(serviceTask.getPreachform()); serviceSubtask.setHospType("2"); serviceSubtask.setCreateTime(new Date()); serviceSubtask.setUpdateTime(new Date()); serviceSubtask.setCreateBy(patMedInhosp1.getNurseName()); serviceSubtask.setLeavehospitaldistrictcode(patMedInhosp1.getLeavehospitaldistrictcode()); serviceSubtask.setLeavehospitaldistrictname(patMedInhosp1.getLeavehospitaldistrictname()); //设置åéæ¶é´ Date newDate = addDays(patMedInhosp1.getEndtime(), stt.getSendDay()); serviceSubtask.setLongSendTime(newDate); //æ£è åéæ¶é´ if (StringUtils.isNotEmpty(remark)) { serviceSubtask.setSendstate(4L); if (StringUtils.isNotEmpty(patArchive.getNotrequiredFlag()) && patArchive.getNotrequiredFlag().equals("1")) { remark = patArchive.getNotrequiredreason(); serviceSubtask.setRemark(remark); serviceSubtask.setResult("error"); serviceSubtask.setFinishtime(new Date()); //䏿§è¡ serviceSubtask.setSendstate(4L); } else if (patArchive.getNotrequiredFlag().equals("4")) { //人ä¸å¨äºï¼æè å ¶å®åå ï¼ä¹ä¸è½é访 serviceSubtask.setSendstate(4L); serviceSubtask.setRemark(patArchive.getNotrequiredreason()); serviceSubtask.setResult("error"); serviceSubtask.setFinishtime(new Date()); } //卿°å¢ä¹åï¼å éè¿æ£è IDï¼sendstate=2æ¥è¯¢ä¸ä¸ï¼å¨ææé¿æä»»å¡ä¸ï¼æ¯ä¸æ¯è¿æè¯¥æ£è å¾ æ§è¡çä»»å¡ï¼æçè¯,æ¯è¾ä¹åçendtimeæ¯å¦å°äºå½åçendtaime,妿ä¹åçå°äºç°å¨çï¼åç´æ¥å°ä¹åçåæï¼åå åå ¥é¢ï¼ ServiceSubtaskVO subtask = new ServiceSubtaskVO(); subtask.setPatid(patArchive.getId()); subtask.setSendstate(2L); List<ServiceSubtask> selectServiceSubtaskList = serviceSubtaskMapper.selectServiceSubtaskList(subtask); log.error("该æ£è å¾ æ§è¡çä»»å¡:{}", selectServiceSubtaskList); if (CollectionUtils.isNotEmpty(selectServiceSubtaskList) && selectServiceSubtaskList.size() > 0) { for (ServiceSubtask serviceSubtask1 : selectServiceSubtaskList) { if (Objects.isNull(serviceSubtask1.getLongSendTime())) { //䏿¯é¿æä»»å¡ï¼ä¸å¤ç continue; } if (serviceSubtask1.getEndtime().before(serviceSubtask.getEndtime())) { //妿å½å循ç¯çåä»»å¡çåºé¢æ¶é´å¨âå夿°å¢çåä»»å¡âçåºé¢æ¶é´ä¹åï¼åå°å¾ªç¯çåä»»å¡åæ serviceSubtask1.setSendstate(4L); serviceSubtask1.setRemark("æ£è åå ¥é¢"); serviceSubtask1.setResult("error"); serviceSubtask1.setFinishtime(new Date()); serviceSubtaskMapper.updateServiceSubtask(serviceSubtask1); } else { //ç¸å,åå°å½æçæ°æ®åæ serviceSubtask.setResult("error"); serviceSubtask.setFinishtime(new Date()); serviceSubtask.setSendstate(4L); serviceSubtask.setRemark("æ£è åå ¥é¢"); } } } serviceSubtaskMapper.insertServiceSubtask(serviceSubtask); //å°check_flagæ¹æ1ï¼å·²å¤çï¼ PatMedInhosp patMedInhosp2 = new PatMedInhosp(); @@ -352,6 +380,41 @@ patMedInhosp2.setCheckFlag("1"); patMedInhospMapper.updatePatMedInhosp(patMedInhosp2); } //è·åæªå¤çå¨é¢çæ°æ®(妿åååºé¢çæ£è æ°æ®çåºé¢æ¶é´,å¨ä¸é¢æ¥è¯¢åºçå ¥é¢æ¶é´ä¹å,é£ä¹åçåºé¢æ£è çæ°æ®,ä¹å¾åæ,å 为åå ¥é¢äº) patMedInhosp.setCheckFlag("0"); patMedInhosp.setInhospstate("0"); List<PatMedInhosp> patMedInhospList = patMedInhospMapper.selectPatMedInhospList(patMedInhosp); if (CollectionUtils.isNotEmpty(patMedInhospList) && patMedInhospList.size() > 0) { for (PatMedInhosp patMedInhosp1 : patMedInhospList) { //è·åå½åå ¥é¢æ£è çå¾ æ§è¡çåºé¢åä»»å¡éè®¿ä¿¡æ¯ ServiceSubtaskVO subtask = new ServiceSubtaskVO(); subtask.setPatid(patMedInhosp1.getPatid()); subtask.setSendstate(2L); List<ServiceSubtask> selectServiceSubtaskList = serviceSubtaskMapper.selectServiceSubtaskList(subtask); log.error("å ¥é¢çæ£è å¾ æ§è¡çä»»å¡:{}", selectServiceSubtaskList); if (CollectionUtils.isNotEmpty(selectServiceSubtaskList) && selectServiceSubtaskList.size() > 0) { for (ServiceSubtask serviceSubtask1 : selectServiceSubtaskList) { if (Objects.isNull(serviceSubtask1.getLongSendTime())) { //䏿¯é¿æä»»å¡ï¼ä¸å¤ç continue; } if (serviceSubtask1.getEndtime().before(patMedInhosp1.getStarttime())) { //妿å½å循ç¯çåä»»å¡çåºé¢æ¶é´å¨âå夿°å¢çåä»»å¡âçåºé¢æ¶é´ä¹åï¼åå°å¾ªç¯çåä»»å¡åæ serviceSubtask1.setSendstate(4L); serviceSubtask1.setRemark("æ£è åå ¥é¢"); serviceSubtask1.setResult("error"); serviceSubtask1.setFinishtime(new Date()); serviceSubtaskMapper.updateServiceSubtask(serviceSubtask1); } } } //å°æ£å ¥çå ¥é¢æ°æ®è®¾ç½®ä¸ºå·²å¤ç patMedInhosp1.setCheckFlag("1"); patMedInhospMapper.updatePatMedInhosp(patMedInhosp1); } } return 1; } smartor/src/main/java/com/smartor/service/impl/ServiceSubtaskAnswerServiceImpl.java
@@ -247,7 +247,7 @@ log.error("selectPatQuesTionResultçå ¥å为ï¼{}", serviceSubTaskQueryReq); Map<String, Object> map = new HashMap<>(); Map<String, Object> scriptInfoByCondition = serviceTaskService.getScriptInfoByCondition(serviceSubTaskQueryReq.getTaskid(), serviceSubTaskQueryReq.getPatid()); Map<String, Object> scriptInfoByCondition = serviceTaskService.getScriptInfoByCondition(serviceSubTaskQueryReq.getTaskid(), serviceSubTaskQueryReq.getPatid(), serviceSubTaskQueryReq.getIsFinish()); if (scriptInfoByCondition.get("type").equals("1")) { List<IvrLibaTemplateScriptVO> ivrLibaTemplateScriptVOList = (List) scriptInfoByCondition.get("script"); for (IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO : ivrLibaTemplateScriptVOList) { smartor/src/main/java/com/smartor/service/impl/ServiceTaskServiceImpl.java
@@ -147,7 +147,7 @@ } @Override public Map<String, Object> getScriptInfoByCondition(Long taskid, Long patid) { public Map<String, Object> getScriptInfoByCondition(Long taskid, Long patid, Boolean isFinish) { Map<String, Object> map = new HashMap<>(); ServiceSubtaskVO serviceSubtaskVO = new ServiceSubtaskVO(); serviceSubtaskVO.setPatid(patid); @@ -169,10 +169,10 @@ info = sfInfo(serviceTask, patid); } else if (serviceTask.getType().equals("2")) { //é®å· info = wjInfo(serviceTask, patid); info = wjInfo(serviceTask, patid, isFinish); } else { //宣æ info = xjInfo(Long.valueOf(serviceTask.getLibtemplateid()), taskid, patid); info = xjInfo(Long.valueOf(serviceTask.getLibtemplateid()), taskid, patid,isFinish); } //åªè¦æå¼äºé¡µé¢ï¼å°±ç®æå @@ -262,14 +262,15 @@ * @param patid * @return */ private List wjInfo(ServiceTask serviceTask, Long patid) { private List wjInfo(ServiceTask serviceTask, Long patid, Boolean isFinish) { //ç¨æ·ç¹å»äºå¤é¾ï¼å°±ç®ä»é¢åäº ServiceSubtask serviceSubtask = new ServiceSubtask(); serviceSubtask.setSendstate(1L); serviceSubtask.setPatid(patid); serviceSubtask.setTaskid(serviceTask.getTaskid()); serviceSubtaskMapper.updateServiceSubtaskByPatId(serviceSubtask); if (isFinish == true) { ServiceSubtask serviceSubtask = new ServiceSubtask(); serviceSubtask.setSendstate(1L); serviceSubtask.setPatid(patid); serviceSubtask.setTaskid(serviceTask.getTaskid()); serviceSubtaskMapper.updateServiceSubtaskByPatId(serviceSubtask); } //éè¿æ¨¡æ¿IDè·åé®é¢ä¿¡æ¯ SvyLibTemplateScript svyLibTemplateScript = new SvyLibTemplateScript(); svyLibTemplateScript.setSvyid(Long.valueOf(serviceTask.getLibtemplateid())); @@ -325,13 +326,15 @@ return svyLibTemplateScriptVOS; } private List xjInfo(Long templateId, Long taskid, Long patid) { ServiceSubtask serviceSubtask = new ServiceSubtask(); serviceSubtask.setTaskid(taskid); serviceSubtask.setPatid(patid); serviceSubtask.setResult("宿"); serviceSubtask.setFinishtime(new Date()); serviceSubtaskMapper.updateServiceSubtaskByCondition(serviceSubtask); private List xjInfo(Long templateId, Long taskid, Long patid, Boolean isFinish) { if (isFinish == true) { ServiceSubtask serviceSubtask = new ServiceSubtask(); serviceSubtask.setTaskid(taskid); serviceSubtask.setPatid(patid); serviceSubtask.setResult("宿"); serviceSubtask.setFinishtime(new Date()); serviceSubtaskMapper.updateServiceSubtaskByCondition(serviceSubtask); } HeLibrary heLibrary = heLibraryMapper.selectHeLibraryById(Long.valueOf(templateId)); List list = new ArrayList(); list.add(heLibrary); smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
@@ -500,26 +500,14 @@ <if test="deptname != null and deptname != ''"> AND d.deptname LIKE concat('%',#{deptname}, '%') </if> <if test="leavehospitaldistrictcodes != null and leaveldeptcodes != null"> AND (d.leavehospitaldistrictcode IN <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," close=")"> #{leavehospitaldistrictcode} </foreach> OR d.leaveldeptcode IN <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," close="))"> #{leaveldeptcode} </foreach> </if> <if test="leavehospitaldistrictcodes != null and leaveldeptcodes == null"> <if test="leavehospitaldistrictcodes != null"> AND d.leavehospitaldistrictcode IN <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," close=")"> #{leavehospitaldistrictcode} </foreach> </if> <if test="leavehospitaldistrictcodes == null and leaveldeptcodes != null"> <if test="leaveldeptcodes != null"> AND d.leaveldeptcode IN <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," close=")"> smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
@@ -198,31 +198,20 @@ <if test="leaveldeptname != null and leaveldeptname != ''">and b.leaveldeptname like concat('%', #{leaveldeptname}, '%') </if> <if test="patid != null and patid != ''">and a.id =#{patid} <if test="patid != null and patid != ''">and a.id =#{patid} </if> <if test="leavehospitaldistrictname != null and leavehospitaldistrictname != ''">and b.leavehospitaldistrictname like concat('%', #{leavehospitaldistrictname}, '%') </if> <if test="leavehospitaldistrictcodes != null and leaveldeptcodes != null"> AND (b.leavehospitaldistrictcode IN <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," close=")"> #{leavehospitaldistrictcode} </foreach> OR b.leaveldeptcode IN <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," close="))"> #{leaveldeptcode} </foreach> </if> <if test="leavehospitaldistrictcodes != null and leaveldeptcodes == null"> <if test="leavehospitaldistrictcodes != null"> AND b.leavehospitaldistrictcode IN <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," close=")"> #{leavehospitaldistrictcode} </foreach> </if> <if test="leavehospitaldistrictcodes == null and leaveldeptcodes != null"> <if test="leaveldeptcodes != null"> AND b.leaveldeptcode IN <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," close=")"> @@ -311,26 +300,14 @@ #{leavediagname}, '%') </if> <if test="drname != null and drname != ''">and b.drname like concat('%', #{drname}, '%')</if> <if test="leavehospitaldistrictcodes != null and leaveldeptcodes != null"> AND (b.leavehospitaldistrictcode IN <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," close=")"> #{leavehospitaldistrictcode} </foreach> OR b.leaveldeptcode IN <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," close="))"> #{leaveldeptcode} </foreach> </if> <if test="leavehospitaldistrictcodes != null and leaveldeptcodes == null"> <if test="leavehospitaldistrictcodes != null "> AND b.leavehospitaldistrictcode IN <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," close=")"> #{leavehospitaldistrictcode} </foreach> </if> <if test="leavehospitaldistrictcodes == null and leaveldeptcodes != null"> <if test="leaveldeptcodes != null"> AND b.leaveldeptcode IN <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," close=")"> smartor/src/main/resources/mapper/smartor/ServiceSubtaskMapper.xml
@@ -178,26 +178,14 @@ <if test="templatename != null and templatename != ''">and templatename like concat('%', #{templatename}, '%') </if> <if test="leavehospitaldistrictcodes != null and leaveldeptcodes != null"> AND leavehospitaldistrictcode IN <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," close=")"> #{leavehospitaldistrictcode} </foreach> OR deptcode IN <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," close=")"> #{leaveldeptcode} </foreach> </if> <if test="leavehospitaldistrictcodes != null and leaveldeptcodes == null"> <if test="leavehospitaldistrictcodes != null"> AND leavehospitaldistrictcode IN <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," close=")"> #{leavehospitaldistrictcode} </foreach> </if> <if test="leavehospitaldistrictcodes == null and leaveldeptcodes != null"> <if test=" leaveldeptcodes != null"> AND deptcode IN <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," close=")"> smartor/src/main/resources/mapper/smartor/ServiceTaskMapper.xml
@@ -146,26 +146,15 @@ <if test="sendState != null ">and send_state = #{sendState}</if> <if test="leavehospitaldistrictname != null ">and leavehospitaldistrictname = #{leavehospitaldistrictname}</if> <if test="leavehospitaldistrictcode != null ">and leavehospitaldistrictcode = #{leavehospitaldistrictcode}</if> <if test="leavehospitaldistrictcodes != null and leaveldeptcodes != null"> AND (leavehospitaldistrictcode IN <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," close=")"> #{leavehospitaldistrictcode} </foreach> OR deptcode IN <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," close="))"> #{leaveldeptcode} </foreach> </if> <if test="leavehospitaldistrictcodes != null and leaveldeptcodes == null"> <if test="leavehospitaldistrictcodes != null "> AND leavehospitaldistrictcode IN <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," close=")"> #{leavehospitaldistrictcode} </foreach> </if> <if test="leavehospitaldistrictcodes == null and leaveldeptcodes != null"> <if test="leaveldeptcodes != null"> AND deptcode IN <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," close=")"> smartor/src/main/resources/mapper/smartor/SysUserImportMapper.xml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,621 @@ <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.smartor.mapper.SysUserImportMapper"> <resultMap type="com.smartor.domain.SysUserImport" id="SysUserImportResult"> <result property="id" column="id"/> <result property="subId" column="sub_id"/> <result property="caUpdateTime" column="caUpdateTime"/> <result property="wards" column="wards"/> <result property="hisStaffId" column="his_staff_id"/> <result property="personnelStampNum" column="personnel_stamp_num"/> <result property="idCard" column="id_card"/> <result property="staffPhoto" column="staff_photo"/> <result property="effectiveStart" column="effective_start"/> <result property="personnelProfile" column="personnel_profile"/> <result property="staffNation" column="staff_nation"/> <result property="staffNum" column="staff_num"/> <result property="effectiveEnd" column="effective_end"/> <result property="insuranceCode" column="insurance_code"/> <result property="searchCode3" column="search_code3"/> <result property="searchCode2" column="search_code2"/> <result property="searchCode1" column="search_code1"/> <result property="hospitalId" column="hospital_id"/> <result property="preUpdater" column="pre_updater"/> <result property="staffName" column="staff_name"/> <result property="defaultDeptName" column="default_dept_name"/> <result property="state" column="state"/> <result property="famousDoctorRank" column="famous_doctor_rank"/> <result property="firstWorkDate" column="first_work_date"/> <result property="preUpdaterNum" column="pre_updater_num"/> <result property="staffStatus" column="staff_status"/> <result property="mgrPosiCode" column="mgr_posi_code"/> <result property="defaultHisDeptId" column="default_his_dept_id"/> <result property="defaultWardId" column="default_ward_id"/> <result property="updateTime" column="update_time"/> <result property="staffSex" column="staff_sex"/> <result property="staffType" column="staff_type"/> <result property="userId" column="user_id"/> <result property="preUpdateTime" column="pre_update_time"/> <result property="famousDoctorRankName" column="famous_doctor_rank_name"/> <result property="personnelBirthday" column="personnel_birthday"/> <result property="staffTitle" column="staff_title"/> <result property="signPic" column="sign_pic"/> <result property="createTime" column="create_time"/> <result property="telphone" column="telphone"/> <result property="employPostCode" column="employ_post_code"/> <result property="defaultDeptId" column="default_dept_id"/> <result property="depts" column="depts"/> <result property="staffId" column="staff_id"/> <result property="staffLevel" column="staff_level"/> <result property="selfCollectDialecticalFees" column="self_collect_dialectical_fees"/> <result property="subIds" column="sub_ids"/> <result property="defaultHisWardId" column="default_his_ward_id"/> <result property="defaultWardName" column="default_ward_name"/> <result property="openId" column="open_id"/> </resultMap> <sql id="selectSysUserImportVo"> select id, sub_id, default_his_ward_id, default_ward_name, his_staff_id, default_ward_id, personnel_stamp_num, id_card, staff_photo, effective_start, personnel_profile, staff_nation, staff_num, effective_end, insurance_code, search_code3, search_code2, search_code1, hospital_id, pre_updater, staff_name, default_dept_name, state, famous_doctor_rank, first_work_date, pre_updater_num, staff_status, mgr_posi_code, default_his_deptId, update_time, staff_sex, staff_type, user_id, pre_update_time, famous_doctor_rank_name, personnel_birthday, staff_title, sign_pic, open_id, create_time, telphone, employ_post_code, default_dept_id, depts, staff_id, staff_level, self_collect_dialectical_fees, sub_ids from sys_user_import </sql> <select id="selectSysUserImportList" parameterType="com.smartor.domain.SysUserImport" resultMap="SysUserImportResult"> <include refid="selectSysUserImportVo"/> <where> <if test="subId != null "> and sub_id = #{subId} </if> <if test="hisStaffId != null and hisStaffId != ''"> and his_staff_id = #{hisStaffId} </if> <if test="personnelStampNum != null and personnelStampNum != ''"> and personnel_stamp_num = #{personnelStampNum} </if> <if test="idCard != null and idCard != ''"> and id_card = #{idCard} </if> <if test="defaultWardId != null and defaultWardId != ''"> and default_ward_id = #{defaultWardId} </if> <if test="staffPhoto != null and staffPhoto != ''"> and staff_photo = #{staffPhoto} </if> <if test="effectiveStart != null and effectiveStart != ''"> and effective_start = #{effectiveStart} </if> <if test="personnelProfile != null and personnelProfile != ''"> and personnel_profile = #{personnelProfile} </if> <if test="staffNation != null and staffNation != ''"> and staff_nation = #{staffNation} </if> <if test="staffNum != null and staffNum != ''"> and staff_num = #{staffNum} </if> <if test="effectiveEnd != null and effectiveEnd != ''"> and effective_end = #{effectiveEnd} </if> <if test="insuranceCode != null and insuranceCode != ''"> and insurance_code = #{insuranceCode} </if> <if test="searchCode3 != null and searchCode3 != ''"> and search_code3 = #{searchCode3} </if> <if test="searchCode2 != null and searchCode2 != ''"> and search_code2 = #{searchCode2} </if> <if test="searchCode1 != null and searchCode1 != ''"> and search_code1 = #{searchCode1} </if> <if test="hospitalId != null and hospitalId != ''"> and hospital_id = #{hospitalId} </if> <if test="preUpdater != null and preUpdater != ''"> and pre_updater = #{preUpdater} </if> <if test="staffName != null and staffName != ''"> and staff_name like concat('%', #{staffName}, '%') </if> <if test="defaultDeptName != null "> and default_dept_name like concat('%', #{defaultDeptName}, '%') </if> <if test="state != null and state != ''"> and state = #{state} </if> <if test="famousDoctorRank != null "> and famous_doctor_rank = #{famousDoctorRank} </if> <if test="firstWorkDate != null and firstWorkDate != ''"> and first_work_date = #{firstWorkDate} </if> <if test="preUpdaterNum != null "> and pre_updater_num = #{preUpdaterNum} </if> <if test="staffStatus != null and staffStatus != ''"> and staff_status = #{staffStatus} </if> <if test="mgrPosiCode != null and mgrPosiCode != ''"> and mgr_posi_code = #{mgrPosiCode} </if> <if test="defaultHisDeptId != null and defaultHisDeptId != ''"> and default_his_dept_id = #{defaultHisDeptId} </if> <if test="staffSex != null and staffSex != ''"> and staff_sex = #{staffSex} </if> <if test="staffType != null and staffType != ''"> and staff_type = #{staffType} </if> <if test="userId != null "> and user_id = #{userId} </if> <if test="preUpdateTime != null "> and pre_update_time = #{preUpdateTime} </if> <if test="famousDoctorRankName != null and famousDoctorRankName != ''"> and famous_doctor_rank_name like concat('%', #{famousDoctorRankName}, '%') </if> <if test="personnelBirthday != null and personnelBirthday != ''"> and personnel_birthday = #{personnelBirthday} </if> <if test="staffTitle != null and staffTitle != ''"> and staff_title = #{staffTitle} </if> <if test="signPic != null and signPic != ''"> and sign_pic = #{signPic} </if> <if test="telphone != null and telphone != ''"> and telphone = #{telphone} </if> <if test="employPostCode != null and employPostCode != ''"> and employ_post_code = #{employPostCode} </if> <if test="defaultDeptId != null "> and default_dept_id = #{defaultDeptId} </if> <if test="depts != null and depts != ''"> and depts = #{depts} </if> <if test="staffId != null "> and staff_id = #{staffId} </if> <if test="staffLevel != null and staffLevel != ''"> and staff_level = #{staffLevel} </if> <if test="selfCollectDialecticalFees != null and selfCollectDialecticalFees != ''"> and self_collect_dialectical_fees = #{selfCollectDialecticalFees} </if> <if test="subIds != null and subIds != ''"> and sub_ids = #{subIds} </if> <if test="defaultHisWardId != null and defaultHisWardId != ''"> and default_his_ward_id = #{defaultHisWardId} </if> <if test="defaultWardName != null and defaultWardName != ''"> and default_ward_name = #{defaultWardName} </if> </where> </select> <select id="selectSysUserImportById" parameterType="Long" resultMap="SysUserImportResult"> <include refid="selectSysUserImportVo"/> where id = #{id} </select> <insert id="insertSysUserImport" parameterType="com.smartor.domain.SysUserImport" useGeneratedKeys="true" keyProperty="id"> insert into sys_user_import <trim prefix="(" suffix=")" suffixOverrides=","> <if test="subId != null">sub_id, </if> <if test="hisStaffId != null">his_staff_id, </if> <if test="personnelStampNum != null">personnel_stamp_num, </if> <if test="idCard != null and idCard != ''">id_card, </if> <if test="staffPhoto != null and staffPhoto != ''">staff_photo, </if> <if test="effectiveStart != null">effective_start, </if> <if test="personnelProfile != null and personnelProfile != ''">personnel_profile, </if> <if test="staffNation != null">staff_nation, </if> <if test="staffNum != null">staff_num, </if> <if test="effectiveEnd != null">effective_end, </if> <if test="insuranceCode != null">insurance_code, </if> <if test="searchCode3 != null">search_code3, </if> <if test="searchCode2 != null">search_code2, </if> <if test="searchCode1 != null">search_code1, </if> <if test="hospitalId != null">hospital_id, </if> <if test="preUpdater != null">pre_updater, </if> <if test="staffName != null">staff_name, </if> <if test="defaultDeptName != null">default_dept_name, </if> <if test="state != null">state, </if> <if test="famousDoctorRank != null">famous_doctor_rank, </if> <if test="firstWorkDate != null">first_work_date, </if> <if test="preUpdaterNum != null">pre_updater_num, </if> <if test="staffStatus != null">staff_status, </if> <if test="mgrPosiCode != null">mgr_posi_code, </if> <if test="defaultHisDeptId != null">default_his_dept_id, </if> <if test="updateTime != null">update_time, </if> <if test="staffSex != null">staff_sex, </if> <if test="staffType != null">staff_type, </if> <if test="userId != null">user_id, </if> <if test="preUpdateTime != null">pre_update_time, </if> <if test="famousDoctorRankName != null">famous_doctor_rank_name, </if> <if test="personnelBirthday != null">personnel_birthday, </if> <if test="staffTitle != null">staff_title, </if> <if test="createTime != null">create_time, </if> <if test="telphone != null">telphone, </if> <if test="employPostCode != null">employ_post_code, </if> <if test="defaultDeptId != null">default_dept_id, </if> <if test="depts != null">depts, </if> <if test="staffId != null">staff_id, </if> <if test="staffLevel != null">staff_level, </if> <if test="selfCollectDialecticalFees != null">self_collect_dialectical_fees, </if> <if test="subIds != null">sub_ids, </if> <if test="defaultWardId != null">default_ward_id, </if> <if test="defaultHisWardId != null and defaultHisWardId != ''"> default_his_ward_id, </if> <if test="defaultWardName != null and defaultWardName != ''"> default_ward_name, </if> <if test="openId != null and openId != ''"> open_id, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="subId != null">#{subId}, </if> <if test="hisStaffId != null">#{hisStaffId}, </if> <if test="personnelStampNum != null">#{personnelStampNum}, </if> <if test="idCard != null and idCard != ''">#{idCard}, </if> <if test="staffPhoto != null and staffPhoto != ''">#{staffPhoto}, </if> <if test="effectiveStart != null">#{effectiveStart}, </if> <if test="personnelProfile != null and personnelProfile != ''">#{personnelProfile}, </if> <if test="staffNation != null">#{staffNation}, </if> <if test="staffNum != null">#{staffNum}, </if> <if test="effectiveEnd != null">#{effectiveEnd}, </if> <if test="insuranceCode != null">#{insuranceCode}, </if> <if test="searchCode3 != null">#{searchCode3}, </if> <if test="searchCode2 != null">#{searchCode2}, </if> <if test="searchCode1 != null">#{searchCode1}, </if> <if test="hospitalId != null">#{hospitalId}, </if> <if test="preUpdater != null">#{preUpdater}, </if> <if test="staffName != null">#{staffName}, </if> <if test="defaultDeptName != null">#{defaultDeptName}, </if> <if test="state != null">#{state}, </if> <if test="famousDoctorRank != null">#{famousDoctorRank}, </if> <if test="firstWorkDate != null">#{firstWorkDate}, </if> <if test="preUpdaterNum != null">#{preUpdaterNum}, </if> <if test="staffStatus != null">#{staffStatus}, </if> <if test="mgrPosiCode != null">#{mgrPosiCode}, </if> <if test="defaultHisDeptId != null">#{defaultHisDeptId}, </if> <if test="updateTime != null">#{updateTime}, </if> <if test="staffSex != null">#{staffSex}, </if> <if test="staffType != null">#{staffType}, </if> <if test="userId != null">#{userId}, </if> <if test="preUpdateTime != null">#{preUpdateTime}, </if> <if test="famousDoctorRankName != null">#{famousDoctorRankName}, </if> <if test="personnelBirthday != null">#{personnelBirthday}, </if> <if test="staffTitle != null">#{staffTitle}, </if> <if test="createTime != null">#{createTime}, </if> <if test="telphone != null">#{telphone}, </if> <if test="employPostCode != null">#{employPostCode}, </if> <if test="defaultDeptId != null">#{defaultDeptId}, </if> <if test="depts != null">#{depts}, </if> <if test="staffId != null">#{staffId}, </if> <if test="staffLevel != null">#{staffLevel}, </if> <if test="selfCollectDialecticalFees != null">#{selfCollectDialecticalFees}, </if> <if test="subIds != null">#{subIds}, </if> <if test="defaultWardId != null">#{defaultWardId}, </if> <if test="defaultHisWardId != null and defaultHisWardId != ''"> #{defaultHisWardId}, </if> <if test="defaultWardName != null and defaultWardName != ''"> #{defaultWardName}, </if> <if test="openId != null and openId != ''"> #{openId}, </if> </trim> </insert> <update id="updateSysUserImport" parameterType="com.smartor.domain.SysUserImport"> update sys_user_import <trim prefix="SET" suffixOverrides=","> <if test="subId != null">sub_id = #{subId}, </if> <if test="hisStaffId != null">his_staff_id = #{hisStaffId}, </if> <if test="personnelStampNum != null">personnel_stamp_num = #{personnelStampNum}, </if> <if test="idCard != null and idCard != ''">id_card = #{idCard}, </if> <if test="staffPhoto != null and staffPhoto != ''">staff_photo = #{staffPhoto}, </if> <if test="effectiveStart != null">effective_start = #{effectiveStart}, </if> <if test="personnelProfile != null and personnelProfile != ''">personnel_profile = #{personnelProfile}, </if> <if test="staffNation != null">staff_nation = #{staffNation}, </if> <if test="staffNum != null">staff_num = #{staffNum}, </if> <if test="effectiveEnd != null">effective_end = #{effectiveEnd}, </if> <if test="insuranceCode != null">insurance_code = #{insuranceCode}, </if> <if test="searchCode3 != null">search_code3 = #{searchCode3}, </if> <if test="searchCode2 != null">search_code2 = #{searchCode2}, </if> <if test="searchCode1 != null">search_code1 = #{searchCode1}, </if> <if test="hospitalId != null">hospital_id = #{hospitalId}, </if> <if test="preUpdater != null">pre_updater = #{preUpdater}, </if> <if test="staffName != null">staff_name = #{staffName}, </if> <if test="defaultDeptName != null">default_dept_name = #{defaultDeptName}, </if> <if test="state != null">state = #{state}, </if> <if test="famousDoctorRank != null">famous_doctor_rank = #{famousDoctorRank}, </if> <if test="firstWorkDate != null">first_work_date = #{firstWorkDate}, </if> <if test="preUpdaterNum != null">pre_updater_num = #{preUpdaterNum}, </if> <if test="staffStatus != null">staff_status = #{staffStatus}, </if> <if test="mgrPosiCode != null">mgr_posi_code = #{mgrPosiCode}, </if> <if test="defaultHisDeptId != null">default_his_dept_id = #{defaultHisDeptId}, </if> <if test="updateTime != null">update_time = #{updateTime}, </if> <if test="staffSex != null">staff_sex = #{staffSex}, </if> <if test="staffType != null">staff_type = #{staffType}, </if> <if test="userId != null">user_id = #{userId}, </if> <if test="preUpdateTime != null">pre_update_time = #{preUpdateTime}, </if> <if test="famousDoctorRankName != null">famous_doctor_rank_name = #{famousDoctorRankName}, </if> <if test="personnelBirthday != null">personnel_birthday = #{personnelBirthday}, </if> <if test="staffTitle != null">staff_title = #{staffTitle}, </if> <if test="signPic != null">sign_pic = #{signPic}, </if> <if test="createTime != null">create_time = #{createTime}, </if> <if test="telphone != null">telphone = #{telphone}, </if> <if test="employPostCode != null">employ_post_code = #{employPostCode}, </if> <if test="defaultDeptId != null">default_dept_id = #{defaultDeptId}, </if> <if test="depts != null">depts = #{depts}, </if> <if test="staffId != null">staff_id = #{staffId}, </if> <if test="staffLevel != null">staff_level = #{staffLevel}, </if> <if test="selfCollectDialecticalFees != null">self_collect_dialectical_fees = #{selfCollectDialecticalFees}, </if> <if test="subIds != null">sub_ids = #{subIds}, </if> <if test="defaultWardId != null and defaultWardId != ''"> default_ward_id = #{defaultWardId}, </if> <if test="defaultHisWardId != null and defaultHisWardId != ''"> default_his_ward_id = #{defaultHisWardId}, </if> <if test="defaultWardName != null and defaultWardName != ''"> default_ward_name = #{defaultWardName, </if> </trim> where id = #{id} </update> <update id="deleteSysUserImportById" parameterType="Long"> update sys_user_import <trim prefix="SET" suffixOverrides=","> del_flag =1 </trim> where id = #{id} </update> <update id="deleteSysUserImportByIds" parameterType="String"> update sys_user_import <trim prefix="SET" suffixOverrides=","> del_flag =1 </trim> where id in <foreach item="id" collection="array" open="(" separator="," close=")"> #{id} </foreach> </update> </mapper>