组织架构流程

This commit is contained in:
liuliang 2025-09-26 16:05:35 +08:00
parent 1a000b6c4c
commit f4e05a61c7
1 changed files with 8 additions and 3 deletions

View File

@ -78,7 +78,7 @@ public class OrganaztionSeviceImpl implements OrganaztionService {
throw new EmployeeJclRunTimeException("被删除组织下存在子部门");
}
}
String sql = "update uf_organization_bghzzsj set delete_type='3',is_delete='1' where bh=? and form_data_id=? ";
String sql = "update uf_organization_bghzzsj set delete_type='3',is_delete='1',czlx='1' where bh=? and form_data_id=? ";
databaseUtils.execute(sql,CommonUtils.getParamList(department.getBh(),department.getForm_data_id()));
}
@ -88,10 +88,15 @@ public class OrganaztionSeviceImpl implements OrganaztionService {
String sql = "select bh,zzmc,zz,czlx from uf_organization_bghzzsj where bh=? and form_data_id=? ";
List<Map<String, Object>> dataList = databaseUtils.getSqlList(sql,CommonUtils.getParamList(department.getSjzzbh(),department.getForm_data_id()));
List<Map<String, Object>> nowDataList = databaseUtils.getSqlList(sql,CommonUtils.getParamList(department.getBh(),department.getForm_data_id()));
String czlx = CommonUtils.null2String(nowDataList.get(0).get("czlx"));
if (czlx.equals("")){
czlx = "2";
}
sql = "update uf_organization_bghzzsj set zzmc=?,bmsqcj=?,bmfzr=?,fgld=?,sscb=?,bz=?,sjzzmc=?,sjzz=?,sjzzbh=?,czlx=? where bh=? and form_data_id=?";
databaseUtils.execute(sql,CommonUtils.getParamList(department.getZzmc(),department.getBmsqcj(),department.getBmfzr(),department.getFgld(),department.getSscb(),department.getBz(),
CommonUtils.null2String(dataList.get(0).get("zzmc")),CommonUtils.null2String(dataList.get(0).get("zz")),CommonUtils.null2String(dataList.get(0).get("bh")),department.getBh(),department.getForm_data_id()));
CommonUtils.null2String(dataList.get(0).get("zzmc")),CommonUtils.null2String(dataList.get(0).get("zz")),CommonUtils.null2String(dataList.get(0).get("bh")),czlx,department.getBh(),department.getForm_data_id()));
}
@ -261,7 +266,7 @@ public class OrganaztionSeviceImpl implements OrganaztionService {
@Override
public List<Map<String, Object>> getAfterChangeDepartmentTree(Map<String, String> params) {
String id = params.get("id");
String sql = "select zz,bh id,sjzzbh,zzmc content,sjzzmc,sjzz,bmfzr,fgld,bmsqcj,bz,sscb,sjzzbh from uf_organization_bghzzsj where form_data_id=? and delete_type='0'";
String sql = "select zz,bh id,sjzzbh,zzmc content,sjzzmc,sjzz,bmfzr,fgld,bmsqcj,bz,sscb,sjzzbh,czlx from uf_organization_bghzzsj where form_data_id=? and delete_type='0'";
List<Map<String, Object>> dataList = databaseUtils.getSqlList(sql,CommonUtils.getParamList(id));
sql = "select id,username from eteams.employee";