| | |
| | | </if> |
| | | order by t1.create_time desc |
| | | </select> |
| | | <select id="profitPageList" resultType="com.ruoyi.system.vo.ProfitPageListVo"> |
| | | select t1.id,t1.code,t1.create_time,t2.name userName,t2.phone,t1.order_price |
| | | from t_big_gift_package_order t1 left join t_app_user t2 on t1.app_user_id = t2.id |
| | | where t1.del_flag = 0 and t1.company_id = #{query.companyId} |
| | | <if test="query.phone != null and query.phone != ''"> |
| | | AND t2.phone = #{query.phone} |
| | | </if> |
| | | <if test="query.code != null and query.code != ''"> |
| | | AND t1.code = #{query.code} |
| | | </if> |
| | | <if test="query.userName != null and query.userName != ''"> |
| | | AND t2.name like concat('%',#{query.userName},'%') |
| | | </if> |
| | | <if test="sTime !=null "> |
| | | AND t1.create_time BETWEEN #{sTime} AND #{eTime} |
| | | </if> |
| | | order by t1.create_time desc |
| | | </select> |
| | | <select id="profitPageListExport" resultType="com.ruoyi.system.vo.ProfitPageListVo"> |
| | | select t1.id,t1.code,t1.create_time,t2.name userName,t2.phone,t1.order_price |
| | | from t_big_gift_package_order t1 left join t_app_user t2 on t1.app_user_id = t2.id |
| | | where t1.del_flag = 0 and t1.company_id = #{query.companyId} |
| | | <if test="query.phone != null and query.phone != ''"> |
| | | AND t2.phone = #{query.phone} |
| | | </if> |
| | | <if test="query.code != null and query.code != ''"> |
| | | AND t1.code = #{query.code} |
| | | </if> |
| | | <if test="query.userName != null and query.userName != ''"> |
| | | AND t2.name like concat('%',#{query.userName},'%') |
| | | </if> |
| | | <if test="sTime !=null "> |
| | | AND t1.create_time BETWEEN #{sTime} AND #{eTime} |
| | | </if> |
| | | order by t1.create_time desc |
| | | </select> |
| | | |
| | | </mapper> |