Commit 2563f78eb78264839761ee7237e26e2d8a1e843a
1 parent
695549eb
fix: 修复没有备注bug和修复驾驶员查询条件不生效bug
Showing
3 changed files
with
5 additions
and
1 deletions
Bsth-admin/src/main/java/com/ruoyi/job/DriverJob.java
| @@ -198,6 +198,7 @@ public class DriverJob implements InitializingBean { | @@ -198,6 +198,7 @@ public class DriverJob implements InitializingBean { | ||
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | // 弃用 无用方法 | 200 | // 弃用 无用方法 |
| 201 | + @Deprecated | ||
| 201 | public void clearExceptionYesterdayRecord() { | 202 | public void clearExceptionYesterdayRecord() { |
| 202 | // 获取当前日期时间 | 203 | // 获取当前日期时间 |
| 203 | Calendar calendar = Calendar.getInstance(); | 204 | Calendar calendar = Calendar.getInstance(); |
Bsth-admin/src/main/java/com/ruoyi/service/SchedulingService.java
| @@ -148,6 +148,9 @@ public class SchedulingService { | @@ -148,6 +148,9 @@ public class SchedulingService { | ||
| 148 | } else { | 148 | } else { |
| 149 | sb.append("迟到"); | 149 | sb.append("迟到"); |
| 150 | } | 150 | } |
| 151 | + // 在规定时间就还原remark | ||
| 152 | + }else { | ||
| 153 | + sb.append(signIn.getRemark()); | ||
| 151 | } | 154 | } |
| 152 | if (SIGN_ALCOHOL_EX_NUM.equals(signIn.getExType())) { | 155 | if (SIGN_ALCOHOL_EX_NUM.equals(signIn.getExType())) { |
| 153 | sb.append("," + signIn.getRemark().substring(signIn.getRemark().indexOf(ALCOHOL_SIGN_IN_ERROR))); | 156 | sb.append("," + signIn.getRemark().substring(signIn.getRemark().indexOf(ALCOHOL_SIGN_IN_ERROR))); |
Bsth-admin/src/main/resources/mapper/driver/DriverMapper.xml
| @@ -111,7 +111,7 @@ | @@ -111,7 +111,7 @@ | ||
| 111 | <if test="tagRfid != null and tagRfid != ''">and driver.tag_rfid = #{tagRfid}</if> | 111 | <if test="tagRfid != null and tagRfid != ''">and driver.tag_rfid = #{tagRfid}</if> |
| 112 | <if test="lineName != null and lineName != ''">and driver.line_name like concat('%', #{lineName}, '%')</if> | 112 | <if test="lineName != null and lineName != ''">and driver.line_name like concat('%', #{lineName}, '%')</if> |
| 113 | <if test="lineCode != null and lineCode != ''">and driver.line_code = #{lineCode}</if> | 113 | <if test="lineCode != null and lineCode != ''">and driver.line_code = #{lineCode}</if> |
| 114 | - <if test="faceSignIn != null and faceSignIn != ''">and driver.face_sign_in = #{faceSignIn}</if> | 114 | + <if test="faceSignIn != null ">and driver.face_sign_in = #{faceSignIn}</if> |
| 115 | <if test="fleetName != null and fleet_name != ''">and driver.fleet_name = #{fleetName}</if> | 115 | <if test="fleetName != null and fleet_name != ''">and driver.fleet_name = #{fleetName}</if> |
| 116 | </where> | 116 | </where> |
| 117 | </select> | 117 | </select> |