|
@@ -24,26 +24,27 @@ public class CheckNeedPayService implements ExecutionListener {
|
|
|
public void notify(DelegateExecution delegateExecution) {
|
|
public void notify(DelegateExecution delegateExecution) {
|
|
|
String callbackUrl = delegateExecution.getVariable("callbackUrl").toString();
|
|
String callbackUrl = delegateExecution.getVariable("callbackUrl").toString();
|
|
|
String businessKey = delegateExecution.getVariable("businessKey").toString();
|
|
String businessKey = delegateExecution.getVariable("businessKey").toString();
|
|
|
|
|
+ String isConcentrateAudit = delegateExecution.getVariable("isConcentrateAudit").toString();
|
|
|
String result = delegateExecution.getVariable("result").toString();
|
|
String result = delegateExecution.getVariable("result").toString();
|
|
|
- // ApproveParamsDTO approveParams = new ApproveParamsDTO();
|
|
|
|
|
- // approveParams.setBusinessKey(businessKey);
|
|
|
|
|
|
|
|
|
|
if (!result.equals("0")) {
|
|
if (!result.equals("0")) {
|
|
|
String approveUrl = callbackUrl + "/suppliercert-listener/check-need-pay";
|
|
String approveUrl = callbackUrl + "/suppliercert-listener/check-need-pay";
|
|
|
String isPay = "0";
|
|
String isPay = "0";
|
|
|
if (callbackUrl.length() > 0) {
|
|
if (callbackUrl.length() > 0) {
|
|
|
isPay = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey);
|
|
isPay = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey);
|
|
|
- // FeignClient client = Feign.builder()
|
|
|
|
|
- // .decoder(new JacksonDecoder())
|
|
|
|
|
- // .encoder(new JacksonEncoder())
|
|
|
|
|
- // .target(FeignClient.class, callbackUrl);
|
|
|
|
|
- // isPay = client.checkNeedPay(approveParams);
|
|
|
|
|
} else {
|
|
} else {
|
|
|
throw new ActivitiException("无回调地址,请联系管理员!");
|
|
throw new ActivitiException("无回调地址,请联系管理员!");
|
|
|
}
|
|
}
|
|
|
if (isPay.equals("0")) {
|
|
if (isPay.equals("0")) {
|
|
|
throw new ActivitiException("准入类型是否付费有误!请联系管理员!");
|
|
throw new ActivitiException("准入类型是否付费有误!请联系管理员!");
|
|
|
}
|
|
}
|
|
|
|
|
+ // 集中评审(1)交费(1) isPay=1
|
|
|
|
|
+ // 集中评审(1)不交费(2) isPay=2
|
|
|
|
|
+ // 不集中评审(2)交费(1) isPay=3
|
|
|
|
|
+ // 不集中评审(2)不交费(2) isPay=2
|
|
|
|
|
+ if (isConcentrateAudit.equals("2") && isPay.equals("1")) {
|
|
|
|
|
+ isPay = "3"; // 不集中评审但交费,需经企管法规处审批后再交费。
|
|
|
|
|
+ }
|
|
|
System.out.println("准入工作流 检查是否交费: " + isPay);
|
|
System.out.println("准入工作流 检查是否交费: " + isPay);
|
|
|
delegateExecution.setVariable("result", isPay);
|
|
delegateExecution.setVariable("result", isPay);
|
|
|
delegateExecution.setVariableLocal("result", isPay);
|
|
delegateExecution.setVariableLocal("result", isPay);
|