forked from I3-YF/i3plus-mes-yfai
MesMaximo查询仪表主数据+设备主数据接口
parent
e602b1a136
commit
9599dc038b
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesMaximoAssetMainData;
|
||||
|
||||
/**
|
||||
* @Description :Maximo设备主数据
|
||||
* @Reference :
|
||||
* @Author : gsz
|
||||
* @CreateDate 2024/5/17 10:06
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesMaximoAssetMainDataService extends IBaseMesService<MesMaximoAssetMainData> {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.base;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesMaximoMeterMainData;
|
||||
|
||||
/**
|
||||
* @Description :Maximo仪表主数据
|
||||
* @Reference :
|
||||
* @Author : gsz
|
||||
* @CreateDate 2024/5/17 10:06
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesMaximoMeterMainDataService extends IBaseMesService<MesMaximoMeterMainData> {
|
||||
}
|
@ -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.MesMaximoAssetMainData;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : gsz
|
||||
* @CreateDate : 2024-05-17 10:16
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesMaximoAssetMainData")
|
||||
public class MesMaximoAssetMainDataController extends BaseMesController<MesMaximoAssetMainData>{
|
||||
}
|
@ -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.MesMaximoMeterMainData;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : gsz
|
||||
* @CreateDate : 2024-05-17 10:16
|
||||
* @Modify:
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesMaximoMeterMainData")
|
||||
public class MesMaximoMeterMainDataController extends BaseMesController<MesMaximoMeterMainData>{
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.api.base.IMesMaximoAssetMainDataService;
|
||||
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
||||
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesMaximoAssetMainData;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* @Description : Maximo设备主数据
|
||||
* @Reference :
|
||||
* @Author : gsz
|
||||
* @CreateDate 2024/5/17 10:06
|
||||
* @Modify:
|
||||
**/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class MesMaximoAssetMainDataServiceImpl extends BaseMesService<MesMaximoAssetMainData> implements IMesMaximoAssetMainDataService {
|
||||
|
||||
protected void setPackQueryBean(MesMaximoAssetMainData bean, DdlPackBean packBean) {
|
||||
DdlPreparedPack.getStringEqualPack(bean.getAssetNum(), "assetNum", packBean);
|
||||
DdlPreparedPack.getNumEqualPack(bean.getDescription(), "description", packBean);
|
||||
DdlPreparedPack.getStringEqualPack(bean.getStatus(), "status", packBean);
|
||||
DdlPreparedPack.getStringEqualPack(bean.getFailureCode(), "failureCode", packBean);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.api.base.IMesMaximoMeterMainDataService;
|
||||
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
||||
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesMaximoMeterMainData;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* @Description : Maximo仪表主数据
|
||||
* @Reference :
|
||||
* @Author : gsz
|
||||
* @CreateDate 2024/5/17 10:06
|
||||
* @Modify:
|
||||
**/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class MesMaximoMeterMainDataServiceImpl extends BaseMesService<MesMaximoMeterMainData> implements IMesMaximoMeterMainDataService {
|
||||
|
||||
protected void setPackQueryBean(MesMaximoMeterMainData bean, DdlPackBean packBean) {
|
||||
DdlPreparedPack.getStringEqualPack(bean.getAssetNum(), "assetNum", packBean);
|
||||
DdlPreparedPack.getNumEqualPack(bean.getBaseMeasureUnitId(), "baseMeasureUnitId", packBean);
|
||||
DdlPreparedPack.getStringEqualPack(bean.getMeterName(), "meterName", packBean);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue