| | |
| | | <if test="(record.endTime!=null )"> |
| | | and a.datatime <![CDATA[ < ]]> #{record.endTime} |
| | | </if> |
| | | <if test="record.beaultId != null and record.beaultId !='' "> |
| | | and a.beault_id = #{record.beaultId} |
| | | </if> |
| | | <if test="record.companyId != null and record.companyId !='' "> |
| | | and a.company_id = #{record.companyId} |
| | | </if> |
| | | <if test="record.beaultId != null and record.beaultId !='' "> |
| | | and a.beault_id = #{record.beaultId} |
| | | </if> |
| | | <if test="record.vipQueryKey != null and record.vipQueryKey != '' "> |
| | | and c.VIP_NAME like concat('%',#{record.vipQueryKey},'%') |
| | | or (c.VIP_NO like concat('%',#{record.vipQueryKey},'%') |
| | | or c.PHONE like concat('%',#{record.vipQueryKey},'%') |
| | | ) |
| | | </if> |
| | | </if> |
| | | </where> |
| | |
| | | <if test="record.companyId != null and record.companyId !='' "> |
| | | and a.company_id = #{record.companyId} |
| | | </if> |
| | | <if test="record.beaultId != null and record.beaultId !='' "> |
| | | and a.beault_id = #{record.beaultId} |
| | | </if> |
| | | <if test="record.vipQueryKey != null and record.vipQueryKey != '' "> |
| | | and c.VIP_NAME like concat('%',#{record.vipQueryKey},'%') |
| | | or (c.VIP_NO like concat('%',#{record.vipQueryKey},'%') |
| | | or c.PHONE like concat('%',#{record.vipQueryKey},'%') |
| | | ) |
| | | </if> |
| | | </if> |
| | | </where> |
| | | </select> |