1.图像列表查询增加部件id字段
This commit is contained in:
parent
09064b201d
commit
caf716c126
|
@ -24,6 +24,9 @@ public class ImageListReq implements Serializable {
|
||||||
@ApiModelProperty("机组id")
|
@ApiModelProperty("机组id")
|
||||||
private String turbineId;
|
private String turbineId;
|
||||||
|
|
||||||
|
@ApiModelProperty("部件id")
|
||||||
|
private String partId;
|
||||||
|
|
||||||
@ApiModelProperty("图像类型")
|
@ApiModelProperty("图像类型")
|
||||||
private String[] imageTypes;
|
private String[] imageTypes;
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
<if test="turbineId != null and turbineId != ''">
|
<if test="turbineId != null and turbineId != ''">
|
||||||
AND p.turbine_id = #{turbineId}
|
AND p.turbine_id = #{turbineId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="partId != null and partId != ''">
|
||||||
|
AND p.part_id = #{partId}
|
||||||
|
</if>
|
||||||
<if test="imageTypes != null and imageTypes.length > 0">
|
<if test="imageTypes != null and imageTypes.length > 0">
|
||||||
AND i.image_type in <foreach collection="imageTypes" item="imageType" open="(" close=")" separator=",">#{imageType}</foreach>
|
AND i.image_type in <foreach collection="imageTypes" item="imageType" open="(" close=")" separator=",">#{imageType}</foreach>
|
||||||
</if>
|
</if>
|
||||||
|
|
Loading…
Reference in New Issue