|
|
@ -176,16 +176,16 @@ public class PurchasereceiptJobMainController { |
|
|
|
@Operation(summary = "承接任务") |
|
|
|
@PreAuthorize("@ss.hasPermission('wms:purchasereceipt-job-main:accept')") |
|
|
|
@PostMapping(value = "/accept/{id}") |
|
|
|
public CommonResult<Boolean> accept(@PathVariable("id") Long id) { |
|
|
|
int result = purchasereceiptJobMainService.accept(id); |
|
|
|
public CommonResult<Boolean> acceptPurchasereceiptJobMain(@PathVariable("id") Long id) { |
|
|
|
int result = purchasereceiptJobMainService.acceptPurchasereceiptJobMain(id); |
|
|
|
return success(result > 0); |
|
|
|
} |
|
|
|
|
|
|
|
@Operation(summary = "取消承接任务") |
|
|
|
@PreAuthorize("@ss.hasPermission('wms:purchasereceipt-job-main:cancel-accept')") |
|
|
|
@PostMapping(value = "/cancelAccept/{id}") |
|
|
|
public CommonResult<Boolean> cancelAccept(@PathVariable("id") Long id) { |
|
|
|
int result = purchasereceiptJobMainService.cancelAccept(id); |
|
|
|
public CommonResult<Boolean> cancelAcceptPurchasereceiptJobMain(@PathVariable("id") Long id) { |
|
|
|
int result = purchasereceiptJobMainService.cancelAcceptPurchasereceiptJobMain(id); |
|
|
|
return success(result > 0); |
|
|
|
} |
|
|
|
|
|
|
@ -193,8 +193,8 @@ public class PurchasereceiptJobMainController { |
|
|
|
@Operation(summary = "执行采购收货任务主") |
|
|
|
@Parameter(name = "id", description = "编号", required = true) |
|
|
|
@PreAuthorize("@ss.hasPermission('wms:purchasereceipt-job-main:execute')") |
|
|
|
public CommonResult<Boolean> excute(@Valid @RequestBody PurchasereceiptJobMainUpdateReqVO updateReqVO) { |
|
|
|
Integer count = purchasereceiptJobMainService.excute(updateReqVO); |
|
|
|
public CommonResult<Boolean> excutePurchasereceiptJobMain(@Valid @RequestBody PurchasereceiptJobMainUpdateReqVO updateReqVO) { |
|
|
|
Integer count = purchasereceiptJobMainService.excutePurchasereceiptJobMain(updateReqVO); |
|
|
|
return success(count > 0); |
|
|
|
} |
|
|
|
|
|
|
|