新增是否合作单位字段

This commit is contained in:
2024-10-27 15:17:31 +08:00
parent 8b55c2d2c3
commit 04f3995205
2 changed files with 18 additions and 11 deletions

View File

@@ -45,30 +45,33 @@
AND a.organization_type = #{param.organizationType}
</if>
<if test="param.province != null">
AND a.province = #{param.province}
AND a.province = #{param.province}
</if>
<if test="param.city != null">
AND a.city = #{param.city}
AND a.city = #{param.city}
</if>
<if test="param.province != null">
AND a.region = #{param.province}
AND a.region = #{param.province}
</if>
<if test="param.zipCode != null">
AND a.zip_code = #{param.zipCode}
AND a.zip_code = #{param.zipCode}
</if>
<if test="param.park != null">
AND a.park LIKE CONCAT('%', #{param.park}, '%')
AND a.park LIKE CONCAT('%', #{param.park}, '%')
</if>
<if test="param.image != null">
AND a.image LIKE CONCAT('%', #{param.image}, '%')
AND a.image LIKE CONCAT('%', #{param.image}, '%')
</if>
<if test="param.about != null">
AND a.about LIKE CONCAT('%', #{param.about}, '%')
AND a.about LIKE CONCAT('%', #{param.about}, '%')
</if>
<if test="param.leaderId != null">
AND a.leader_id = #{param.leaderId}
</if>
<if test="param.estateOnly != null">
<if test="param.isCoop != null">
AND a.is_coop = #{param.isCoop}
</if>
<if test="param.estateOnly != null">
AND a.estate IS NOT null
</if>
<if test="param.comments != null">
@@ -90,9 +93,9 @@
AND c.username LIKE CONCAT('%', #{param.leaderUsername}, '%')
</if>
<if test="param.keywords != null">
AND (
a.organization_name LIKE CONCAT('%', #{param.keywords}, '%')
)
AND (
a.organization_name LIKE CONCAT('%', #{param.keywords}, '%')
)
</if>
</where>
</sql>

View File

@@ -114,6 +114,10 @@ public class OrganizationParam extends BaseParam {
@QueryField(type = QueryType.EQ)
private Integer leaderId;
@ApiModelProperty(value = "是否合作单位")
@QueryField(type = QueryType.EQ)
private Integer isCoop;
@ApiModelProperty(value = "备注")
private String comments;