胡轶钦 hace 5 años
padre
commit
c3429c7ec9
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/main/resources/mapper/TaPersonMapper.xml

+ 2
- 2
src/main/resources/mapper/TaPersonMapper.xml Ver fichero

@@ -536,11 +536,11 @@ FROM
536 536
            UPDATE ta_person a
537 537
         INNER JOIN (
538 538
             SELECT
539
-                t.*, s.pinyin AS province
539
+                t.*, s.name AS province
540 540
             FROM
541 541
                 td_city t
542 542
             INNER JOIN td_city s ON t.parentid = s.id
543
-        ) b ON a.city = b.pinyin
543
+        ) b ON a.city like CONCAT(b.shortname, '%')
544 544
         AND a.province = b.province
545 545
         set a.city = b.id
546 546
         where a.city IS NOT NULL