Преглед изворни кода

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

tags/v1.0.0^2
wanjing пре 1 година
родитељ
комит
9503472109
2 измењених фајлова са 18 додато и 10 уклоњено
  1. +2
    -2
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/workorder/QueryWorkOrderPageListRequest.java
  2. +16
    -8
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/WorkOrderMapper.xml

+ 2
- 2
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/workorder/QueryWorkOrderPageListRequest.java Прегледај датотеку

/** /**
* 工单生成开始时间 * 工单生成开始时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date beginTime; private Date beginTime;


/** /**
* 工单生成结束时间 * 工单生成结束时间
*/ */
@JsonFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date endTime; private Date endTime;



+ 16
- 8
tuoheng-service/tuoheng-admin/src/main/resources/mapper/WorkOrderMapper.xml Прегледај датотеку

<if test="1 == 1"> and mark = 1 </if> <if test="1 == 1"> and mark = 1 </if>
<if test="request.code != null and request.code != 0"> and code = #{request.code} </if> <if test="request.code != null and request.code != 0"> and code = #{request.code} </if>
<if test="request.status != null and request.status != ''"> and status = #{request.status} </if> <if test="request.status != null and request.status != ''"> and status = #{request.status} </if>
<if test="request.userDeptId != null and request.userDeptId != ''"> and assign_dept_id = #{request.userDeptId} </if>
<if test="request.deptIdList != null and request.deptIdList.size() > 0">
or dept_id in
<foreach item="deptId" collection="request.deptIdList" open="(" separator="," close=")">
#{deptId}
</foreach>
<if test="(request.userDeptId != null and request.userDeptId != '') or (request.deptIdList != null and request.deptIdList.size() > 0)">
and (
<trim prefixOverrides="or">
<if test="(request.userDeptId != null and request.userDeptId != '')">
or assign_dept_id = #{request.userDeptId}
</if>
<if test="request.deptIdList != null and request.deptIdList.size() > 0">
or dept_id in
<foreach item="deptId" collection="request.deptIdList" open="(" separator="," close=")">
#{deptId}
</foreach>
</if>
</trim>
)
</if> </if>
<if test="request.beginTime != null"> <if test="request.beginTime != null">
and check_time &gt;= #{request.beginTime}
and create_time &gt;= #{request.beginTime}
</if> </if>
<if test="request.endTime != null"> <if test="request.endTime != null">
and check_time &lt;= #{request.endTime}
and create_time &lt;= #{request.endTime}
</if> </if>
</where> </where>
order by create_time desc order by create_time desc

Loading…
Откажи
Сачувај