update MES设备类型设备大类改字段

master
yinq 1 week ago
parent da7d27bf36
commit 7634a410e8

@ -49,7 +49,7 @@ public class BaseDeviceType extends TenantEntity {
/**
* IDIDbase_categorycategory_type2
*/
private Long categoryId;
private Long deviceCategoryId;
/**
* 1 0

@ -54,7 +54,7 @@ public class BaseDeviceTypeBo extends BaseEntity {
* IDIDbase_categorycategory_type2
*/
@NotNull(message = "设备大类不能为空", groups = { AddGroup.class, EditGroup.class })
private Long categoryId;
private Long deviceCategoryId;
/**
* 1 0

@ -63,7 +63,7 @@ public class BaseDeviceTypeVo implements Serializable {
*/
@ExcelProperty(value = "设备大类ID", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "大=类ID关联base_category表category_type为2的")
private Long categoryId;
private Long deviceCategoryId;
/**
* 1 0

@ -78,7 +78,7 @@ public class BaseDeviceTypeServiceImpl implements IBaseDeviceTypeService {
.eq(StringUtils.isNotBlank(bo.getDeviceTypeCode()), BaseDeviceType::getDeviceTypeCode, bo.getDeviceTypeCode())
.like(StringUtils.isNotBlank(bo.getDeviceTypeName()), BaseDeviceType::getDeviceTypeName, bo.getDeviceTypeName())
.eq(StringUtils.isNotBlank(bo.getAncestors()), BaseDeviceType::getAncestors, bo.getAncestors())
.eq(bo.getCategoryId() != null, BaseDeviceType::getCategoryId, bo.getCategoryId())
.eq(bo.getDeviceCategoryId() != null, BaseDeviceType::getDeviceCategoryId, bo.getDeviceCategoryId())
.eq(StringUtils.isNotBlank(bo.getActiveFlag()), BaseDeviceType::getActiveFlag, bo.getActiveFlag())
.orderByDesc(BaseDeviceType::getCreateTime);
return lqw;

Loading…
Cancel
Save