1.图片列表查询增加项目id参数
This commit is contained in:
parent
14b0b60562
commit
ea1e7576da
|
@ -27,6 +27,9 @@ public class ImageListReq implements Serializable {
|
|||
@ApiModelProperty("部件id")
|
||||
private String partId;
|
||||
|
||||
@ApiModelProperty("项目id")
|
||||
private String projectId;
|
||||
|
||||
@ApiModelProperty("图像类型")
|
||||
private String[] imageTypes;
|
||||
|
||||
|
|
|
@ -20,6 +20,9 @@
|
|||
<if test="partId != null and partId != ''">
|
||||
AND p.part_id = #{partId}
|
||||
</if>
|
||||
<if test="projectId != null and projectId != ''">
|
||||
AND i.project_id = #{projectId}
|
||||
</if>
|
||||
<if test="imageTypes != null and imageTypes.length > 0">
|
||||
AND i.image_type in <foreach collection="imageTypes" item="imageType" open="(" close=")" separator=",">#{imageType}</foreach>
|
||||
</if>
|
||||
|
|
Loading…
Reference in New Issue