Parcourir la source

【深爱-4A】【永洪】【重名账号+01、02...】

DINGYL il y a 3 mois
Parent
commit
94cb61acfb
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/main/java/com/uas/eis/serviceImpl/YongHService.java

+ 3 - 1
src/main/java/com/uas/eis/serviceImpl/YongHService.java

@@ -101,7 +101,9 @@ public class YongHService {
         Map<String,Object> xmlData = new HashMap<>();
         Map<String,Object> info = new HashMap<>();
         Map<String,Object> user = new HashMap<>();
-        String name = PinyinUtils.getCustomPinyin(employee.getEm_name());
+        String pinin = PinyinUtils.getCustomPinyin(employee.getEm_name());
+        String name= baseDao.getJdbcTemplate()
+                .queryForObject("select GET_4A_ID('"+employee.getEm_code()+"','"+pinin+"','YONGHONG')  from dual", String.class);
         if(StringUtil.hasText(employee.getEm_yonghongid())){
             name=employee.getEm_yonghongid();
         }