领料管理--领料任务批量发布

This commit is contained in:
syruan 2024-11-13 17:04:13 +08:00
parent 77af9c7fe0
commit 594c8872a9
2 changed files with 18 additions and 0 deletions

View File

@ -2,6 +2,10 @@ package com.bonus.common.biz.enums;
import lombok.Getter;
/**
* @author bonus
*/
@Getter
public enum PurchaseTaskStatusEnum {
TO_NOTICE(1, "待通知"),

View File

@ -113,6 +113,20 @@ public class LeaseApplyInfoController extends BaseController {
return leaseApplyInfoService.publish(leaseApplyInfo);
}
/**
* 领料任务批量发布
*/
@ApiOperation(value = "领料任务批量发布")
@PreventRepeatSubmit
@SysLog(title = "领料任务批量发布", businessType = OperaType.UPDATE, logType = 1,module = "仓储管理->批量发布领料任务")
@PostMapping("/publishBatch")
public AjaxResult publishBatch(@RequestBody @NotNull(message = "任务信息不能为空") List<LeaseApplyInfo> leaseApplyInfos) {
for (LeaseApplyInfo leaseApplyInfo : leaseApplyInfos) {
leaseApplyInfoService.publish(leaseApplyInfo);
}
return success("批量发布完成");
}
/**
* 删除领料任务
*/