服务指令预览查询逻辑调整
This commit is contained in:
parent
c728363b34
commit
39202e34ae
|
|
@ -26,7 +26,7 @@ public class EmployeeApi {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("/queryEmpList")
|
@GetMapping("/queryEmpList")
|
||||||
public Result<List<EmployeesInfoEntity>> queryEmpList() {
|
public Result<List<EmployeesInfoEntity>> queryEmpList(EmployeesInfoEntity dto) {
|
||||||
return Result.OK(employeesInfoApi.queryEmpList());
|
return Result.OK(employeesInfoApi.queryEmpList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -398,8 +398,7 @@
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
AND (
|
AND (
|
||||||
(DATE(o.start_time) = DATE(#{dto.queryDate}) AND o.end_time < NOW())
|
(DATE(o.start_time) = DATE(#{dto.queryDate}) AND o.end_time < NOW())
|
||||||
OR
|
|
||||||
(DATE(o.start_time) = DATE(#{dto.queryDate}) AND o.start_time < NOW() AND o.iz_finish = 'Y')
|
|
||||||
)
|
)
|
||||||
]]>
|
]]>
|
||||||
</when>
|
</when>
|
||||||
|
|
@ -418,7 +417,7 @@
|
||||||
<include refid="baseSelect"/>
|
<include refid="baseSelect"/>
|
||||||
|
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
AND (DATE(o.start_time) = DATE(now()) AND o.start_time <= now() AND now() <= o.end_time AND o.iz_finish = 'N')
|
AND (DATE(o.start_time) = DATE(now()) AND o.start_time <= now() AND now() <= o.end_time )
|
||||||
]]>
|
]]>
|
||||||
|
|
||||||
<include refid="commonConditions"/>
|
<include refid="commonConditions"/>
|
||||||
|
|
|
||||||
|
|
@ -326,6 +326,7 @@
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
AND STR_TO_DATE(CONCAT(DATE_FORMAT(CURDATE(), '%Y-%m-%d'), ' ', p.start_time), '%Y-%m-%d %H:%i:%s') > NOW()
|
||||||
ORDER BY STR_TO_DATE(CONCAT(DATE_FORMAT(CURDATE(), '%Y-%m-%d'), ' ', p.start_time), '%Y-%m-%d %H:%i:%s') ASC
|
ORDER BY STR_TO_DATE(CONCAT(DATE_FORMAT(CURDATE(), '%Y-%m-%d'), ' ', p.start_time), '%Y-%m-%d %H:%i:%s') ASC
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue