执行入库方法
This commit is contained in:
parent
12fbe70df1
commit
952c8f38b0
@ -85,6 +85,14 @@ public class UserConstants
|
||||
public static final String TASK_CODE="TASK_CODE";
|
||||
public static final String DEFECT_CODE = "DEFECT_CODE";
|
||||
|
||||
/**
|
||||
* 单据的状态类型
|
||||
*/
|
||||
public static final String ORDER_STATUS_PREPAR="PREPARE";
|
||||
public static final String ORDER_STATUS_CONFIRMED="CONFIRMED";
|
||||
public static final String ORDER_STATUS_APPROVING="APPROVING";
|
||||
public static final String ORDER_STATUS_APPROVED="APPROVED";
|
||||
public static final String ORDER_STATUS_FINISHED="FINISHED";
|
||||
|
||||
/**
|
||||
* 维护类型
|
||||
|
@ -145,6 +145,27 @@ public class WmItemRecptController extends BaseController
|
||||
return toAjax(wmItemRecptService.updateWmItemRecpt(wmItemRecpt));
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行入库
|
||||
* @return
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('mes:wm:itemrecpt:edit')")
|
||||
@Log(title = "物料入库单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/{recptIds}")
|
||||
public AjaxResult execute(@PathVariable Long[] recptIds){
|
||||
if(recptIds !=null && recptIds.length>0){
|
||||
for (Long id:recptIds
|
||||
) {
|
||||
WmItemRecpt wmItemRecpt =wmItemRecptService.selectWmItemRecptByRecptId(id);
|
||||
wmItemRecpt.setStatus(UserConstants.ORDER_STATUS_FINISHED);
|
||||
wmItemRecptService.updateWmItemRecpt(wmItemRecpt);
|
||||
}
|
||||
|
||||
}
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除物料入库单
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user