Ver código fonte

出纳保存报错

lihong 1 mês atrás
pai
commit
43fe9b2c0a

+ 1 - 1
src/main/java/thyyxxk/webserver/dao/his/inpatient/charge/CashierProcessDao.java

@@ -216,7 +216,7 @@ public interface CashierProcessDao {
     @Insert("insert into zy_deposit_file ( inpatient_no , admiss_times , depo_times , depo_date , op_id_code , depo_amount , depo_type , status , cheque_no  , receipt_no , ledger_sn , window_no , deleted,psordnum,agtordnum,par_channel,trans_date,trace_no ) values" +
             " ( #{inpatientNo} , ${admissTimes} , ${depoTimes} , #{depoDate} , #{opIdCode} , #{depoAmount} , #{depoType} , #{status} , #{chequeNo}  , #{receiptNo} , ${ledgerSn} , #{windowNo}, #{deleted},#{psordnum},#{agtordnum},#{parChannel},#{transDate},#{traceNo} ) ")
     int insetZyDepositFile(ZyDepositFile zyDepositFile);
-    @Select(" select cast(max ( depo_times ) as int)   from zy_deposit_file where inpatient_no =#{inpatientNo} and admiss_times =#{admissTimes} ")
+    @Select(" select cast(isnull(max ( depo_times ),0) as int)   from zy_deposit_file where inpatient_no =#{inpatientNo} and admiss_times =#{admissTimes} ")
     Integer selectMaxDepoTimes(PatientParam param);
 
     @Select(" SELECT count ( *) FROM zy_detail_charge WHERE inpatient_no =#{inpatientNo} AND admiss_times =#{admissTimes} AND ledger_sn =#{ledgerSn} AND charge_fee <> 0 and charge_status ='1' ")

+ 1 - 1
src/main/java/thyyxxk/webserver/service/inpatient/charge/CashierProcessService.java

@@ -251,7 +251,7 @@ public class CashierProcessService {
                 if (StrUtil.isBlank(depositFile.getWindowNo())) {
                     depositFile.setWindowNo(NumberEnum.TWO.getCode());
                 }
-                depositFile.setDepoTimes(Convert.toInt(maxDepoTimes) + index);
+                depositFile.setDepoTimes(Convert.toInt(maxDepoTimes,0) + index);
                 dao.insetZyDepositFile(depositFile);
                 ++index;
             }