|
@@ -460,18 +460,23 @@ public class InsurancePolicyController {
|
|
boolean flag = false;
|
|
boolean flag = false;
|
|
String msg = "";
|
|
String msg = "";
|
|
|
|
|
|
- if(affectCount > 0 && processStatus.equals("正常")){
|
|
|
|
- //生成下月投保单
|
|
|
|
- try {
|
|
|
|
- generatePolicyInTrans(applicationId, policyId, subject);
|
|
|
|
- flag = true;
|
|
|
|
|
|
+ if(affectCount > 0 ){
|
|
|
|
+ if(processStatus.equals("正常")) {
|
|
|
|
+ //生成下月投保单
|
|
|
|
+ try {
|
|
|
|
+ generatePolicyInTrans(applicationId, policyId, subject);
|
|
|
|
+ flag = true;
|
|
|
|
+ } catch (Exception ex) {
|
|
|
|
+ flag = false;
|
|
|
|
+ msg = ex.getMessage();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- catch (Exception ex){
|
|
|
|
- flag = false;
|
|
|
|
- msg = ex.getMessage();
|
|
|
|
|
|
+ else{
|
|
|
|
+ flag = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
msgResult.setResult(flag);
|
|
msgResult.setResult(flag);
|
|
msgResult.setData(affectCount);
|
|
msgResult.setData(affectCount);
|
|
msgResult.setMessage(msg);
|
|
msgResult.setMessage(msg);
|
|
@@ -526,11 +531,12 @@ public class InsurancePolicyController {
|
|
@ApiImplicitParam(name="issuingBank",value = "出账银行",required = true,paramType = "query"),
|
|
@ApiImplicitParam(name="issuingBank",value = "出账银行",required = true,paramType = "query"),
|
|
@ApiImplicitParam(name="singlNumber",value = "单号",required = true,paramType = "query"),
|
|
@ApiImplicitParam(name="singlNumber",value = "单号",required = true,paramType = "query"),
|
|
@ApiImplicitParam(name="processStatus",value = "流程审核状态(正常/回退)",required = true,paramType = "query"),
|
|
@ApiImplicitParam(name="processStatus",value = "流程审核状态(正常/回退)",required = true,paramType = "query"),
|
|
- @ApiImplicitParam(name="opinion",value = "意见",required = true,paramType = "query")
|
|
|
|
|
|
+ @ApiImplicitParam(name="opinion",value = "意见",required = true,paramType = "query"),
|
|
|
|
+ @ApiImplicitParam(name="agentId",value = "保险代理人ID",required = true,paramType = "query")
|
|
})
|
|
})
|
|
public MessageResult<Integer> transfer(String applicationId,String policyId,
|
|
public MessageResult<Integer> transfer(String applicationId,String policyId,
|
|
String accountBank,String issuingBank,String singlNumber,
|
|
String accountBank,String issuingBank,String singlNumber,
|
|
- String processStatus,String opinion, @RequestAttribute String subject){
|
|
|
|
|
|
+ String processStatus,String opinion,String agentId, @RequestAttribute String subject){
|
|
|
|
|
|
//当前用户ID
|
|
//当前用户ID
|
|
System.out.println(subject);
|
|
System.out.println(subject);
|
|
@@ -554,6 +560,7 @@ public class InsurancePolicyController {
|
|
item.setIssuingBank(issuingBank);
|
|
item.setIssuingBank(issuingBank);
|
|
item.setSinglNumber(singlNumber);
|
|
item.setSinglNumber(singlNumber);
|
|
item.setTransferTime(new Date());
|
|
item.setTransferTime(new Date());
|
|
|
|
+ item.setAgentId(agentId);
|
|
|
|
|
|
int affectCount = insurancePolicyService.update(item);
|
|
int affectCount = insurancePolicyService.update(item);
|
|
|
|
|