增加查询条件

main
zhaokai 2026-01-14 09:14:13 +08:00
parent 6f75fc0cf0
commit 910b90056d
2 changed files with 8 additions and 2 deletions

View File

@ -32,8 +32,8 @@ public class CorpDepartmentQry extends PageQuery {
@ApiModelProperty(value = "分公司名称", name = "likeCorpName")
private String likeCorpName;
@ApiModelProperty(value = "分公司状态编码", name = "eqCorpStateCode")
private String eqCorpStateCode;
@ApiModelProperty(value = "分公司状态编码", name = "eqCorpState")
private String eqCorpState;
@ApiModelProperty(value = "是否启用1:启用,0:关闭", name = "eqUseFlag")
private String eqUseFlag;

View File

@ -37,6 +37,12 @@
<if test="params.eqVillage != null and params.eqVillage.trim() != ''">
AND c.village = #{params.eqVillage}
</if>
<if test="params.eqUseFlag != null and params.eqUseFlag.trim() != ''">
AND c.use_flag = #{params.eqUseFlag}
</if>
<if test="params.eqCorpState != null and params.eqCorpState.trim() != ''">
AND c.corp_state = #{params.eqCorpState}
</if>
group by c.id
ORDER BY
c.corp_order ASC,