forked from I3-YF/i3plus-mes-yfai
产线产品加工规则报表
parent
29720c309a
commit
b664e74e37
@ -0,0 +1,50 @@
|
|||||||
|
package cn.estsh.i3plus.ext.mes.apiservice.controller.report;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.ext.mes.api.busi.report.IMesYfReportService;
|
||||||
|
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||||
|
import cn.estsh.i3plus.ext.mes.pojo.model.report.MesProdRuleReportConditionModel;
|
||||||
|
import cn.estsh.i3plus.pojo.base.common.Pager;
|
||||||
|
import cn.estsh.impp.framework.base.controller.MesBaseController;
|
||||||
|
import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
||||||
|
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
||||||
|
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
|
||||||
|
import cn.estsh.impp.framework.boot.util.ResultBean;
|
||||||
|
import cn.estsh.impp.framework.boot.util.ValidatorBean;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 产线产品加工规则报表
|
||||||
|
* @Reference :
|
||||||
|
* @Author : logic
|
||||||
|
* @CreateDate : 2024/6/17 15:37
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Api("产线产品加工规则报表")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(MesCommonConstant.MES_YANFEN + "/prod-rule-report")
|
||||||
|
public class MesProdRuleReportController extends MesBaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IMesYfReportService mesYfReportService;
|
||||||
|
|
||||||
|
@ApiOperation(value = "查询产线产品加工规则报表", notes = "查询产线产品加工规则报表")
|
||||||
|
@GetMapping("/query")
|
||||||
|
public ResultBean queryMesProdRuleByPager(MesProdRuleReportConditionModel conditionModel, Pager pager){
|
||||||
|
try {
|
||||||
|
ValidatorBean.beginValid(conditionModel).notNull("isSort", conditionModel.getIsSort());
|
||||||
|
String organizeCode = AuthUtil.getOrganize().getOrganizeCode();
|
||||||
|
conditionModel.setOrganizeCode(organizeCode);
|
||||||
|
return mesYfReportService.queryMesProdRuleByPager(conditionModel, pager);
|
||||||
|
} catch (ImppBusiException e) {
|
||||||
|
return ResultBean.fail(e);
|
||||||
|
} catch (Exception e) {
|
||||||
|
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
package cn.estsh.i3plus.ext.mes.pojo.model.report;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 产线产品加工规则报表-查询条件封装
|
||||||
|
* @Reference :
|
||||||
|
* @Author : logic
|
||||||
|
* @CreateDate : 2024/6/17 15:52
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@ApiModel("产线产品加工规则报表-查询条件封装")
|
||||||
|
public class MesProdRuleReportConditionModel {
|
||||||
|
|
||||||
|
@ApiParam(value = "组织代码")
|
||||||
|
private String organizeCode;
|
||||||
|
|
||||||
|
@ApiParam(value = "工作中心(产线)")
|
||||||
|
private String workCenterCode;
|
||||||
|
|
||||||
|
@ApiParam(value = "工作单元代码(工位)")
|
||||||
|
private String workCellCode;
|
||||||
|
|
||||||
|
@ApiParam(value = "设备代码(设备编号)")
|
||||||
|
private String equipmentCode;
|
||||||
|
|
||||||
|
@ApiParam(value = "进料零件号")
|
||||||
|
private String inPartNo;
|
||||||
|
|
||||||
|
@ApiParam(value = "进料零件规则")
|
||||||
|
private String inPartNoRule;
|
||||||
|
|
||||||
|
@ApiParam(value = "产成零件号")
|
||||||
|
private String outPartNo;
|
||||||
|
|
||||||
|
@ApiParam(value = "是否排序")
|
||||||
|
private Integer isSort;
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue