|
|
|
@ -53,6 +53,8 @@ public class ProOrderWorkorderController extends BaseController {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@PostMapping("/subChangeWorkOrder")
|
|
|
|
|
@RequiresPermissions("mes:pro:workorder:edit")
|
|
|
|
|
@Log(title = "修改工单", businessType = BusinessType.UPDATE)
|
|
|
|
|
public AjaxResult subChangeWorkOrder(@RequestBody SplitOrderDTO splitOrderDTO){
|
|
|
|
|
return proOrderWorkorderService.subChangeWorkOrder(splitOrderDTO);
|
|
|
|
|
}
|
|
|
|
@ -82,7 +84,7 @@ public class ProOrderWorkorderController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 查询生产工单列表
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("mes:proworkorder:list")
|
|
|
|
|
@RequiresPermissions("mes:pro:proworkorder:list")
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
|
public TableDataInfo list(ProOrderWorkorder proOrderWorkorder) {
|
|
|
|
|
startPage();
|
|
|
|
@ -93,7 +95,7 @@ public class ProOrderWorkorderController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 导出生产工单列表
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("mes:proworkorder:export")
|
|
|
|
|
@RequiresPermissions("mes:pro:workorder:export")
|
|
|
|
|
@Log(title = "生产工单", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(HttpServletResponse response, ProOrderWorkorder proOrderWorkorder) {
|
|
|
|
@ -105,7 +107,7 @@ public class ProOrderWorkorderController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 获取生产工单详细信息
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("mes:proworkorder:query")
|
|
|
|
|
@RequiresPermissions("mes:pro:workorder:query")
|
|
|
|
|
@GetMapping(value = "/{workorderId}")
|
|
|
|
|
public AjaxResult getInfo(@PathVariable("workorderId") String workorderId) {
|
|
|
|
|
return success(proOrderWorkorderService.selectProOrderWorkorderByWorkorderId(workorderId));
|
|
|
|
@ -114,7 +116,7 @@ public class ProOrderWorkorderController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 新增生产工单
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("mes:proworkorder:add")
|
|
|
|
|
@RequiresPermissions("mes:pro:workorder:add")
|
|
|
|
|
@Log(title = "生产工单", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping
|
|
|
|
|
public AjaxResult add(@RequestBody ProOrderWorkorder proOrderWorkorder) {
|
|
|
|
@ -124,7 +126,7 @@ public class ProOrderWorkorderController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 修改生产工单
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("mes:proworkorder:edit")
|
|
|
|
|
@RequiresPermissions("mes:pro:workorder:edit")
|
|
|
|
|
@Log(title = "生产工单", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping
|
|
|
|
|
public AjaxResult edit(@RequestBody ProOrderWorkorder proOrderWorkorder) {
|
|
|
|
@ -134,7 +136,7 @@ public class ProOrderWorkorderController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 删除生产工单
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("mes:proworkorder:remove")
|
|
|
|
|
@RequiresPermissions("mes:pro:workorder:remove")
|
|
|
|
|
@Log(title = "生产工单", businessType = BusinessType.DELETE)
|
|
|
|
|
@DeleteMapping("/{workorderIds}")
|
|
|
|
|
public AjaxResult remove(@PathVariable String[] workorderIds) {
|
|
|
|
@ -146,7 +148,7 @@ public class ProOrderWorkorderController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 下发生产工单
|
|
|
|
|
*/
|
|
|
|
|
@RequiresPermissions("mes:proworkorder:edit")
|
|
|
|
|
@RequiresPermissions("mes:pro:workorder:edit")
|
|
|
|
|
@Log(title = "下发生产工单", businessType = BusinessType.OTHER)
|
|
|
|
|
@PostMapping("/downWorkorder/{workorderIds}")
|
|
|
|
|
public AjaxResult downWorkorder(@PathVariable String[] workorderIds) {
|
|
|
|
|