添加插叙条件

This commit is contained in:
huangzj
2023-04-17 10:12:42 +08:00
parent 2be275027e
commit 5c90d14d74
2 changed files with 7 additions and 0 deletions

View File

@@ -25,6 +25,10 @@ public class CsDevModelQueryListParm {
*/ */
@ApiModelProperty(value = "装置型号") @ApiModelProperty(value = "装置型号")
private String devType; private String devType;
@ApiModelProperty(value = "装置型号名称")
private String devName;
@ApiModelProperty(value = "版本号") @ApiModelProperty(value = "版本号")
private String versionNo; private String versionNo;
/** /**

View File

@@ -62,6 +62,9 @@
</if> </if>
<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 test="csDevModelQueryListParm.devName != null and csDevModelQueryListParm.devName != ''">
AND b.code = #{csDevModelQueryListParm.devName}
</if> </if>
</select> </select>
</mapper> </mapper>