添加搜索条件型号id

上级 412f9e99
流水线 #7976 已通过 于阶段
in 2 分 14 秒
...@@ -41,6 +41,9 @@ public class LeaseGoodsQO implements Serializable { ...@@ -41,6 +41,9 @@ public class LeaseGoodsQO implements Serializable {
private String districtCode; private String districtCode;
@ApiModelProperty(value = "型号id")
private Integer modelInfoId;
@ApiModelProperty(value = "页码", required = true) @ApiModelProperty(value = "页码", required = true)
@NotNull(message = "页码不能为空", groups = Page.class) @NotNull(message = "页码不能为空", groups = Page.class)
@Min(value = 1, groups = Page.class) @Min(value = 1, groups = Page.class)
......
...@@ -438,6 +438,9 @@ ...@@ -438,6 +438,9 @@
<if test="districtCode != null and districtCode != ''"> <if test="districtCode != null and districtCode != ''">
and district_code = #{districtCode} and district_code = #{districtCode}
</if> </if>
<if test="modeInfoId != null and modeInfoId != ''">
and device_mode_id = #{modeInfoId}
</if>
</where> </where>
</select> </select>
<select id="listLeaseGoodsByApp" resultMap="leaseGoodsMap"> <select id="listLeaseGoodsByApp" resultMap="leaseGoodsMap">
...@@ -484,6 +487,9 @@ ...@@ -484,6 +487,9 @@
<if test="districtCode != null and districtCode != ''"> <if test="districtCode != null and districtCode != ''">
and district_code = #{districtCode} and district_code = #{districtCode}
</if> </if>
<if test="modeInfoId != null and modeInfoId != ''">
and device_mode_id = #{modeInfoId}
</if>
</where> </where>
order by lg.shelf_status DESC, lg.sort DESC order by lg.shelf_status DESC, lg.sort DESC
</select> </select>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论