| | |
| | | import com.mes.opctask.entity.LoadGlassDeviceTaskHistory; |
| | | import com.mes.opctask.entity.request.LoadGlassDeviceTaskHistoryRequest; |
| | | import com.mes.opctask.service.LoadGlassDeviceTaskHistoryService; |
| | | import com.mes.pp.service.OptimizeProjectService; |
| | | import com.mes.uppattenusage.entity.UpPattenUsage; |
| | | import com.mes.utils.Result; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.MessageSource; |
| | | import org.springframework.context.i18n.LocaleContextHolder; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Autowired |
| | | private LoadGlassDeviceTaskHistoryService loadGlassDeviceTaskHistoryService; |
| | | |
| | | // 国际语言库 |
| | | @Resource |
| | | private MessageSource messageSource; |
| | | |
| | | @ApiOperation("按照查询条件查询上片历史任务") |
| | | @PostMapping("/queryLoadGlassHistoryTask") //查询现在上片机的玻璃信息 |
| | | public Result<Page<LoadGlassDeviceTaskHistory>> queryBigStorageCageHistoryTask(@RequestBody @Validated LoadGlassDeviceTaskHistoryRequest request) { |
| | | return Result.build(200, "查询成功", loadGlassDeviceTaskHistoryService.queryLoadGlassHistoryTask(request)); |
| | | Page<LoadGlassDeviceTaskHistory> result = loadGlassDeviceTaskHistoryService.queryLoadGlassHistoryTask(request); |
| | | if (result != null) { |
| | | String successMsg = messageSource.getMessage( |
| | | "rawglass.query.success", |
| | | null, |
| | | LocaleContextHolder.getLocale() |
| | | ); |
| | | return Result.build(200, successMsg, result); |
| | | }else { |
| | | return Result.build(500, "fail", result); |
| | | } |
| | | } |
| | | |
| | | } |