新增 主数据bean

tags/yfai-mes-ext-v1.0
LML丶 1 year ago
parent 327e7f4f45
commit c5505d85df

@ -0,0 +1,13 @@
package cn.estsh.i3plus.ext.mes.api.base;
import cn.estsh.i3plus.pojo.mes.bean.MesPartShippingGroupDetail;
/**
* @Description:
* @CreateDate 2024/04/16
* @Author mingliang.li
*/
public interface IMesPartShippingGroupDetailService extends IBaseMesService<MesPartShippingGroupDetail> {
}

@ -2,12 +2,14 @@ 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.MesCustomerCarModel;
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 + "/mesCustomerCarModel")
public class MesCustomerCarModelController extends BaseMesController<MesCustomerCarModel>{

@ -3,12 +3,14 @@ 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.MesArea;
import cn.estsh.i3plus.pojo.mes.bean.MesCustomerCarModelDetail;
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 + "/mesCustomerCarModelDetail")
public class MesCustomerCarModelDetailController extends BaseMesController<MesCustomerCarModelDetail>{

@ -3,12 +3,14 @@ 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.MesArea;
import cn.estsh.i3plus.pojo.mes.bean.MesCustomer;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
*
*/
@Api(description = "客户信息页面")
@RestController
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesCustomer")
public class MesCustomerController extends BaseMesController<MesCustomer>{

@ -3,12 +3,14 @@ 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.MesArea;
import cn.estsh.i3plus.pojo.mes.bean.MesCustomerOriganze;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
*
*/
@Api(description = "客户工厂信息页面")
@RestController
@RequestMapping(MesCommonConstant.MES_YANFEN + "/mesCustomerOriganze")
public class MesCustomerOriganizeController extends BaseMesController<MesCustomerOriganze>{

@ -3,12 +3,14 @@ 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.MesArea;
import cn.estsh.i3plus.pojo.mes.bean.MesCustomerPart;
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 + "/mesCustomerPart")
public class MesCustomerPartController extends BaseMesController<MesCustomerPart>{

@ -2,9 +2,11 @@ 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.MesModelRelationship;
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 + "/mesModelRelationship")

@ -2,12 +2,14 @@ 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.MesPartShippingGroup;
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 + "/mesPartShippingGroup")
public class MesPartShippingGroupController extends BaseMesController<MesPartShippingGroup> {

@ -0,0 +1,16 @@
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.MesPartShippingGroupDetail;
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 + "/mesPartShippingGroupDetail")
public class MesPartShippingGroupDetailController extends BaseMesController<MesPartShippingGroupDetail> {
}

@ -3,11 +3,12 @@ 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.MesPartShippingGroup;
import cn.estsh.i3plus.pojo.mes.bean.MesPartTransfer;
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 + "/mesPartTransfer")
public class MesPartTransferController extends BaseMesController<MesPartTransfer> {
}

@ -3,9 +3,11 @@ 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.MesPartTransfer;
import cn.estsh.i3plus.pojo.mes.bean.MesPartTransferDetail;
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 + "/mesPartTransferDetail")

@ -97,7 +97,7 @@ public abstract class BaseMesService<T extends BaseBean> implements IBaseMesServ
onUpdateBean(bean);
T originBean = baseRDao.getById(bean.getId());
onModifyBean();
ConvertBean.serviceModelUpdate(bean, AuthUtil.getSessionUser().getUserName());
ConvertBean.serviceModelUpdate(bean, "LML");
baseRDao.update(bean);
return originBean;
}
@ -106,7 +106,7 @@ public abstract class BaseMesService<T extends BaseBean> implements IBaseMesServ
public void updates(Iterable<T> beans) {
for (T bean : beans) {
onUpdateBean(bean);
ConvertBean.serviceModelUpdate(bean, AuthUtil.getSessionUser().getUserName());
ConvertBean.serviceModelUpdate(bean, "LML");
baseRDao.update(bean);
}
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.ext.mes.apiservice.serviceimpl.base;
import cn.estsh.i3plus.ext.mes.api.base.IMesPartShippingGroupDetailService;
import cn.estsh.i3plus.ext.mes.api.base.IMesPartShippingGroupService;
import cn.estsh.i3plus.pojo.mes.bean.MesPartShippingGroup;
import cn.estsh.i3plus.pojo.mes.bean.MesPartShippingGroupDetail;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Service
@Slf4j
public class MesPartShippingGroupDetailService extends BaseMesService<MesPartShippingGroupDetail> implements IMesPartShippingGroupDetailService {
}
Loading…
Cancel
Save