|
|
@@ -90,6 +90,11 @@ public class CustAramountServiceImpl extends CommonBaseServiceImpl<CustAramountM
|
|
|
if(checkBeginData > 0){
|
|
|
throw new BizException(BizExceptionCode.BIZ_NOPERIOD_DELETE);
|
|
|
}
|
|
|
+ //已被核销,不能删除
|
|
|
+ int hasVerify=getMapper().checkVerification(custAramount.getCa_custid(),custAramount.getCa_currency());
|
|
|
+ if(hasVerify>0){
|
|
|
+ throw new BizException(BizExceptionCode.BIZ_RELDELETE);
|
|
|
+ }
|
|
|
//删除中间表subledger数据
|
|
|
String delcond="sl_kind='期初余额' and sl_currency='"+custAramount.getCa_currency()+"' and sl_custid='"+custAramount.getCa_custid()+"'"+
|
|
|
" and sl_ym="+ca_begindate;
|