|
|
|
@ -8,6 +8,7 @@ import com.emr.entity.ArchiveOther;
|
|
|
|
|
import com.emr.entity.ArchiveOtherExt;
|
|
|
|
|
import com.emr.entity.ArchiveOtherExtSubmittime;
|
|
|
|
|
import com.emr.entity.OffsetLimitPage;
|
|
|
|
|
import com.emr.util.HttpRequest;
|
|
|
|
|
import com.emr.vo.*;
|
|
|
|
|
import com.github.pagehelper.Page;
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
@ -58,11 +59,6 @@ public class ArchiveOtherExtService {
|
|
|
|
|
String maxETime = archiveOtherExtMapper.selectMaxETimeByNursingAndJzh(archiveOtherExtVo.getJzh());
|
|
|
|
|
archiveOtherExtVo.setNursingEndTime(maxETime);
|
|
|
|
|
for (ArchiveOtherExtVo vo : list) {
|
|
|
|
|
// String mid = vo.getMid();
|
|
|
|
|
// List<ArchiveCollectTaskVo> archiveCollectTaskVoInfo = archiveOtherExtMapper.getArchiveCollectTaskVoInfo(mid);
|
|
|
|
|
// for (ArchiveCollectTaskVo vo1:archiveCollectTaskVoInfo){
|
|
|
|
|
// vo.setMid(vo1.getMasterID());
|
|
|
|
|
// }
|
|
|
|
|
//遗嘱特殊处理结束时间
|
|
|
|
|
operYizhuETime(vo);
|
|
|
|
|
if (vo.getSysflag().equals(1)) {
|
|
|
|
@ -169,6 +165,20 @@ public class ArchiveOtherExtService {
|
|
|
|
|
* @param sysFlag
|
|
|
|
|
*/
|
|
|
|
|
public void updateSubmit(String ids,String notNursingIds,String nursingIds, String detailIds,String jzh, String masterId, Integer sysFlag,HttpServletRequest request) throws Exception{
|
|
|
|
|
//文件来源是8走新的医嘱采集器
|
|
|
|
|
if (detailIds.equals("8")){
|
|
|
|
|
//医嘱采集器地址
|
|
|
|
|
String url="http://127.0.0.1:8003/task/repairTaskByCollectId";
|
|
|
|
|
HttpRequest.sendPost(url,"masterId=" + masterId+"&collectId="+detailIds);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//文件来源是1走新的护理采集器
|
|
|
|
|
if (detailIds.equals("1")){
|
|
|
|
|
//医嘱采集器地址
|
|
|
|
|
String url="http://127.0.0.1:8003/task/repairTaskByCollectId";
|
|
|
|
|
HttpRequest.sendPost(url,"masterId=" + masterId+"&collectId="+detailIds);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
String idsStr = splitString2String(ids);
|
|
|
|
|
String idsTemp = idsStr;
|
|
|
|
|
//存在护理记录则调用护理按需采集功能
|
|
|
|
@ -182,15 +192,16 @@ public class ArchiveOtherExtService {
|
|
|
|
|
archiveOtherExtMapper.updateNursingSubmit(nursingIdTemp);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//ext表更新非护理记录
|
|
|
|
|
if(StringUtils.isNotBlank(notNursingIds)){
|
|
|
|
|
updateCommomSubmit(jzh, masterId,idsTemp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//操作提交信息表
|
|
|
|
|
operOtherExtSubmitInfo(ids,idsStr,detailIds,request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// public void dopost
|
|
|
|
|
|
|
|
|
|
public void taskUpdate(AfCollectTaskUpdateDTO updateDTO) {
|
|
|
|
|
SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
|
|
|
|
|