审核倒序+40分钟自动拒单

This commit is contained in:
kuang.yife 2024-01-29 17:57:24 +08:00
parent 43df3100ed
commit 3271cf06f3
2 changed files with 3 additions and 2 deletions

View File

@ -93,9 +93,9 @@ public class OrderServiceImpl implements OrderService {
Date overTime1h = getOverTime(createTime, 30 * 60 * 1000); Date overTime1h = getOverTime(createTime, 30 * 60 * 1000);
boolean flag; boolean flag;
if(order.getUpdateTime() != null){ if(order.getUpdateTime() != null){
flag = getOverTime(order.getUpdateTime(), 30 * 60 * 1000).before(now); flag = getOverTime(order.getUpdateTime(), 40 * 60 * 1000).before(now);
}else { }else {
flag = getOverTime(createTime, 30 * 60 * 1000).before(now); flag = getOverTime(createTime, 40 * 60 * 1000).before(now);
} }
// 是否已经超时 // 是否已经超时
boolean timeout = ONE.equals(order.getTimeout()); boolean timeout = ONE.equals(order.getTimeout());

View File

@ -59,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="status != null "> and worker_certification.status = #{status}</if> <if test="status != null "> and worker_certification.status = #{status}</if>
<if test="deptId != null and deptId != ''"> and worker.dept_id = #{deptId}</if> <if test="deptId != null and deptId != ''"> and worker.dept_id = #{deptId}</if>
</where> </where>
order by worker_certification.create_time desc
</select> </select>
<select id="selectWorkerCertificationByWorkerCertificationId" parameterType="String" resultMap="WorkerCertificationResult"> <select id="selectWorkerCertificationByWorkerCertificationId" parameterType="String" resultMap="WorkerCertificationResult">