| | |
| | | @RequestMapping(path="order") |
| | | public class OrderCtrl { |
| | | private OrderSv sv; |
| | | |
| | | @Autowired |
| | | public void setAssemblySv(OrderSv orderSv) { |
| | | this.sv = orderSv; |
| | | } |
| | | |
| | | @PostMapping(path="save") |
| | | @SsoPowerAop(power = "10200001") |
| | | @Log("保存订单信息") |
| | |
| | | |
| | | /** |
| | | * 更新 |
| | | * |
| | | * @param order |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 删除订单信息 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 根据ID查询 |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping(path="one") |
| | |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param vo |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 查询所有订单 |
| | | * |
| | | * @return |
| | | */ |
| | | @GetMapping(path="all") |
| | |
| | | |
| | | @PostMapping(path="updateStatus") |
| | | @SsoPowerAop(power = "10200001") |
| | | @Log("更新任务计划状态") |
| | | public BaseResponse<Boolean> updateStatus(@RequestBody PrAssemblyPlan plan){ |
| | | @Log("更新订单状态") |
| | | public BaseResponse<Boolean> updateStatus(@RequestBody PrOrder order) { |
| | | int count = 0;//sv.updateStatus(plan); |
| | | if (count <= 0) { |
| | | return BaseResponseUtils.buildFail("数据库存储失败"); |