|
@@ -6,6 +6,8 @@ import java.util.Map;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fs.api.param.OrderListParam;
|
|
import com.fs.api.param.OrderListParam;
|
|
|
import com.fs.api.vo.OrderListVO;
|
|
import com.fs.api.vo.OrderListVO;
|
|
|
|
|
+import com.fs.common.annotation.DataSource;
|
|
|
|
|
+import com.fs.common.enums.DataSourceType;
|
|
|
import com.fs.company.param.CompanyStatisticsParam;
|
|
import com.fs.company.param.CompanyStatisticsParam;
|
|
|
import com.fs.company.vo.CompanySmsLogsStatisticsVO;
|
|
import com.fs.company.vo.CompanySmsLogsStatisticsVO;
|
|
|
import com.fs.company.vo.CompanyTuiMoneyStatisticsVO;
|
|
import com.fs.company.vo.CompanyTuiMoneyStatisticsVO;
|
|
@@ -120,10 +122,16 @@ public interface FsStoreOrderMapper
|
|
|
"and o.real_name like CONCAT('%',#{maps.realName},'%') " +
|
|
"and o.real_name like CONCAT('%',#{maps.realName},'%') " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.phone != null and maps.phone !=\"\" '> " +
|
|
"<if test = 'maps.phone != null and maps.phone !=\"\" '> " +
|
|
|
- "and u.phone like CONCAT('%',#{maps.phone},'%') " +
|
|
|
|
|
|
|
+ "and (u.phone like CONCAT('%',#{maps.phone},'%') " +
|
|
|
|
|
+ "<if test = 'maps.phoneEncrypted != null and maps.phoneEncrypted !=\"\"'> " +
|
|
|
|
|
+ "or u.phone like CONCAT('%',#{maps.phoneEncrypted},'%') " +
|
|
|
|
|
+ "</if>) " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.userPhone != null and maps.userPhone !=\"\" '> " +
|
|
"<if test = 'maps.userPhone != null and maps.userPhone !=\"\" '> " +
|
|
|
- "and o.user_phone like CONCAT('%',#{maps.userPhone},'%') " +
|
|
|
|
|
|
|
+ "and (o.user_phone like CONCAT('%',#{maps.userPhone},'%') " +
|
|
|
|
|
+ "<if test = 'maps.userPhoneEncrypted != null and maps.userPhoneEncrypted !=\"\"'> " +
|
|
|
|
|
+ "or o.user_phone like CONCAT('%',#{maps.userPhoneEncrypted},'%') " +
|
|
|
|
|
+ "</if>) " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.status != null '> " +
|
|
"<if test = 'maps.status != null '> " +
|
|
|
"and o.status =#{maps.status} " +
|
|
"and o.status =#{maps.status} " +
|
|
@@ -232,10 +240,16 @@ public interface FsStoreOrderMapper
|
|
|
"and o.real_name like CONCAT('%',#{maps.realName},'%') " +
|
|
"and o.real_name like CONCAT('%',#{maps.realName},'%') " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.phone != null and maps.phone !=\"\" '> " +
|
|
"<if test = 'maps.phone != null and maps.phone !=\"\" '> " +
|
|
|
- "and u.phone like CONCAT('%',#{maps.phone},'%') " +
|
|
|
|
|
|
|
+ "and (u.phone like CONCAT('%',#{maps.phone},'%') " +
|
|
|
|
|
+ "<if test = 'maps.phoneEncrypted != null and maps.phoneEncrypted !=\"\"'> " +
|
|
|
|
|
+ "or u.phone like CONCAT('%',#{maps.phoneEncrypted},'%') " +
|
|
|
|
|
+ "</if>) " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.userPhone != null and maps.userPhone !=\"\" '> " +
|
|
"<if test = 'maps.userPhone != null and maps.userPhone !=\"\" '> " +
|
|
|
- "and o.user_phone like CONCAT('%',#{maps.userPhone},'%') " +
|
|
|
|
|
|
|
+ "and (o.user_phone like CONCAT('%',#{maps.userPhone},'%') " +
|
|
|
|
|
+ "<if test = 'maps.userPhoneEncrypted != null and maps.userPhoneEncrypted !=\"\"'> " +
|
|
|
|
|
+ "or o.user_phone like CONCAT('%',#{maps.userPhoneEncrypted},'%') " +
|
|
|
|
|
+ "</if>) " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.status != null '> " +
|
|
"<if test = 'maps.status != null '> " +
|
|
|
"and o.status =#{maps.status} " +
|
|
"and o.status =#{maps.status} " +
|
|
@@ -342,10 +356,16 @@ public interface FsStoreOrderMapper
|
|
|
"and o.real_name like CONCAT('%',#{maps.realName},'%') " +
|
|
"and o.real_name like CONCAT('%',#{maps.realName},'%') " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.phone != null and maps.phone !=\"\" '> " +
|
|
"<if test = 'maps.phone != null and maps.phone !=\"\" '> " +
|
|
|
- "and u.phone like CONCAT('%',#{maps.phone},'%') " +
|
|
|
|
|
|
|
+ "and (u.phone like CONCAT('%',#{maps.phone},'%') " +
|
|
|
|
|
+ "<if test = 'maps.phoneEncrypted != null and maps.phoneEncrypted !=\"\"'> " +
|
|
|
|
|
+ "or u.phone like CONCAT('%',#{maps.phoneEncrypted},'%') " +
|
|
|
|
|
+ "</if>) " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.userPhone != null and maps.userPhone !=\"\" '> " +
|
|
"<if test = 'maps.userPhone != null and maps.userPhone !=\"\" '> " +
|
|
|
- "and o.user_phone like CONCAT('%',#{maps.userPhone},'%') " +
|
|
|
|
|
|
|
+ "and (o.user_phone like CONCAT('%',#{maps.userPhone},'%') " +
|
|
|
|
|
+ "<if test = 'maps.userPhoneEncrypted != null and maps.userPhoneEncrypted !=\"\"'> " +
|
|
|
|
|
+ "or o.user_phone like CONCAT('%',#{maps.userPhoneEncrypted},'%') " +
|
|
|
|
|
+ "</if>) " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.status != null '> " +
|
|
"<if test = 'maps.status != null '> " +
|
|
|
"and o.status =#{maps.status} " +
|
|
"and o.status =#{maps.status} " +
|
|
@@ -622,10 +642,16 @@ public interface FsStoreOrderMapper
|
|
|
"and o.real_name like CONCAT('%',#{maps.realName},'%') " +
|
|
"and o.real_name like CONCAT('%',#{maps.realName},'%') " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.phone != null and maps.phone !=\"\" '> " +
|
|
"<if test = 'maps.phone != null and maps.phone !=\"\" '> " +
|
|
|
- "and u.phone like CONCAT('%',#{maps.phone},'%') " +
|
|
|
|
|
|
|
+ "and (u.phone like CONCAT('%',#{maps.phone},'%') " +
|
|
|
|
|
+ "<if test = 'maps.phoneEncrypted != null and maps.phoneEncrypted !=\"\"'> " +
|
|
|
|
|
+ "or u.phone like CONCAT('%',#{maps.phoneEncrypted},'%') " +
|
|
|
|
|
+ "</if>) " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.userPhone != null and maps.userPhone !=\"\" '> " +
|
|
"<if test = 'maps.userPhone != null and maps.userPhone !=\"\" '> " +
|
|
|
- "and o.user_phone like CONCAT('%',#{maps.userPhone},'%') " +
|
|
|
|
|
|
|
+ "and (o.user_phone like CONCAT('%',#{maps.userPhone},'%') " +
|
|
|
|
|
+ "<if test = 'maps.userPhoneEncrypted != null and maps.userPhoneEncrypted !=\"\"'> " +
|
|
|
|
|
+ "or o.user_phone like CONCAT('%',#{maps.userPhoneEncrypted},'%') " +
|
|
|
|
|
+ "</if>) " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.status != null '> " +
|
|
"<if test = 'maps.status != null '> " +
|
|
|
"and o.status =#{maps.status} " +
|
|
"and o.status =#{maps.status} " +
|
|
@@ -727,10 +753,16 @@ public interface FsStoreOrderMapper
|
|
|
"and u.nickname like CONCAT('%',#{maps.nickname},'%') " +
|
|
"and u.nickname like CONCAT('%',#{maps.nickname},'%') " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.phone != null and maps.phone !=\"\" '> " +
|
|
"<if test = 'maps.phone != null and maps.phone !=\"\" '> " +
|
|
|
- "and u.phone like CONCAT('%',#{maps.phone},'%') " +
|
|
|
|
|
|
|
+ "and (u.phone like CONCAT('%',#{maps.phone},'%') " +
|
|
|
|
|
+ "<if test = 'maps.phoneEncrypted != null and maps.phoneEncrypted !=\"\"'> " +
|
|
|
|
|
+ "or u.phone like CONCAT('%',#{maps.phoneEncrypted},'%') " +
|
|
|
|
|
+ "</if>) " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.userPhone != null and maps.userPhone !=\"\" '> " +
|
|
"<if test = 'maps.userPhone != null and maps.userPhone !=\"\" '> " +
|
|
|
- "and o.user_phone like CONCAT('%',#{maps.userPhone},'%') " +
|
|
|
|
|
|
|
+ "and (o.user_phone like CONCAT('%',#{maps.userPhone},'%') " +
|
|
|
|
|
+ "<if test = 'maps.userPhoneEncrypted != null and maps.userPhoneEncrypted !=\"\"'> " +
|
|
|
|
|
+ "or o.user_phone like CONCAT('%',#{maps.userPhoneEncrypted},'%') " +
|
|
|
|
|
+ "</if>) " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.status != null '> " +
|
|
"<if test = 'maps.status != null '> " +
|
|
|
"and o.status =#{maps.status} " +
|
|
"and o.status =#{maps.status} " +
|
|
@@ -820,10 +852,16 @@ public interface FsStoreOrderMapper
|
|
|
"and u.nickname like CONCAT('%',#{maps.nickname},'%') " +
|
|
"and u.nickname like CONCAT('%',#{maps.nickname},'%') " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.phone != null and maps.phone !=\"\" '> " +
|
|
"<if test = 'maps.phone != null and maps.phone !=\"\" '> " +
|
|
|
- "and u.phone like CONCAT('%',#{maps.phone},'%') " +
|
|
|
|
|
|
|
+ "and (u.phone like CONCAT('%',#{maps.phone},'%') " +
|
|
|
|
|
+ "<if test = 'maps.phoneEncrypted != null and maps.phoneEncrypted !=\"\"'> " +
|
|
|
|
|
+ "or u.phone like CONCAT('%',#{maps.phoneEncrypted},'%') " +
|
|
|
|
|
+ "</if>) " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.userPhone != null and maps.userPhone !=\"\" '> " +
|
|
"<if test = 'maps.userPhone != null and maps.userPhone !=\"\" '> " +
|
|
|
- "and o.user_phone like CONCAT('%',#{maps.userPhone},'%') " +
|
|
|
|
|
|
|
+ "and (o.user_phone like CONCAT('%',#{maps.userPhone},'%') " +
|
|
|
|
|
+ "<if test = 'maps.userPhoneEncrypted != null and maps.userPhoneEncrypted !=\"\"'> " +
|
|
|
|
|
+ "or o.user_phone like CONCAT('%',#{maps.userPhoneEncrypted},'%') " +
|
|
|
|
|
+ "</if>) " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.status != null '> " +
|
|
"<if test = 'maps.status != null '> " +
|
|
|
"and o.status =#{maps.status} " +
|
|
"and o.status =#{maps.status} " +
|
|
@@ -879,10 +917,16 @@ public interface FsStoreOrderMapper
|
|
|
"and u.nickname like CONCAT('%',#{maps.nickname},'%') " +
|
|
"and u.nickname like CONCAT('%',#{maps.nickname},'%') " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.phone != null and maps.phone !=\"\" '> " +
|
|
"<if test = 'maps.phone != null and maps.phone !=\"\" '> " +
|
|
|
- "and u.phone like CONCAT('%',#{maps.phone},'%') " +
|
|
|
|
|
|
|
+ "and (u.phone like CONCAT('%',#{maps.phone},'%') " +
|
|
|
|
|
+ "<if test = 'maps.phoneEncrypted != null and maps.phoneEncrypted !=\"\"'> " +
|
|
|
|
|
+ "or u.phone like CONCAT('%',#{maps.phoneEncrypted},'%') " +
|
|
|
|
|
+ "</if>) " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.userPhone != null and maps.userPhone !=\"\" '> " +
|
|
"<if test = 'maps.userPhone != null and maps.userPhone !=\"\" '> " +
|
|
|
- "and o.user_phone like CONCAT('%',#{maps.userPhone},'%') " +
|
|
|
|
|
|
|
+ "and (o.user_phone like CONCAT('%',#{maps.userPhone},'%') " +
|
|
|
|
|
+ "<if test = 'maps.userPhoneEncrypted != null and maps.userPhoneEncrypted !=\"\"'> " +
|
|
|
|
|
+ "or o.user_phone like CONCAT('%',#{maps.userPhoneEncrypted},'%') " +
|
|
|
|
|
+ "</if>) " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"<if test = 'maps.status != null '> " +
|
|
"<if test = 'maps.status != null '> " +
|
|
|
"and o.status =#{maps.status} " +
|
|
"and o.status =#{maps.status} " +
|
|
@@ -1088,4 +1132,7 @@ public interface FsStoreOrderMapper
|
|
|
List<FsStoreOrder> selectBankOrder();
|
|
List<FsStoreOrder> selectBankOrder();
|
|
|
|
|
|
|
|
void updateUpdateTimeByExtendIds(@Param("batch") List<String> batch);
|
|
void updateUpdateTimeByExtendIds(@Param("batch") List<String> batch);
|
|
|
|
|
+
|
|
|
|
|
+ @DataSource(DataSourceType.HUYI)
|
|
|
|
|
+ String selectUnionIdByHyUserId(Long huYiUserId);
|
|
|
}
|
|
}
|