Browse Source

添加assetspecid字段-主键

zhangqiankun 3 năm trước cách đây
mục cha
commit
2625e3c705

+ 22 - 0
src/main/java/com/persagy/transfer/pojo/dto/HydomcAssetspec.java

@@ -32,6 +32,9 @@ public class HydomcAssetspec extends Model<HydomcAssetspec> {
 	private static final long serialVersionUID = 1994016672442325413L;
 
 	@TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
+	private String assetspecid;	//主键ID
+	
+	@TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
 	private String assetattrid; // 设备分类ID
 
 	@TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
@@ -78,6 +81,13 @@ public class HydomcAssetspec extends Model<HydomcAssetspec> {
 
 		private LambdaQueryWrapper<HydomcAssetspec> queryWrapper = new LambdaQueryWrapper<HydomcAssetspec>();
 
+		public BuilderQueryWrapper assetspecidEq(String assetspecid) {
+			if (StringUtil.isNotBlank(assetspecid)) {
+				queryWrapper.eq(HydomcAssetspec::getAssetspecid, assetspecid);
+			}
+			return this;
+		}
+		
 		public BuilderQueryWrapper assetattridEq(String assetattrid) {
 			if (StringUtil.isNotBlank(assetattrid)) {
 				queryWrapper.eq(HydomcAssetspec::getAssetattrid, assetattrid);
@@ -179,6 +189,13 @@ public class HydomcAssetspec extends Model<HydomcAssetspec> {
 
 		private LambdaUpdateWrapper<HydomcAssetspec> updateWrapper = new LambdaUpdateWrapper<HydomcAssetspec>();
 
+		public BuilderUpdateWrapper assetspecidEq(String assetspecid) {
+			if (StringUtil.isNotBlank(assetspecid)) {
+				updateWrapper.eq(HydomcAssetspec::getAssetspecid, assetspecid);
+			}
+			return this;
+		}
+		
 		public BuilderUpdateWrapper assetattridEq(String assetattrid) {
 			if (StringUtil.isNotBlank(assetattrid)) {
 				updateWrapper.eq(HydomcAssetspec::getAssetattrid, assetattrid);
@@ -280,6 +297,11 @@ public class HydomcAssetspec extends Model<HydomcAssetspec> {
 
 		private HydomcAssetspec hydomcAssetspec = new HydomcAssetspec();
 
+		public Builder assetspecid(String assetspecid) {
+			hydomcAssetspec.setAssetspecid(assetspecid);
+			return this;
+		}
+		
 		public Builder assetattrid(String assetattrid) {
 			hydomcAssetspec.setAssetattrid(assetattrid);
 			return this;

+ 2 - 1
src/main/resources/mapper/HydomcAssetspecMapper.xml

@@ -4,10 +4,11 @@
 <mapper namespace="com.persagy.transfer.mapper.HydomcAssetspecMapper">
     
 	<resultMap id="BaseResultMap" type="com.persagy.transfer.pojo.dto.HydomcAssetspec">
-		<result column="ASSETATTRID" property="assetattrid" jdbcType="VARCHAR" />
+		<result column="ASSETSPECID" property="assetspecid" jdbcType="VARCHAR" />
 		<result column="SITEID" property="siteid" jdbcType="VARCHAR" />
 		<result column="SBYBM" property="sbybm" jdbcType="VARCHAR" />
 		<result column="CLASSSTRUCTUREID" property="classstructureid" jdbcType="VARCHAR" />
+		<result column="ASSETATTRID" property="assetattrid" jdbcType="VARCHAR" />
 		<result column="CLASSQC" property="classqc" jdbcType="VARCHAR" />
 		<result column="CSDESC" property="csdesc" jdbcType="VARCHAR" />
 		<result column="DATATYPE" property="datatype" jdbcType="VARCHAR" />