| | |
| | | business_opportunity bo |
| | | <where> |
| | | <if test="businessOpportunityDto.customerName != null"> |
| | | and bo.customer_name = #{businessOpportunityDto.customerName} |
| | | and bo.customer_name like concat('%',#{businessOpportunityDto.customerName},'%') |
| | | </if> |
| | | <if test="businessOpportunityDto.city != null"> |
| | | and bo.city = #{businessOpportunityDto.city} |
| | | and bo.city like concat('%',#{businessOpportunityDto.city},'%') |
| | | </if> |
| | | <if test="businessOpportunityDto.entryPerson != null"> |
| | | and bo.entry_person = #{businessOpportunityDto.entryPerson} |
| | | and bo.entry_person like concat('%', #{businessOpportunityDto.entryPerson},'%') |
| | | </if> |
| | | <if test="businessOpportunityDto.status != null"> |
| | | and bo.status = #{businessOpportunityDto.status} |
| | | </if> |
| | | <if test="businessOpportunityDto.customerName != null"> |
| | | and bo.customer_name = #{businessOpportunityDto.customerName} |
| | | and bo.customer_name like concat('%',#{businessOpportunityDto.customerName},'%') |
| | | </if> |
| | | <if test="businessOpportunityDto.entryDateStart != null"> |
| | | and bo.entry_date >= STR_TO_DATE(#{businessOpportunityDto.entryDateStart}, '%Y-%m-%d') |