|
@@ -34,6 +34,13 @@ public class SelfpayService {
|
|
|
}
|
|
|
|
|
|
public JSONObject uploadSelfpayMedfee(BriefLedgerFile ledgerFile) {
|
|
|
+ FmiOwnpayPatnDise dise = dao.selectPatnDise(ledgerFile.getPatNo(), ledgerFile.getTimes());
|
|
|
+ if (null == dise) {
|
|
|
+ JSONObject result = new JSONObject();
|
|
|
+ result.put("code", -1);
|
|
|
+ result.put("message", "患者诊断为空!");
|
|
|
+ return result;
|
|
|
+ }
|
|
|
beforeUpload(ledgerFile);
|
|
|
JSONObject input = new JSONObject();
|
|
|
input.put("upType", "1");
|
|
@@ -49,13 +56,6 @@ public class SelfpayService {
|
|
|
patnMdtrt.setMdtrtId(mdtrtId);
|
|
|
patnMdtrt.setFixmedinsCode(SiUtil.INSTITUTION_ID);
|
|
|
patnMdtrt.setFixmedinsName(SiUtil.INSTITUTION_NAME);
|
|
|
- FmiOwnpayPatnDise dise = dao.selectPatnDise(ledgerFile.getPatNo(), ledgerFile.getTimes());
|
|
|
- if (null == dise) {
|
|
|
- JSONObject result = new JSONObject();
|
|
|
- result.put("code", -1);
|
|
|
- result.put("message", "患者诊断为空!");
|
|
|
- return result;
|
|
|
- }
|
|
|
patnMdtrt.setDiseNo(dise.getDiagCode());
|
|
|
patnMdtrt.setDiseName(dise.getDiagName());
|
|
|
input.put("fmiOwnpayPatnMdtrtDDTO", JSONObject.parseObject(
|