|
@@ -3,7 +3,7 @@
|
|
|
<mapper namespace="org.jeecg.modules.system.app.mapper.AppContractSignMapper">
|
|
|
|
|
|
<select id="queryUserSignContractList" resultType="org.jeecg.modules.system.app.vo.ContractSignVO">
|
|
|
- SELECT
|
|
|
+ SELECT DISTINCT
|
|
|
a.id,
|
|
|
o.product_name,
|
|
|
c.full_name,
|
|
@@ -21,11 +21,14 @@
|
|
|
GROUP BY order_id
|
|
|
) o ON a.order_id = o.order_id
|
|
|
<where>
|
|
|
- 1=1 AND a.sign_flow_id IS NOT NULL
|
|
|
+ 1=1
|
|
|
<!-- 家庭成员姓名模糊查询 -->
|
|
|
<if test="contractSignDTO.fullName != null and contractSignDTO.fullName != ''">
|
|
|
AND c.full_name LIKE CONCAT('%', #{contractSignDTO.fullName}, '%')
|
|
|
</if>
|
|
|
+ <if test="contractSignDTO.productName != null and contractSignDTO.productName != ''">
|
|
|
+ AND o.product_name LIKE CONCAT('%', #{contractSignDTO.productName}, '%')
|
|
|
+ </if>
|
|
|
|
|
|
<!-- 联系电话模糊查询 -->
|
|
|
<if test="contractSignDTO.phone != null and contractSignDTO.phone != ''">
|
|
@@ -38,11 +41,11 @@
|
|
|
</if>
|
|
|
|
|
|
<!-- 签约完成时间范围查询 -->
|
|
|
- <if test="contractSignDTO.signTimeStart != null">
|
|
|
- AND a.sign_time >= #{contractSignDTO.signTimeStart}
|
|
|
+ <if test="contractSignDTO.startTime != null">
|
|
|
+ AND a.sign_time >= #{contractSignDTO.startTime}
|
|
|
</if>
|
|
|
- <if test="contractSignDTO.signTimeEnd != null">
|
|
|
- AND a.sign_time <= #{contractSignDTO.signTimeEnd}
|
|
|
+ <if test="contractSignDTO.endTime != null">
|
|
|
+ AND a.sign_time <= #{contractSignDTO.endTime}
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|