|
@@ -331,6 +331,7 @@
|
|
|
cto.tenant_id_ as tenantId,
|
|
|
u.username_ as name,
|
|
|
u.phone_ as phone
|
|
|
+ ,cto.status_ as status
|
|
|
,cto.operator_ as operator
|
|
|
,cto.operate_time_ as operateTime
|
|
|
,cto.cancel_reason_ as cancelReason
|
|
@@ -355,6 +356,18 @@
|
|
|
<if test="subjectId">
|
|
|
AND (s.subject_id_list_ = #{subjectId})
|
|
|
</if>
|
|
|
+ <if test="operatorName != null and operatorName.trim() != ''">
|
|
|
+ AND cto.operator_ in (
|
|
|
+ select id_ from sys_user where real_name_ like concat('%',#{operatorName},'%')
|
|
|
+ union select -1 from sys_user
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ <if test="operateStartTime != null">
|
|
|
+ AND cto.operate_time_ >= #{operateStartTime}
|
|
|
+ </if>
|
|
|
+ <if test="operateEndTime != null">
|
|
|
+ AND #{operateEndTime} >= cto.operate_time_
|
|
|
+ </if>
|
|
|
</where>
|
|
|
ORDER BY cto.id_ DESC
|
|
|
<include refid="global.limit"/>
|
|
@@ -382,6 +395,18 @@
|
|
|
<if test="subjectId">
|
|
|
AND (s.subject_id_list_ = #{subjectId})
|
|
|
</if>
|
|
|
+ <if test="operatorName != null and operatorName.trim() != ''">
|
|
|
+ AND cto.operator_ in (
|
|
|
+ select id_ from sys_user where real_name_ like concat('%',#{operatorName},'%')
|
|
|
+ union select -1 from sys_user
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ <if test="operateStartTime != null">
|
|
|
+ AND cto.operate_time_ >= #{operateStartTime}
|
|
|
+ </if>
|
|
|
+ <if test="operateEndTime != null">
|
|
|
+ AND #{operateEndTime} >= cto.operate_time_
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|