Преглед изворни кода

fix flow

release_toaliyun_real
xiaohanzi пре 5 година
родитељ
комит
60f5f3b530
1 измењених фајлова са 8 додато и 4 уклоњено
  1. +8
    -4
      mallinkBApi/src/main/java/com/iformall/controller/WxCouponController.java

+ 8
- 4
mallinkBApi/src/main/java/com/iformall/controller/WxCouponController.java Прегледај датотеку

@@ -145,9 +145,13 @@ public class WxCouponController extends BaseController {
return hasFlow(EnumFlowKey.B_COUPON_MERCHANT_CREATE,getTenantInfo());
}

@ApiOperation("查询是否有审批流程")
@PostMapping("hasFlow")
public ResultData hasFlow() {
@ApiOperation("审批历史")
@GetMapping("flowHistory")
@ApiImplicitParams({
@ApiImplicitParam(name = "couponId", value = "编号", dataType = "Long", paramType = "query", required = true)})
public ResultData flowHistory(Long couponId) {
//wxFlowService.getModelBybusiness(wxFlowModel)
if (hasMerchantCouponFlow()) {
return new ResultData(1);
}else {
@@ -173,7 +177,7 @@ public class WxCouponController extends BaseController {
return new ResultData(Result.ERROR,EnumFlowKey.B_COUPON_MERCHANT_CREATE.getMessage()+"未配置审批流程");
}
WxMerchantBUser buser = getUser();
wxFlowService.start(generateFlowParams(EnumFlowKey.B_COUPON_MERCHANT_CREATE,EnumCouponAppType.PUT,wxCoupon,wxCoupon.getRemark(), buser.getPhone()), getBuserId(), buser.getName(), wxCoupon);
wxFlowService.start(generateFlowParams(EnumFlowKey.B_COUPON_MERCHANT_CREATE,EnumCouponAppType.PUT,coupon,wxCoupon.getRemark(), buser.getPhone()), getBuserId(), buser.getName(), coupon);
return new ResultData(Result.SUCCESS,"提交审批成功");
}


Loading…
Откажи
Сачувај