金属元素实体继承修改
This commit is contained in:
@@ -20,7 +20,7 @@ public class ElementSaveReqVO {
|
||||
private String name;
|
||||
|
||||
@Schema(description = "金属元素编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "金属元素编码不能为空")
|
||||
// @NotEmpty(message = "金属元素编码不能为空")
|
||||
private String coding;
|
||||
|
||||
@Schema(description = "品位单位", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.zt.plat.module.base.dal.dataobject.base;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
import lombok.*;
|
||||
/**
|
||||
* 金属元素 DO
|
||||
@@ -19,7 +20,7 @@ import lombok.*;
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class ElementDO extends BaseDO {
|
||||
public class ElementDO extends BusinessBaseDO {
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
-->
|
||||
|
||||
<select id="selectMaxCode" resultType="java.lang.String">
|
||||
SELECT MAX(coding) FROM element
|
||||
SELECT MAX(CDG) FROM sply_elem
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user