| | |
| | | and vce.condition=#{condition} |
| | | </if> |
| | | <if test="userName!=null"> |
| | | and ((select su.name from sys_user as su where su.user_id=vce.user_id) like concat('%',#{userName},'%') |
| | | and ((select su.name from sys_user as su where su.user_id=vce.user_id) like concat('%',#{userName},'%') or |
| | | ((select su.phone from sys_user as su where su.user_id=vce.user_id) like concat('%',#{userName},'%') |
| | | </if> |
| | | <if test="communityId!=null"> |
| | | and vce.community_id=#{communityId} |
| | |
| | | <if test="userId!=null"> |
| | | and vce.user_id=#{userId} |
| | | </if> |
| | | <if test="merchantId!=null"> |
| | | and vce.merchant_id=#{merchantId} |
| | | </if> |
| | | <if test="orderType!=null"> |
| | | and vce.order_type=#{orderType} |
| | | </if> |
| | | <if test="merchantId!=null"> |
| | | and vce.merchant_id=#{merchantId} |
| | | </if> |
| | | </where> |
| | | order by vce.creation_time desc |
| | | </select> |