|
@@ -35,6 +35,7 @@ import thyyxxk.webserver.entity.querydata.JieSuanDanChaXun;
|
|
|
import thyyxxk.webserver.entity.querydata.SiSetlinfoTemp;
|
|
|
import thyyxxk.webserver.service.PublicServer;
|
|
|
import thyyxxk.webserver.service.casefrontsheet.CaseFrontSheetService;
|
|
|
+import thyyxxk.webserver.service.redislike.RedisLikeService;
|
|
|
import thyyxxk.webserver.service.wxapi.SendWxInfoService;
|
|
|
import thyyxxk.webserver.utils.*;
|
|
|
import thyyxxk.webserver.websocket.WebSocketServer;
|
|
@@ -70,8 +71,9 @@ public class SetlListUpldService {
|
|
|
private final SendWxInfoService sendWxInfoService;
|
|
|
private final SiLogDao logDao;
|
|
|
private final CaseFrontSheetService caseFrontSheetService;
|
|
|
+ private final RedisLikeService redisLikeService;
|
|
|
|
|
|
- public SetlListUpldService(ExecService exec, SiQueryDao queryDao, UpIdCollectionDao upIdCollectionDao, DismissDao dismissDao, PublicServer publicServer, SendWxInfoService sendWxInfoService, SiLogDao logDao, CaseFrontSheetService caseFrontSheetService) {
|
|
|
+ public SetlListUpldService(ExecService exec, SiQueryDao queryDao, UpIdCollectionDao upIdCollectionDao, DismissDao dismissDao, PublicServer publicServer, SendWxInfoService sendWxInfoService, SiLogDao logDao, CaseFrontSheetService caseFrontSheetService, RedisLikeService redisLikeService) {
|
|
|
this.exec = exec;
|
|
|
this.queryDao = queryDao;
|
|
|
this.dao = upIdCollectionDao;
|
|
@@ -80,6 +82,7 @@ public class SetlListUpldService {
|
|
|
this.sendWxInfoService = sendWxInfoService;
|
|
|
this.logDao = logDao;
|
|
|
this.caseFrontSheetService = caseFrontSheetService;
|
|
|
+ this.redisLikeService = redisLikeService;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -102,7 +105,8 @@ public class SetlListUpldService {
|
|
|
throw new BizException(ExceptionEnum.INTERNAL_SERVER_ERROR, "患者联系人姓名不能为空。");
|
|
|
}
|
|
|
}
|
|
|
- if (StringUtil.notBlank(upldCollection.getData().getSetlinfo().getHiType()) && upldCollection.getData().getSetlinfo().getHiType().trim().equals("310")) {
|
|
|
+ if (StringUtil.notBlank(upldCollection.getData().getSetlinfo().getHiType())
|
|
|
+ && upldCollection.getData().getSetlinfo().getHiType().trim().equals("310")) {
|
|
|
if (StringUtil.isBlank(upldCollection.getData().getSetlinfo().getEmpAddr()) || StringUtil.isBlank(upldCollection.getData().getSetlinfo().getEmpName())) {
|
|
|
throw new BizException(ExceptionEnum.INTERNAL_SERVER_ERROR, "结算清单中职工参保人的单位及地址不能为空。");
|
|
|
}
|
|
@@ -283,7 +287,6 @@ public class SetlListUpldService {
|
|
|
for (int i = 0; i < diseinfos.size(); i++) {
|
|
|
diseinfos.get(i).setMaindiagFlag(i == 0 ? "1" : "0");
|
|
|
}
|
|
|
- // TODO 在这里判断患者的工作单位和地址 没有就用现住址
|
|
|
// 新生儿入院类型写死为1
|
|
|
if (StringUtil.notBlank(setlinfoUpld.getNwbBirWt())) {
|
|
|
setlinfoUpld.setNwbAdmType("1");
|
|
@@ -292,6 +295,14 @@ public class SetlListUpldService {
|
|
|
if (isFertilitySign) {
|
|
|
setlinfoUpld.setHiPaymtd("1");
|
|
|
}
|
|
|
+ if ("310".equals(setlinfoUpld.getHiType())) {
|
|
|
+ if (StringUtil.isBlank(setlinfoUpld.getEmpAddr())) {
|
|
|
+ setlinfoUpld.setEmpAddr(setlinfoUpld.getCurrAddr());
|
|
|
+ }
|
|
|
+ if (StringUtil.isBlank(setlinfoUpld.getEmpName())) {
|
|
|
+ setlinfoUpld.setEmpName("普通职工");
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
UpldCollection upldCollection = new UpldCollection();
|
|
|
// 患者的基本信息
|
|
@@ -432,7 +443,7 @@ public class SetlListUpldService {
|
|
|
// 特殊人员类型
|
|
|
temp.getSetlinfo().setSpPsnTypeName(PsnIdetType.getName(temp.getSetlinfo().getSpPsnType()));
|
|
|
// 参保地
|
|
|
- temp.getSetlinfo().setInsuplcName(dao.getInsuplcName(temp.getSetlinfo().getInsuplc()));
|
|
|
+ temp.getSetlinfo().setInsuplcName(redisLikeService.getRegionName(temp.getSetlinfo().getInsuplc()));
|
|
|
//入院科别
|
|
|
temp.getSetlinfo().setAdmCatyName(dao.getYbDeptName(temp.getSetlinfo().getAdmCaty()));
|
|
|
// 转科科别
|