|
|
@ -12,6 +12,7 @@ import cn.estsh.impp.framework.boot.util.ValidatorBean;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@ -39,8 +40,7 @@ public class MesWorkCenterBoardController {
|
|
|
|
ValidatorBean.beginValid(conditionModel)
|
|
|
|
ValidatorBean.beginValid(conditionModel)
|
|
|
|
.notNull("workCenterCodeList", conditionModel.getWorkCenterCodeList())
|
|
|
|
.notNull("workCenterCodeList", conditionModel.getWorkCenterCodeList())
|
|
|
|
.notNull("timeRangeIdentification", conditionModel.getTimeRangeIdentification());
|
|
|
|
.notNull("timeRangeIdentification", conditionModel.getTimeRangeIdentification());
|
|
|
|
String organizeCode = AuthUtil.getOrganize().getOrganizeCode();
|
|
|
|
if (StringUtils.isEmpty(conditionModel.getOrganizeCode())) conditionModel.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
|
|
|
|
conditionModel.setOrganizeCode(organizeCode);
|
|
|
|
|
|
|
|
return ResultBean.success("查询产线状态").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).
|
|
|
|
return ResultBean.success("查询产线状态").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).
|
|
|
|
setResultList(mesYfBoardService.queryWorkCenterStatus(conditionModel));
|
|
|
|
setResultList(mesYfBoardService.queryWorkCenterStatus(conditionModel));
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
@ -57,8 +57,7 @@ public class MesWorkCenterBoardController {
|
|
|
|
ValidatorBean.beginValid(conditionModel)
|
|
|
|
ValidatorBean.beginValid(conditionModel)
|
|
|
|
.notNull("workCenterCodeList", conditionModel.getWorkCenterCodeList())
|
|
|
|
.notNull("workCenterCodeList", conditionModel.getWorkCenterCodeList())
|
|
|
|
.notNull("timeRangeIdentification", conditionModel.getTimeRangeIdentification());
|
|
|
|
.notNull("timeRangeIdentification", conditionModel.getTimeRangeIdentification());
|
|
|
|
String organizeCode = AuthUtil.getOrganize().getOrganizeCode();
|
|
|
|
if (StringUtils.isEmpty(conditionModel.getOrganizeCode())) conditionModel.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
|
|
|
|
conditionModel.setOrganizeCode(organizeCode);
|
|
|
|
|
|
|
|
return ResultBean.success("查询产线生产完成率").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).
|
|
|
|
return ResultBean.success("查询产线生产完成率").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).
|
|
|
|
setResultObject(mesYfBoardService.queryWorkCenterProductionCompletionRate(conditionModel));
|
|
|
|
setResultObject(mesYfBoardService.queryWorkCenterProductionCompletionRate(conditionModel));
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
@ -75,8 +74,7 @@ public class MesWorkCenterBoardController {
|
|
|
|
ValidatorBean.beginValid(conditionModel)
|
|
|
|
ValidatorBean.beginValid(conditionModel)
|
|
|
|
.notNull("workCenterCodeList", conditionModel.getWorkCenterCodeList())
|
|
|
|
.notNull("workCenterCodeList", conditionModel.getWorkCenterCodeList())
|
|
|
|
.notNull("timeRangeIdentification", conditionModel.getTimeRangeIdentification());
|
|
|
|
.notNull("timeRangeIdentification", conditionModel.getTimeRangeIdentification());
|
|
|
|
String organizeCode = AuthUtil.getOrganize().getOrganizeCode();
|
|
|
|
if (StringUtils.isEmpty(conditionModel.getOrganizeCode())) conditionModel.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
|
|
|
|
conditionModel.setOrganizeCode(organizeCode);
|
|
|
|
|
|
|
|
return ResultBean.success("查询产线工单完成情况").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).
|
|
|
|
return ResultBean.success("查询产线工单完成情况").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).
|
|
|
|
setResultList(mesYfBoardService.queryWorkCenterWorkOrderCompletionStatus(conditionModel));
|
|
|
|
setResultList(mesYfBoardService.queryWorkCenterWorkOrderCompletionStatus(conditionModel));
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
@ -93,8 +91,7 @@ public class MesWorkCenterBoardController {
|
|
|
|
ValidatorBean.beginValid(conditionModel)
|
|
|
|
ValidatorBean.beginValid(conditionModel)
|
|
|
|
.notNull("workCenterCodeList", conditionModel.getWorkCenterCodeList())
|
|
|
|
.notNull("workCenterCodeList", conditionModel.getWorkCenterCodeList())
|
|
|
|
.notNull("timeRangeIdentification", conditionModel.getTimeRangeIdentification());
|
|
|
|
.notNull("timeRangeIdentification", conditionModel.getTimeRangeIdentification());
|
|
|
|
String organizeCode = AuthUtil.getOrganize().getOrganizeCode();
|
|
|
|
if (StringUtils.isEmpty(conditionModel.getOrganizeCode())) conditionModel.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
|
|
|
|
conditionModel.setOrganizeCode(organizeCode);
|
|
|
|
|
|
|
|
return ResultBean.success("查询单位小时完工数").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).
|
|
|
|
return ResultBean.success("查询单位小时完工数").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).
|
|
|
|
setResultList(mesYfBoardService.queryUnitHourCompletionRate(conditionModel));
|
|
|
|
setResultList(mesYfBoardService.queryUnitHourCompletionRate(conditionModel));
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
@ -111,8 +108,7 @@ public class MesWorkCenterBoardController {
|
|
|
|
ValidatorBean.beginValid(conditionModel)
|
|
|
|
ValidatorBean.beginValid(conditionModel)
|
|
|
|
.notNull("workCenterCodeList", conditionModel.getWorkCenterCodeList())
|
|
|
|
.notNull("workCenterCodeList", conditionModel.getWorkCenterCodeList())
|
|
|
|
.notNull("timeRangeIdentification", conditionModel.getTimeRangeIdentification());
|
|
|
|
.notNull("timeRangeIdentification", conditionModel.getTimeRangeIdentification());
|
|
|
|
String organizeCode = AuthUtil.getOrganize().getOrganizeCode();
|
|
|
|
if (StringUtils.isEmpty(conditionModel.getOrganizeCode())) conditionModel.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
|
|
|
|
conditionModel.setOrganizeCode(organizeCode);
|
|
|
|
|
|
|
|
return ResultBean.success("查询产线一次下线合格率").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).
|
|
|
|
return ResultBean.success("查询产线一次下线合格率").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).
|
|
|
|
setResultList(mesYfBoardService.queryWorkCenterFirstTimeOfflineQualificationRate(conditionModel));
|
|
|
|
setResultList(mesYfBoardService.queryWorkCenterFirstTimeOfflineQualificationRate(conditionModel));
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
@ -129,8 +125,7 @@ public class MesWorkCenterBoardController {
|
|
|
|
ValidatorBean.beginValid(conditionModel)
|
|
|
|
ValidatorBean.beginValid(conditionModel)
|
|
|
|
.notNull("workCenterCodeList", conditionModel.getWorkCenterCodeList())
|
|
|
|
.notNull("workCenterCodeList", conditionModel.getWorkCenterCodeList())
|
|
|
|
.notNull("timeRangeIdentification", conditionModel.getTimeRangeIdentification());
|
|
|
|
.notNull("timeRangeIdentification", conditionModel.getTimeRangeIdentification());
|
|
|
|
String organizeCode = AuthUtil.getOrganize().getOrganizeCode();
|
|
|
|
if (StringUtils.isEmpty(conditionModel.getOrganizeCode())) conditionModel.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
|
|
|
|
conditionModel.setOrganizeCode(organizeCode);
|
|
|
|
|
|
|
|
return ResultBean.success("查询点检结果").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).
|
|
|
|
return ResultBean.success("查询点检结果").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).
|
|
|
|
setResultList(mesYfBoardService.queryInspectionResults(conditionModel));
|
|
|
|
setResultList(mesYfBoardService.queryInspectionResults(conditionModel));
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
@ -147,8 +142,7 @@ public class MesWorkCenterBoardController {
|
|
|
|
ValidatorBean.beginValid(conditionModel)
|
|
|
|
ValidatorBean.beginValid(conditionModel)
|
|
|
|
.notNull("workCenterCodeList", conditionModel.getWorkCenterCodeList())
|
|
|
|
.notNull("workCenterCodeList", conditionModel.getWorkCenterCodeList())
|
|
|
|
.notNull("timeRangeIdentification", conditionModel.getTimeRangeIdentification());
|
|
|
|
.notNull("timeRangeIdentification", conditionModel.getTimeRangeIdentification());
|
|
|
|
String organizeCode = AuthUtil.getOrganize().getOrganizeCode();
|
|
|
|
if (StringUtils.isEmpty(conditionModel.getOrganizeCode())) conditionModel.setOrganizeCode(AuthUtil.getOrganize().getOrganizeCode());
|
|
|
|
conditionModel.setOrganizeCode(organizeCode);
|
|
|
|
|
|
|
|
return ResultBean.success("查询异常停线时间").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).
|
|
|
|
return ResultBean.success("查询异常停线时间").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).
|
|
|
|
setResultObject(mesYfBoardService.queryAbnormalDowntime(conditionModel));
|
|
|
|
setResultObject(mesYfBoardService.queryAbnormalDowntime(conditionModel));
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
|
} catch (ImppBusiException e) {
|
|
|
|