|
|
@@ -21,8 +21,11 @@
|
|
|
createUserId,t.create_user_name,t.create_user_name createUserName,t.status_cd,t.status_cd
|
|
|
statusCd,t.store_id,t.store_id storeId,t.work_name,t.work_name workName,t.work_id,t.work_id
|
|
|
workId,t.wt_id,t.wt_id wtId,t.create_user_tel,t.create_user_tel createUserTel,t.start_time,t.start_time
|
|
|
- startTime,t.end_time,t.end_time endTime,t.state,t.community_id,t.community_id communityId
|
|
|
+ startTime,t.end_time,t.end_time endTime,t.state,t.community_id,t.community_id communityId,t.create_time createTime,
|
|
|
+ td.`name` stateName,wt.type_name typeName
|
|
|
from work_pool t
|
|
|
+ left join work_type wt on t.wt_id = wt.wt_id
|
|
|
+ left join t_dict td on t.state = td.status_cd and td.table_name = 'work_pool' and td.table_columns = 'state'
|
|
|
where 1 =1
|
|
|
<if test="workCycle !=null and workCycle != ''">
|
|
|
and t.work_cycle= #{workCycle}
|
|
|
@@ -57,6 +60,12 @@
|
|
|
<if test="endTime !=null and endTime != ''">
|
|
|
and t.end_time= #{endTime}
|
|
|
</if>
|
|
|
+ <if test="queryStartTime !=null">
|
|
|
+ and t.create_time >= #{queryStartTime}
|
|
|
+ </if>
|
|
|
+ <if test="queryEndTime !=null">
|
|
|
+ and t.create_time <= #{queryEndTime}
|
|
|
+ </if>
|
|
|
<if test="state !=null and state != ''">
|
|
|
and t.state= #{state}
|
|
|
</if>
|
|
|
@@ -155,6 +164,13 @@
|
|
|
<if test="endTime !=null and endTime != ''">
|
|
|
and t.end_time= #{endTime}
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="queryStartTime !=null">
|
|
|
+ and t.create_time >= #{queryStartTime}
|
|
|
+ </if>
|
|
|
+ <if test="queryEndTime !=null">
|
|
|
+ and t.create_time <= #{queryEndTime}
|
|
|
+ </if>
|
|
|
<if test="state !=null and state != ''">
|
|
|
and t.state= #{state}
|
|
|
</if>
|