|
@@ -16,6 +16,7 @@ import thyyxxk.webserver.entity.yibao.patient.Overview;
|
|
|
import thyyxxk.webserver.entity.yibao.patient.Patient;
|
|
|
import thyyxxk.webserver.entity.yibao.patient.ProofreadParam;
|
|
|
import thyyxxk.webserver.service.yibao.SettleService;
|
|
|
+import thyyxxk.webserver.service.yibao.XiangMuLuRuService;
|
|
|
import thyyxxk.webserver.utils.ResultVoUtil;
|
|
|
import thyyxxk.webserver.utils.TokenUtil;
|
|
|
import thyyxxk.webserver.utils.YbLinksUtil;
|
|
@@ -36,11 +37,13 @@ import static thyyxxk.webserver.utils.YibaoHttpUtil.httpPost;
|
|
|
@SuppressWarnings("unchecked")
|
|
|
public class YiBaoController {
|
|
|
private final SettleService settleService;
|
|
|
+ private final XiangMuLuRuService xmlrService;
|
|
|
private final Routines routines;
|
|
|
|
|
|
@Autowired
|
|
|
- public YiBaoController(SettleService settleService, Routines routines) {
|
|
|
+ public YiBaoController(SettleService settleService, XiangMuLuRuService xmlrService, Routines routines) {
|
|
|
this.settleService = settleService;
|
|
|
+ this.xmlrService = xmlrService;
|
|
|
this.routines = routines;
|
|
|
}
|
|
|
|
|
@@ -82,6 +85,7 @@ public class YiBaoController {
|
|
|
public ResultVo<Object> multipleUploadFee(@RequestBody List<Overview> patients) {
|
|
|
String responce = patients.get(0).getResponceType();
|
|
|
for (Overview item : patients) {
|
|
|
+ xmlrService.yiZhuTuiFeiPiPei(item.getInpatientNo(), item.getAdmissTimes());
|
|
|
Integer ledgerSn = routines.getLedgerSn(item.getInpatientNo(), item.getAdmissTimes());
|
|
|
routines.hisRecount(item.getInpatientNo(), item.getAdmissTimes(), ledgerSn);
|
|
|
item.setStaffId(TokenUtil.getTokenUserId());
|
|
@@ -110,6 +114,7 @@ public class YiBaoController {
|
|
|
overview.setStaffId(TokenUtil.getTokenUserId());
|
|
|
overview.setLedgerSn(ledgerSn);
|
|
|
settleService.posNegOffset(overview);
|
|
|
+ xmlrService.yiZhuTuiFeiPiPei(overview.getInpatientNo(), overview.getAdmissTimes());
|
|
|
if (responce.equals(ResponceType.NEW_RURAL_COOPERATIVE_MEDICAL_INSURANCE)) {
|
|
|
return httpPost("uploadFee", overview, responce);
|
|
|
} else {
|