Commit 62e6c99dd57dfe50ed626ee198b8929f3e4a4598
1 parent
fc9bdd55
feat: 修复更新人脸数据失败问题
Showing
2 changed files
with
7 additions
and
0 deletions
ruoyi-admin/src/main/java/com/ruoyi/pojo/vo/DriverRequestVo.java
| @@ -3,6 +3,10 @@ package com.ruoyi.pojo.vo; | @@ -3,6 +3,10 @@ package com.ruoyi.pojo.vo; | ||
| 3 | import com.ruoyi.driver.domain.Driver; | 3 | import com.ruoyi.driver.domain.Driver; |
| 4 | import lombok.Data; | 4 | import lombok.Data; |
| 5 | 5 | ||
| 6 | +/** | ||
| 7 | + * 增加设备判定 | ||
| 8 | + * @author 20412 | ||
| 9 | + */ | ||
| 6 | @Data | 10 | @Data |
| 7 | public class DriverRequestVo extends Driver { | 11 | public class DriverRequestVo extends Driver { |
| 8 | private String deviceId; | 12 | private String deviceId; |
ruoyi-admin/src/main/resources/mapper/driver/DriverMapper.xml
| @@ -309,6 +309,9 @@ | @@ -309,6 +309,9 @@ | ||
| 309 | <update id="updateSignStatusDriversByJobCodes"> | 309 | <update id="updateSignStatusDriversByJobCodes"> |
| 310 | <foreach collection="list" item="item" separator=";"> | 310 | <foreach collection="list" item="item" separator=";"> |
| 311 | update driver set face_sign_in = 1,update_time = #{item.updateTime} | 311 | update driver set face_sign_in = 1,update_time = #{item.updateTime} |
| 312 | + <if test="item.image != null and item.image != ''"> | ||
| 313 | + ,image = #{item.image} | ||
| 314 | + </if> | ||
| 312 | where job_code = #{item.jobCode,jdbcType=VARCHAR} | 315 | where job_code = #{item.jobCode,jdbcType=VARCHAR} |
| 313 | </foreach> | 316 | </foreach> |
| 314 | </update> | 317 | </update> |