Commit 5ab2f5eeb8fb4de690bf9f064d2495dafec16163

Authored by guzijian
1 parent 2282d6bb

fix: bug修复

ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java
... ... @@ -8,6 +8,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
8 8 import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
9 9 import org.springframework.context.ConfigurableApplicationContext;
10 10 import org.springframework.core.env.ConfigurableEnvironment;
  11 +import org.springframework.scheduling.annotation.EnableAsync;
11 12  
12 13 import javax.annotation.PostConstruct;
13 14 import java.net.InetAddress;
... ... @@ -22,6 +23,7 @@ import java.util.regex.Pattern;
22 23 *
23 24 * @author guzijian
24 25 */
  26 +@EnableAsync
25 27 @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
26 28 public class RuoYiApplication {
27 29  
... ...
ruoyi-admin/src/main/resources/mapper/driver/DriverMapper.xml
... ... @@ -306,7 +306,7 @@
306 306 on duplicate key update
307 307 job_code = values(job_code)
308 308 </insert>
309   - <insert id="insertDriverFace" useGeneratedKeys="true" keyProperty="id">
  309 + <insert id="insertDriverFace">
310 310 INSERT INTO driver_face_device_id ( job_code,device_id )
311 311 values
312 312 <foreach collection="jobCodes" item="item" index="index" separator=",">
... ... @@ -315,7 +315,7 @@
315 315 )
316 316 </foreach>
317 317 on duplicate key update
318   - job_code = values(job_code)
  318 + job_code = values(job_code),
319 319 device_id = values(device_id)
320 320 </insert>
321 321  
... ...