forked from I3-YF/i3plus-mes-yfai
Merge branch 'dev-wuhan' of http://git.estsh.com/I3-YF/i3plus-mes-yfai into dev-wuhan
commit
36f5c4c736
@ -0,0 +1,13 @@
|
|||||||
|
package cn.estsh.i3plus.ext.mes.api.base;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.mes.bean.nc.MesPartInspection;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description:
|
||||||
|
* @CreateDate 2024/09/09
|
||||||
|
* @Author gsz
|
||||||
|
*/
|
||||||
|
public interface IMesPartInspectionService extends IBaseMesService<MesPartInspection> {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package cn.estsh.i3plus.ext.mes.apiservice.controller.base;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||||
|
import cn.estsh.i3plus.pojo.mes.bean.nc.MesPartInspection;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 零件检测
|
||||||
|
*/
|
||||||
|
@Api("零件检测")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesPartInspection")
|
||||||
|
public class MesPartInspectionController extends BaseMesController<MesPartInspection> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
package cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.ext.mes.api.base.IMesPartInspectionService;
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
||||||
|
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
|
||||||
|
import cn.estsh.i3plus.pojo.mes.bean.nc.MesPartInspection;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@Slf4j
|
||||||
|
public class MesPartInspectionService extends BaseMesService<MesPartInspection> implements IMesPartInspectionService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void setPackQueryBean(MesPartInspection bean, DdlPackBean packBean) {
|
||||||
|
DdlPreparedPack.getStringEqualPack(bean.getSn(), "sn", packBean);
|
||||||
|
DdlPreparedPack.getStringLikerPack(bean.getPartNo(), "partNo", packBean);
|
||||||
|
DdlPreparedPack.getStringLikerPack(bean.getPartName(), "partName", packBean);
|
||||||
|
DdlPreparedPack.getStringLikerPack(bean.getWorkCenterCode(), "workCenterCode", packBean);
|
||||||
|
DdlPreparedPack.getNumEqualPack(bean.getNcStatus(), "ncStatus", packBean);
|
||||||
|
if (StringUtils.isNotBlank(bean.getCreateDateTimeStart()) && StringUtils.isNotBlank(bean.getCreateDateTimeEnd())) {
|
||||||
|
DdlPreparedPack.timeBuilder(bean.getCreateDateTimeStart(), bean.getCreateDateTimeEnd(), "createDatetime", packBean, true);
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(bean.getModifyDateTimeStart()) && StringUtils.isNotBlank(bean.getModifyDateTimeEnd())) {
|
||||||
|
DdlPreparedPack.timeBuilder(bean.getModifyDateTimeStart(), bean.getModifyDateTimeEnd(), "modifyDatetime", packBean, true);
|
||||||
|
}
|
||||||
|
// DdlPreparedPack.getStringLikerPack(bean.getInspectionDate(), "inspectionDate", packBean);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue