订单管理模块(增加权限)

highway
wws 1 year ago
parent c41b56b0f3
commit ad913f3f56

@ -50,7 +50,7 @@ public class ProOrderController extends BaseController {
* @return
* @throws Exception
*/
@Log(title = "订单信息", businessType = BusinessType.IMPORT)
@Log(title = "导入订单信息", businessType = BusinessType.IMPORT)
@PostMapping("/importData")
public AjaxResult importData(MultipartFile file) throws Exception {
// 创建接收对象
@ -68,6 +68,7 @@ public class ProOrderController extends BaseController {
* @throws IOException
*/
@PostMapping("/importTemplate")
@Log(title = "生成订单模板", businessType = BusinessType.EXPORT)
public void importTemplate(HttpServletResponse response) throws IOException {
ExcelUtil<ProOrder> util = new ExcelUtil<>(ProOrder.class);
@ -120,6 +121,8 @@ public class ProOrderController extends BaseController {
* @return
*/
@PostMapping("/subSplitOrder")
@RequiresPermissions("mes:pro:order:add")
@Log(title = "提交拆分订单", businessType = BusinessType.INSERT)
public AjaxResult subSplitOrder(@RequestBody SplitOrderDTO splitOrderDTO) {
return proOrderService.subSplitOrder(splitOrderDTO);
}
@ -158,7 +161,7 @@ public class ProOrderController extends BaseController {
*
*/
@RequiresPermissions("mes:pro:order:export")
@Log(title = "订单", businessType = BusinessType.EXPORT)
@Log(title = "导出订单列表", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ProOrder proOrder) {
List<ProOrder> list = proOrderService.selectProOrderList(proOrder);
@ -179,7 +182,7 @@ public class ProOrderController extends BaseController {
*
*/
@RequiresPermissions("mes:pro:order:add")
@Log(title = "订单", businessType = BusinessType.INSERT)
@Log(title = "新增订单", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ProOrder proOrder) {
return toAjax(proOrderService.insertProOrder(proOrder));
@ -202,7 +205,7 @@ public class ProOrderController extends BaseController {
*
*/
@RequiresPermissions("mes:pro:order:edit")
@Log(title = "订单", businessType = BusinessType.UPDATE)
@Log(title = "修改订单", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ProOrder proOrder) {
return toAjax(proOrderService.updateProOrder(proOrder));
@ -212,7 +215,7 @@ public class ProOrderController extends BaseController {
*
*/
@RequiresPermissions("mes:pro:order:remove")
@Log(title = "订单", businessType = BusinessType.DELETE)
@Log(title = "删除订单", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable String[] ids) {
return toAjax(proOrderService.deleteProOrderByIds(ids));

@ -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) {

@ -48,6 +48,8 @@ public class ProWetMaterialPlanController extends BaseController {
* @return
*/
@PutMapping("/updatePlanDetail")
@RequiresPermissions("mes:plan:edit")
@Log(title = "湿料计划修改", businessType = BusinessType.UPDATE)
public AjaxResult updateWetMaterialPlanDetail(@RequestBody List<ProWetMaterialPlanDetail> detailList) {
return proWetMaterialPlanService.updateWetMaterialPlanDetail(detailList);
}
@ -70,6 +72,8 @@ public class ProWetMaterialPlanController extends BaseController {
* @return
*/
@PostMapping("/addWetPlan")
@RequiresPermissions("mes:plan:add")
@Log(title = "湿料计划新增", businessType = BusinessType.INSERT)
public AjaxResult addWetPlan(@RequestBody List<ProOrderWorkorder> proOrderWorkorderList) {
return proWetMaterialPlanService.addWetPlan(proOrderWorkorderList);
}

Loading…
Cancel
Save