| | |
| | | package com.jcdm.main.bs.orderScheduling.controller; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.jcdm.common.utils.StringUtils; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | * 订单排产Controller |
| | | * |
| | | * @author jiang |
| | | * @date 2024-01-09 |
| | | * @date 2024-01-13 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/bs/orderScheduling") |
| | |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('bs:orderScheduling:list')") |
| | | @GetMapping("/list2") |
| | | public TableDataInfo list2(BsOrderScheduling bsOrderScheduling) |
| | | { |
| | | // startPage(); |
| | | List<BsOrderScheduling> list = new ArrayList<>(); |
| | | if (StringUtils.isNotEmpty(bsOrderScheduling.getOrderNo())){ |
| | | list = bsOrderSchedulingService.selectBsOrderSchedulingList(bsOrderScheduling); |
| | | } |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导出订单排产列表 |
| | | */ |
| | |
| | | * 获取订单排产详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('bs:orderScheduling:query')") |
| | | @GetMapping(value = "/{orderNumber}") |
| | | public AjaxResult getInfo(@PathVariable("orderNumber") String orderNumber) |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(bsOrderSchedulingService.selectBsOrderSchedulingByOrderNumber(orderNumber)); |
| | | return success(bsOrderSchedulingService.selectBsOrderSchedulingById(id)); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('bs:orderScheduling:remove')") |
| | | @Log(title = "订单排产", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{orderNumbers}") |
| | | public AjaxResult remove(@PathVariable String[] orderNumbers) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(bsOrderSchedulingService.deleteBsOrderSchedulingByOrderNumbers(orderNumbers)); |
| | | return toAjax(bsOrderSchedulingService.deleteBsOrderSchedulingByIds(ids)); |
| | | } |
| | | } |