|
|
@@ -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();
|
|
|
}
|
|
|
}
|