ソースを参照

【泛微对接】【新增银行登记接口增加账套字段】

wub 1 ヶ月 前
コミット
5e4cfcc190

+ 3 - 3
src/main/java/com/uas/eis/service/Impl/ERPServiceImpl.java

@@ -353,9 +353,9 @@ public class ERPServiceImpl implements ERPService {
             String defaultCurr="RMB";
             int count_fyCurr = baseDao.getCount("select count(1) from "+master+"configs where caller='" + caller + "' and code='fyCurr'");
             if (count_fyCurr>0) {
-                Configs config = baseDao.getJdbcTemplate().queryForObject("select *  from "+master+"configs where caller=? and code=?",
-                        new BeanPropertyRowMapper<Configs>(Configs.class), caller, code);
-                if (config != null) {
+                Configs config = baseDao.getJdbcTemplate().queryForObject("select *  from "+master+"configs where caller=? and code='fyCurr'",
+                        new BeanPropertyRowMapper<Configs>(Configs.class), caller);
+                if (config != null && config.getData()!=null && "".equals(config.getData())) {
                     defaultCurr = config.getData();
                 }
             }