forked from I3-YF/i3plus-mes-yfai
站点信息基础数据
parent
43ed15739c
commit
1ee988c030
@ -0,0 +1,13 @@
|
|||||||
|
package cn.estsh.i3plus.ext.mes.api.base;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.mes.bean.MesStation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : PZJ
|
||||||
|
* @CreateDate : 2024/9/20 14:45
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
public interface IMesStationService extends IBaseMesService<MesStation>{
|
||||||
|
}
|
@ -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.MesStation;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : PZJ
|
||||||
|
* @CreateDate : 2024/9/20 14:40
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping(MesCommonConstant.MES_YANFEN+"mesStation")
|
||||||
|
public class MesStationController extends BaseMesController<MesStation>{
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
package cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.ext.mes.api.base.IMesStationService;
|
||||||
|
import cn.estsh.i3plus.pojo.mes.bean.MesStation;
|
||||||
|
import cn.estsh.impp.framework.boot.util.ValidatorBean;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : PZJ
|
||||||
|
* @CreateDate : 2024/9/20 14:46
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Service
|
||||||
|
@Slf4j
|
||||||
|
public class MesStationServiceImpl extends BaseMesService<MesStation> implements IMesStationService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onInsertBean(MesStation item) {
|
||||||
|
ValidatorBean.checkNotNull(item.getEquipmentCode(),"设备代码不能为空");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onUpdateBean(MesStation item) {
|
||||||
|
ValidatorBean.checkNotNull(item.getId(),"主键不能为空");
|
||||||
|
ValidatorBean.checkNotNull(item.getEquipmentCode(),"设备代码不能为空");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue