| | |
| | | import org.jeecg.modules.mdc.service.IAndonOrderService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 安灯管理-响应 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "安灯管理-响应") |
| | | @ApiOperation(value = "安灯管理-响应", notes = "安灯管理-响应") |
| | | @GetMapping(value = "/responseData") |
| | | public Result<?> responseData(@RequestParam(name="id",required=true) String id) { |
| | | andonOrderService.responseData(Arrays.asList(id)); |
| | | return Result.OK("响应成功!"); |
| | | } |
| | | |
| | | /** |
| | | * 安灯管理-处理 |
| | | * |
| | | * @param andonOrder |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "安灯管理-处理") |
| | | @ApiOperation(value="安灯管理-处理", notes="安灯管理-处理") |
| | | @PostMapping(value = "/dealWith") |
| | | public Result<?> dealWith(@RequestBody AndonOrder andonOrder) { |
| | | andonOrderService.dealWith(andonOrder); |
| | | return Result.OK("添加成功!"); |
| | | } |
| | | |
| | | /** |
| | | * 程序呼叫 |
| | | * |
| | | * @param andonOrder |
| | |
| | | andonOrderService.procedureCall(andonOrder); |
| | | return Result.OK("呼叫成功!"); |
| | | } |
| | | |
| | | |
| | | } |