|
|
@@ -127,6 +127,8 @@ public class UasOrgService extends AbstractService {
|
|
|
logger.debug("update qywx department " + JSON.toJSONString(req.build()));
|
|
|
// 修改部门名称
|
|
|
addrBookSdk.updateDepartment(req);
|
|
|
+ // 存在旧的已禁用的同名组织
|
|
|
+ jdbcTemplate.update("update HrOrg set or_qywx=null where or_qywx=? and or_statuscode='DISABLE'", dept.getId());
|
|
|
}
|
|
|
updateOrgQywxId(org, dept.getId());
|
|
|
} else {
|