Commit 545bf89e by yao.xiao

增加入参判断-已关账并发放的记录,不能修改

parent 75694368
...@@ -110,6 +110,17 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService { ...@@ -110,6 +110,17 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
Long loginId = requestVO.getLoginId(); Long loginId = requestVO.getLoginId();
//查询出需修改的佣金发放状态的财富 //查询出需修改的佣金发放状态的财富
List<AclCustomerFortune> customerFortunes = customerFortuneDalService.findByIds(fortuneIds); List<AclCustomerFortune> customerFortunes = customerFortuneDalService.findByIds(fortuneIds);
List<String> commissionPayoutStatusList = new ArrayList<>();
for (AclCustomerFortune customerFortune: customerFortunes) {
commissionPayoutStatusList.add(customerFortune.getCommissionPayoutStatus());
}
if (commissionPayoutStatusList.contains("4")){
String message = ZHBErrorConfig.getErrorInfo("830023");
commonResult.setSuccess(false);
commonResult.setMessage(message);
responseVO.setCommonResult(commonResult);
return responseVO;
}
//佣金预计发放批次 //佣金预计发放批次
String payoutBatch = requestVO.getPayoutBatch(); String payoutBatch = requestVO.getPayoutBatch();
//通过payoutBatch查询此批次是否再库中,在库中直接获取id,不在进行保存,获取id //通过payoutBatch查询此批次是否再库中,在库中直接获取id,不在进行保存,获取id
......
...@@ -36,4 +36,5 @@ ...@@ -36,4 +36,5 @@
830020=活动时间段冲突 830020=活动时间段冲突
830021=请选择发佣日期 830021=请选择发佣日期
830022=请选择关账记录 830022=请选择关账记录
830023=已关账并发放的记录,不能修改
900003=保险公司响应报文为空! 900003=保险公司响应报文为空!
\ No newline at end of file
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
ib.branch_name insurerBranchName, ib.branch_name insurerBranchName,
dept.name insurerBranchDeptName, dept.name insurerBranchDeptName,
sub.name subordinateSystemName, sub.name subordinateSystemName,
if(pay.pay_status = 0, 3, 4) commissionPayoutStatus, if(pay.pay_status = 0, 2, 4) commissionPayoutStatus,
date_format(pay.pay_date, '%Y-%m-%d %H:%i:%s') payDate date_format(pay.pay_date, '%Y-%m-%d %H:%i:%s') payDate
from ag_acl_customer_fortune_pay pay from ag_acl_customer_fortune_pay pay
left join ag_acl_customer_fortune f left join ag_acl_customer_fortune f
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment