|
|
@@ -354,6 +354,9 @@ public class ERPServiceImpl implements ERPService {
|
|
|
//主表部门名称更新部门编号更新
|
|
|
baseDao.execute("update "+master+"AccountRegister set ar_departmentname=(select dp_name from "+master+"Department where dp_code=ar_departmentcode) " +
|
|
|
" where exists (select 1 from "+master+"Department where dp_code=ar_departmentcode) and ar_id="+ar_id);
|
|
|
+ baseDao.execute("update "+master+"accountregisterdetailass set (ARS_ASSCODE,ARS_ASSNAME)=(select AR_DEPARTMENTCODE,AR_DEPARTMENTNAME from "+master+"AccountRegister where ar_id="+ar_id+" and ARS_ASSTYPE='部门')" +
|
|
|
+ " where ars_ardid in (select ard_id from "+master+"AccountRegisterDetail where ard_arid="+ar_id+") and " +
|
|
|
+ " exists (select 1 from "+master+"AccountRegister where ar_id="+ar_id+" and ARS_ASSTYPE='部门')");
|
|
|
//String defaultCurr = baseDao.getDBSetting(caller, "fyCurr");
|
|
|
|
|
|
String defaultCurr="RMB";
|