forked from I3-YF/i3plus-mes-yfai
设备日志
parent
29351f41cc
commit
193e918dae
@ -0,0 +1,15 @@
|
||||
package cn.estsh.i3plus.ext.mes.api.busi.report;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.api.base.IBaseMesService;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesEquipmentLogDetail;
|
||||
|
||||
/**
|
||||
* @Description : 设备日志报表
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2023/02/06 13:42
|
||||
* @Modify:
|
||||
**/
|
||||
public interface IMesEquipmentLogDetailService extends IBaseMesService<MesEquipmentLogDetail> {
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.controller.report;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.apiservice.controller.base.BaseMesController;
|
||||
import cn.estsh.i3plus.ext.mes.pojo.constant.MesCommonConstant;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesEquipmentLogDetail;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Description :设备日志报表
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2023/02/06 09:59
|
||||
* @Modify:
|
||||
**/
|
||||
@Api(tags = "设备日志报表")
|
||||
@RestController
|
||||
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesEquipmentLogDetail")
|
||||
public class MesEquipmentLogDetailController extends BaseMesController<MesEquipmentLogDetail> {
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.report;
|
||||
|
||||
import cn.estsh.i3plus.ext.mes.api.busi.report.IMesEquipmentLogDetailService;
|
||||
import cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base.BaseMesService;
|
||||
import cn.estsh.i3plus.ext.mes.pojo.util.MesExtConstWords;
|
||||
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
||||
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesEquipmentLogDetail;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class MesEquipmentLogDetailService extends BaseMesService<MesEquipmentLogDetail> implements IMesEquipmentLogDetailService {
|
||||
|
||||
@Override
|
||||
protected void setPackQueryBean(MesEquipmentLogDetail bean, DdlPackBean packBean) {
|
||||
DdlPreparedPack.getNumEqualPack(bean.getEquipId(), MesExtConstWords.EQUIP_ID, packBean);
|
||||
DdlPreparedPack.getNumEqualPack(bean.getVariableType(), MesExtConstWords.VARIABLE_TYPE, packBean);
|
||||
DdlPreparedPack.getNumEqualPack(bean.getEquipVariableId(), MesExtConstWords.EQUIP_VARIABLE_ID, packBean);
|
||||
DdlPreparedPack.getStringEqualPack(bean.getEquipmentCode(), MesExtConstWords.EQUIPMENT_CODE, packBean);
|
||||
DdlPreparedPack.getStringLikerPack(bean.getEquipVariableName(), MesExtConstWords.EQUIP_VARIABLE_NAME, packBean);
|
||||
DdlPreparedPack.timeBuilder(bean.getCreateDateTimeStart(), bean.getCreateDateTimeEnd(), MesExtConstWords.CREATE_DATE_TIME, packBean, true);
|
||||
DdlPreparedPack.getOrderByPack(new Object[]{CommonEnumUtil.ASC_OR_DESC.DESC.getValue()}, new String[]{MesExtConstWords.CREATE_DATE_TIME}, packBean);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue