添加字段
This commit is contained in:
@@ -27,6 +27,10 @@ public class CsDevModelAddParm {
|
|||||||
@ApiModelProperty(value = "装置型号")
|
@ApiModelProperty(value = "装置型号")
|
||||||
private String devType;
|
private String devType;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "模板名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 版本号
|
* 版本号
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ public class CsDevModelAuditParm {
|
|||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "装置型号")
|
@ApiModelProperty(value = "装置型号")
|
||||||
private String devType;
|
private String devType;
|
||||||
|
@ApiModelProperty(value = "模板名称")
|
||||||
|
private String name;
|
||||||
/**
|
/**
|
||||||
* 版本号
|
* 版本号
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -23,11 +23,13 @@ public class CsDevModelQueryListParm {
|
|||||||
/**
|
/**
|
||||||
* 装置型号(字典数据)
|
* 装置型号(字典数据)
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "装置型号")
|
@ApiModelProperty(value = "装置模板型号")
|
||||||
private String devType;
|
private String devType;
|
||||||
|
|
||||||
@ApiModelProperty(value = "装置型号名称")
|
@ApiModelProperty(value = "装置模板型号名称")
|
||||||
private String devName;
|
private String devName;
|
||||||
|
@ApiModelProperty(value = "模板名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
@ApiModelProperty(value = "版本号")
|
@ApiModelProperty(value = "版本号")
|
||||||
private String versionNo;
|
private String versionNo;
|
||||||
|
|||||||
@@ -33,11 +33,12 @@ public class CsDevModelQueryParm {
|
|||||||
/**
|
/**
|
||||||
* 装置型号(字典数据)
|
* 装置型号(字典数据)
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "装置型号")
|
@ApiModelProperty(value = "装置模板型号")
|
||||||
private String devType;
|
private String devType;
|
||||||
@ApiModelProperty(value = "装置名称")
|
@ApiModelProperty(value = "装置模板型号名称")
|
||||||
private String devName;
|
private String devName;
|
||||||
|
@ApiModelProperty(value = "模板名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 版本日期
|
* 版本日期
|
||||||
|
|||||||
@@ -36,6 +36,12 @@ public class CsDevModelPO extends BaseEntity {
|
|||||||
@TableField(value = "dev_type")
|
@TableField(value = "dev_type")
|
||||||
private String devType;
|
private String devType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 模板名称
|
||||||
|
*/
|
||||||
|
@TableField(value = "模板名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 版本号
|
* 版本号
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -29,11 +29,12 @@ public class CsDevModelPageVO extends BaseEntity {
|
|||||||
/**
|
/**
|
||||||
* 设备型号(字典数据)
|
* 设备型号(字典数据)
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "设备型号")
|
@ApiModelProperty(value = "设备模板型号id")
|
||||||
private String devType;
|
private String devType;
|
||||||
@ApiModelProperty(value = "设备名称")
|
@ApiModelProperty(value = "设备模板型号id名称")
|
||||||
private String devName;
|
private String devName;
|
||||||
|
@TableField(value = "模板名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 版本号
|
* 版本号
|
||||||
|
|||||||
@@ -39,6 +39,9 @@
|
|||||||
<if test="csDevModelQueryParm.devType != null and csDevModelQueryParm.devType != ''">
|
<if test="csDevModelQueryParm.devType != null and csDevModelQueryParm.devType != ''">
|
||||||
AND a.dev_type = #{csDevModelQueryParm.devType}
|
AND a.dev_type = #{csDevModelQueryParm.devType}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="csDevModelQueryParm.name != null and csDevModelQueryParm.name != ''">
|
||||||
|
AND a.name = #{csDevModelQueryParm.name}
|
||||||
|
</if>
|
||||||
</select><select id="queryList" resultType="com.njcn.algorithm.pojo.vo.CsDevModelPageVO">
|
</select><select id="queryList" resultType="com.njcn.algorithm.pojo.vo.CsDevModelPageVO">
|
||||||
SELECT a.*,
|
SELECT a.*,
|
||||||
b.code as devName
|
b.code as devName
|
||||||
@@ -63,8 +66,12 @@
|
|||||||
<if test="csDevModelQueryListParm.devType != null and csDevModelQueryListParm.devType != ''">
|
<if test="csDevModelQueryListParm.devType != null and csDevModelQueryListParm.devType != ''">
|
||||||
AND a.dev_type = #{csDevModelQueryListParm.devType}
|
AND a.dev_type = #{csDevModelQueryListParm.devType}
|
||||||
</if>
|
</if>
|
||||||
<if test="csDevModelQueryListParm.devName != null and csDevModelQueryListParm.devName != ''">
|
<if test="csDevModelQueryListParm.devName != null and csDevModelQueryListParm.devName != ''">
|
||||||
AND b.code = #{csDevModelQueryListParm.devName}
|
AND b.code = #{csDevModelQueryListParm.devName}
|
||||||
|
</if>
|
||||||
|
<if test="csDevModelQueryListParm.name != null and csDevModelQueryListParm.name != ''">
|
||||||
|
AND a.name = #{csDevModelQueryListParm.name}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user