| | |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.andon.entity.AndonOrder; |
| | | import org.jeecg.modules.andon.service.IAndonOrderService; |
| | | import org.jeecg.modules.system.entity.SysUser; |
| | | import org.jeecg.modules.system.service.ISysUserService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | |
| | | public class AndonOrderController extends JeecgController<AndonOrder, IAndonOrderService> { |
| | | @Autowired |
| | | private IAndonOrderService andonOrderService; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 分页列表查询 |
| | |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 添加 |
| | | * |
| | |
| | | */ |
| | | @AutoLog(value = "安灯工单-添加") |
| | | @ApiOperation(value="安灯工单-添加", notes="安灯工单-添加") |
| | | //@RequiresPermissions("org.jeecg.modules:andon_order:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody AndonOrder andonOrder) { |
| | | andonOrderService.save(andonOrder); |
| | | return Result.OK("添加成功!"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * APP安灯响应操作 |
| | | * |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "APP安灯响应操作", notes = "APP安灯响应操作") |
| | | @GetMapping(value = "/AndonRespond") |
| | | public Result<String> AndonRespond(@RequestParam("orderId") String orderId) { |
| | | AndonOrder andonOrder = andonOrderService.getById(orderId); |
| | | andonOrder.setOrderStatus("2"); |
| | | andonOrderService.updateById(andonOrder); |
| | | return Result.OK("响应成功!"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * APP安灯处理操作 |
| | | * |
| | | * |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "APP安灯处理操作", notes = "APP安灯处理操作") |
| | | @PostMapping(value = "/AndonHandel") |
| | | public Result<String> AndonHandel(@RequestBody AndonOrder andonOrder) { |
| | | return andonOrderService.handleAndonOrder(andonOrder); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 编辑 |
| | | * |