1.图像列表查询增加部件id字段

This commit is contained in:
cuizhibin 2025-07-04 10:12:11 +08:00
parent 09064b201d
commit caf716c126
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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>