协议接口优化

This commit is contained in:
sxu 2024-11-11 15:54:57 +08:00
parent da248081bc
commit a1556100d2
2 changed files with 2 additions and 8 deletions

View File

@ -106,5 +106,6 @@ public class BmAgreementInfo extends BaseEntity
@Excel(name = "是否结算", readConverterExp = "0=,结=算中,1=已结算") @Excel(name = "是否结算", readConverterExp = "0=,结=算中,1=已结算")
private Long isSlt; private Long isSlt;
@ApiModelProperty(value = "关键词")
private String keyWord;
} }

View File

@ -41,7 +41,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
auth_person like concat('%', #{keyWord}, '%') or auth_person like concat('%', #{keyWord}, '%') or
phone like concat('%', #{keyWord}, '%')) phone like concat('%', #{keyWord}, '%'))
</if> </if>
<if test="agreementCode != null and agreementCode != ''"> <if test="agreementCode != null and agreementCode != ''">
and bai.agreement_code like concat('%', #{agreementCode}, '%') and bai.agreement_code like concat('%', #{agreementCode}, '%')
</if> </if>
@ -51,12 +50,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="projectId != null and projectId != ''"> <if test="projectId != null and projectId != ''">
and bp.pro_id = #{projectId} and bp.pro_id = #{projectId}
</if> </if>
<if test="dataCondition != null and dataCondition.size()>0">
AND bai.agreement_id in
<foreach collection="dataCondition" item="agreementId" index="index" open="(" separator="," close=")">
#{agreementId}
</foreach>
</if>
ORDER BY bai.agreement_id DESC ORDER BY bai.agreement_id DESC
</select> </select>