This commit is contained in:
liuliang 2025-08-08 11:21:57 +08:00
parent 66de8e628a
commit 3c300ea1e3
2 changed files with 11 additions and 0 deletions

View File

@ -12,4 +12,6 @@ public interface OrganaztionService {
void delOrganaztionDepartment(Department department, SimpleEmployee employee);
void updateOrganaztionDepartment(Department department, SimpleEmployee employee);
void mergeOrganaztionDepartment(Department department, SimpleEmployee employee);
}

View File

@ -69,4 +69,13 @@ public class OrganaztionSeviceImpl implements OrganaztionService {
CommonUtils.null2String(dataList.get(0).get("sjzzmc")),CommonUtils.null2String(dataList.get(0).get("sjzz")),CommonUtils.null2String(dataList.get(0).get("sjzzbh")),department.getBh()));
}
@Override
public void mergeOrganaztionDepartment(Department department, SimpleEmployee employee) {
String bhbbmid = department.getBhbbmid();
String sql = "update uf_organization_bghzzsj set delete_type='1' where bh in (?)";
databaseUtils.execute(sql,CommonUtils.getParamList(bhbbmid));
addOrganaztionDepartment( department, employee);
}
}