|
|
|
@@ -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,"提交审批成功"); |
|
|
|
} |
|
|
|
|
|
|
|
|