|
|
|
@ -3,7 +3,6 @@ package cn.estsh.i3plus.ext.mes.pcn.apiservice.controller.report;
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pcn.api.report.IMesCimSeresReportService;
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pcn.pojo.constant.MesCommonConstant;
|
|
|
|
|
import cn.estsh.i3plus.ext.mes.pcn.pojo.model.CimSeresJisQueueNormalModel;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.bean.ListPager;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.common.Pager;
|
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.ResourceEnumUtil;
|
|
|
|
@ -17,6 +16,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
@Api("赛力斯报表")
|
|
|
|
@ -29,9 +29,9 @@ public class MesCimSeresReportController {
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "赛力斯JIS单接收日志", notes = "赛力斯JIS单接收日志")
|
|
|
|
|
@GetMapping("/query-srm-sun-sheet-jis-log")
|
|
|
|
|
public ResultBean querySrmSunSheetJisLogByPager(Integer status, Pager pager){
|
|
|
|
|
public ResultBean querySrmSunSheetJisLogByPager(Integer status, String docNo, Pager pager){
|
|
|
|
|
try {
|
|
|
|
|
ListPager<MesCimSeresSrmRunSheetJis> queryResultListPager = mesCimSeresReportService.querySrmSunSheetJisLogByPager(status, pager);
|
|
|
|
|
ListPager<MesCimSeresSrmRunSheetJis> queryResultListPager = mesCimSeresReportService.querySrmSunSheetJisLogByPager(status, docNo, pager);
|
|
|
|
|
return ResultBean.success("查询成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).setListPager(queryResultListPager);
|
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
|
|
return ResultBean.fail(e);
|
|
|
|
@ -42,9 +42,10 @@ public class MesCimSeresReportController {
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "赛力斯JIS单转正常", notes = "赛力斯JIS单转正常")
|
|
|
|
|
@PostMapping("/srm-sun-sheet-jis-normal")
|
|
|
|
|
public ResultBean doSrmSunSheetJisNormal(@RequestBody List<Long> ids) {
|
|
|
|
|
public ResultBean doSrmSunSheetJisNormal(@RequestBody Long[] idArray) {
|
|
|
|
|
try {
|
|
|
|
|
mesCimSeresReportService.doSrmSunSheetJisNormal(ids);
|
|
|
|
|
List<Long> idList = Arrays.asList(idArray);
|
|
|
|
|
mesCimSeresReportService.doSrmSunSheetJisNormal(idList);
|
|
|
|
|
return ResultBean.success("执行成功");
|
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
|
|
return ResultBean.fail(e);
|
|
|
|
@ -55,9 +56,9 @@ public class MesCimSeresReportController {
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "赛力斯JIS队列接收日志", notes = "赛力斯JIS队列接收日志")
|
|
|
|
|
@GetMapping("/query-jis-queue-log")
|
|
|
|
|
public ResultBean queryJisQueueLogByPager(Integer checkStatus, Pager pager){
|
|
|
|
|
public ResultBean queryJisQueueLogByPager(Integer checkStatus, String vin, String materielCode, Pager pager){
|
|
|
|
|
try {
|
|
|
|
|
ListPager<MesCimSeresJisQueue> queryResultListPager = mesCimSeresReportService.queryJisQueueLogByPager(checkStatus, pager);
|
|
|
|
|
ListPager<MesCimSeresJisQueue> queryResultListPager = mesCimSeresReportService.queryJisQueueLogByPager(checkStatus, vin, materielCode, pager);
|
|
|
|
|
return ResultBean.success("查询成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).setListPager(queryResultListPager);
|
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
|
|
return ResultBean.fail(e);
|
|
|
|
@ -68,9 +69,10 @@ public class MesCimSeresReportController {
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "赛力斯JIS队列转正常", notes = "赛力斯JIS队列转正常")
|
|
|
|
|
@PostMapping("/jis-queue-normal")
|
|
|
|
|
public ResultBean doJisQueueNormal(@RequestBody CimSeresJisQueueNormalModel model) {
|
|
|
|
|
public ResultBean doJisQueueNormal(@RequestBody Long[] idArray) {
|
|
|
|
|
try {
|
|
|
|
|
mesCimSeresReportService.doJisQueueNormal(model.getIds());
|
|
|
|
|
List<Long> idList = Arrays.asList(idArray);
|
|
|
|
|
mesCimSeresReportService.doJisQueueNormal(idList);
|
|
|
|
|
return ResultBean.success("执行成功");
|
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
|
|
return ResultBean.fail(e);
|
|
|
|
|