Browse Source

医保日志添加psnNo字段

lighter 3 years ago
parent
commit
4bfd1ae8f4

+ 7 - 1
src/main/java/thyyxxk/simzfeeoprnsystm/pojo/SiLog.java

@@ -67,7 +67,12 @@ public class SiLog implements Serializable {
 
 	private Integer infcode;
 
-	public SiLog(JSONObject input, JSONObject result, String patNo, Integer times, Integer infcode) {
+	/**
+	 * 人员编号
+	 * */
+	private String psnNo;
+
+	public SiLog(JSONObject input, JSONObject result, String patNo, Integer times, Integer infcode, String psnNo) {
 		if (null != result) {
 			setResult(result.toJSONString());
 		}
@@ -80,5 +85,6 @@ public class SiLog implements Serializable {
 		setTimes(times);
 		setLogType(2);
 		setInfcode(infcode);
+		setPsnNo(psnNo);
 	}
 }

+ 9 - 9
src/main/java/thyyxxk/simzfeeoprnsystm/service/SiMzFeeService.java

@@ -61,7 +61,7 @@ public class SiMzFeeService {
             return ResultVoUtil.fail(ExceptionEnum.NETWORK_ERROR);
         }
         Integer infcode = result.getInteger(RESULT_CODE);
-        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode));
+        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode, regstrtn.getPsnNo()));
         if (null == infcode) {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "医保中心报错:" + result.getString("message"));
         }
@@ -96,7 +96,7 @@ public class SiMzFeeService {
             return ResultVoUtil.fail(ExceptionEnum.NETWORK_ERROR);
         }
         Integer infcode = result.getInteger(RESULT_CODE);
-        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode));
+        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode, siPatInfo.getPsnNo()));
         if (null == infcode) {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "医保中心报错:" + result.getString("message"));
         }
@@ -141,7 +141,7 @@ public class SiMzFeeService {
         JSONObject result = exec.executeTrade(input, SiFunction.UPLOAD_OUTPATIENT_INFO);
         log.info("【操作员:{}】门诊就诊信息上传:\n参数:{},\n结果:{}", staffId, input, result);
         Integer infcode = result.getInteger(RESULT_CODE);
-        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode));
+        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode, siPatInfo.getPsnNo()));
         return SiUtil.makeReturnWithoutOutput(result, "门诊就诊信息上传成功。");
     }
 
@@ -185,7 +185,7 @@ public class SiMzFeeService {
             return ResultVoUtil.fail(ExceptionEnum.NETWORK_ERROR);
         }
         Integer infcode = result.getInteger(RESULT_CODE);
-        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode));
+        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode, siPatInfo.getPsnNo()));
         if (null == infcode) {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "医保中心报错:" + result.getString("message"));
         }
@@ -243,7 +243,7 @@ public class SiMzFeeService {
             return ResultVoUtil.fail(ExceptionEnum.NETWORK_ERROR);
         }
         Integer infcode = result.getInteger(RESULT_CODE);
-        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode));
+        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode, siPatInfo.getPsnNo()));
         if (null == infcode) {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "医保中心报错:" + result.getString("message"));
         }
@@ -276,7 +276,7 @@ public class SiMzFeeService {
             return ResultVoUtil.fail(ExceptionEnum.NETWORK_ERROR);
         }
         Integer infcode = result.getInteger(RESULT_CODE);
-        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode));
+        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode, mzPreSetlmt.getPsnNo()));
         if (null == infcode) {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "医保中心报错:" + result.getString("message"));
         }
@@ -331,7 +331,7 @@ public class SiMzFeeService {
             return ResultVoUtil.fail(ExceptionEnum.NETWORK_ERROR, "与医保中心的连接出现网络异常!");
         }
         Integer infcode = result.getInteger(RESULT_CODE);
-        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode));
+        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode, setlmt.getPsnNo()));
         if (null == infcode) {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "医保中心报错:" + result.getString("message"));
         }
@@ -390,7 +390,7 @@ public class SiMzFeeService {
             return ResultVoUtil.fail(ExceptionEnum.NETWORK_ERROR);
         }
         Integer infcode = result.getInteger(RESULT_CODE);
-        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode));
+        logDao.insert(new SiLog(input, result, p.getPatNo(), p.getTimes(), infcode, setlinfo.getPsnNo()));
         if (null == infcode) {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "医保中心报错:" + result.getString("message"));
         }
@@ -413,7 +413,7 @@ public class SiMzFeeService {
         input.getJSONObject("input").put("data", data);
         JSONObject result = exec.executeTrade(input, SiFunction.REVOKE_OUTPATIENT_SETTLEMENT);
         Integer infcode = result.getInteger(RESULT_CODE);
-        logDao.insert(new SiLog(input, result, setlinfo.getPatNo(), setlinfo.getTimes(), infcode));
+        logDao.insert(new SiLog(input, result, setlinfo.getPatNo(), setlinfo.getTimes(), infcode, setlinfo.getPsnNo()));
         if (null != infcode && infcode == 0) {
             mzDao.deleteSetlInfo(setlinfo.getPatNo(), setlinfo.getTimes());
             mzDao.deleteSetlDetail(setlinfo.getPatNo(), setlinfo.getTimes());