forked from I3-YF/i3plus-mes-yfai
Merge remote-tracking branch 'origin/dev' into dev
commit
64313ac6ca
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesBasDowntimeReason;
|
||||
|
||||
/**
|
||||
* @Description :设备停机原因
|
||||
* @Reference :
|
||||
* @Author : gsz
|
||||
* @CreateDate 2024/5/17 14:06
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesBasDowntimeReasonService extends IBaseMesService<MesBasDowntimeReason> {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesBasDowntimeReasonType;
|
||||
|
||||
/**
|
||||
* @Description :设备停机类型
|
||||
* @Reference :
|
||||
* @Author : gsz
|
||||
* @CreateDate 2024/5/17 14:06
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesBasDowntimeReasonTypeService extends IBaseMesService<MesBasDowntimeReasonType> {
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
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.MesBasDowntimeReason;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : gsz
|
||||
* @CreateDate : 2024-05-17 14:16
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesBasDowntimeReason")
|
||||
public class MesBasDowntimeReasonController extends BaseMesController<MesBasDowntimeReason>{
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
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.MesBasDowntimeReasonType;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : gsz
|
||||
* @CreateDate : 2024-05-17 14:16
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesBasDowntimeReasonType")
|
||||
public class MesBasDowntimeReasonTypeController extends BaseMesController<MesBasDowntimeReasonType>{
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.api.base.IMesBasDowntimeReasonService;
|
||||
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
||||
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesBasDowntimeReason;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* @Description : Maximo仪表主数据
|
||||
* @Reference :
|
||||
* @Author : gsz
|
||||
* @CreateDate 2024/5/17 14:06
|
||||
* @Modify:
|
||||
**/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class MesBasDowntimeReasonServiceImpl extends BaseMesService<MesBasDowntimeReason> implements IMesBasDowntimeReasonService {
|
||||
|
||||
protected void setPackQueryBean(MesBasDowntimeReason bean, DdlPackBean packBean) {
|
||||
DdlPreparedPack.getStringEqualPack(bean.getReasonCode(), "reasonCode", packBean);
|
||||
DdlPreparedPack.getStringEqualPack(bean.getReasonName(), "reasonName", packBean);
|
||||
DdlPreparedPack.getStringEqualPack(bean.getReasonType(), "reasonType", packBean);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.api.base.IMesBasDowntimeReasonTypeService;
|
||||
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
||||
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesBasDowntimeReasonType;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* @Description : Maximo仪表主数据
|
||||
* @Reference :
|
||||
* @Author : gsz
|
||||
* @CreateDate 2024/5/17 14:06
|
||||
* @Modify:
|
||||
**/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class MesBasDowntimeReasonTypeServiceImpl extends BaseMesService<MesBasDowntimeReasonType> implements IMesBasDowntimeReasonTypeService {
|
||||
|
||||
protected void setPackQueryBean(MesBasDowntimeReasonType bean, DdlPackBean packBean) {
|
||||
DdlPreparedPack.getStringEqualPack(bean.getTypeCode(), "typeCode", packBean);
|
||||
DdlPreparedPack.getStringEqualPack(bean.getTypeName(), "typeName", packBean);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue