| | |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.andon.dto.AndonButtonDTO; |
| | | import org.jeecg.modules.andon.dto.AndonOrdeDto; |
| | | import org.jeecg.modules.andon.entity.AndonResponseConfig; |
| | | import org.jeecg.modules.andon.service.IAndonResponseConfigService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | @AutoLog(value = "安灯工单-发送飞书消息") |
| | | @ApiOperation(value = "安灯工单-发送飞书消息", notes = "安灯工单-发送飞书消息") |
| | | @PostMapping(value = "/sendMessage") |
| | | public Result<String> sendMessage(@RequestBody AndonButtonDTO andonButtonDTO) { |
| | | public Result<String> sendMessage(@RequestBody AndonOrdeDto andonButtonDTO) { |
| | | try { |
| | | andonButtonDTO.setBlinkingFlag(1); |
| | | // 调用服务层处理业务逻辑 |
| | | andonResponseConfigService.sendAndonNotification(andonButtonDTO); |
| | | return Result.OK("添加成功!"); |
| | |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, AndonResponseConfig.class); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * APP安灯按钮列表查询 |
| | | * |
| | | * @param factoryId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "安灯按钮配置-列表查询", notes = "安灯按钮配置-列表查询") |
| | | @GetMapping(value = "/queryAndonButtonList") |
| | | public Result<List<AndonButtonDTO>> queryAndonButtonList(@RequestParam("factoryId") String factoryId) { |
| | | List<AndonButtonDTO> list = andonResponseConfigService.queryAndonButtonList(factoryId); |
| | | return Result.OK(list); |
| | | } |
| | | |
| | | } |