[agent-pipeline] pipe-20260328055039-5mki round-1

This commit is contained in:
DDD1542
2026-03-28 15:14:38 +09:00
parent 4289c7ef91
commit 21e30e5f60
120 changed files with 2787 additions and 1695 deletions
@@ -24,7 +24,7 @@ public class DepartmentService extends BaseService {
// member_count를 int로 변환
for (Map<String, Object> dept : departments) {
Object cnt = dept.get("memberCount");
Object cnt = dept.get("member_count");
if (cnt != null) {
dept.put("memberCount", ((Number) cnt).intValue());
} else {
@@ -61,13 +61,13 @@ public class DepartmentService extends BaseService {
Map<String, Object> companyParams = new HashMap<>();
companyParams.put("companyCode", companyCode);
Map<String, Object> company = sqlSession.selectOne("department.selectCompanyName", companyParams);
String companyName = (company != null && company.get("companyName") != null)
? (String) company.get("companyName")
String companyName = (company != null && company.get("company_name") != null)
? (String) company.get("company_name")
: companyCode;
// 부서 코드 생성
Map<String, Object> codeResult = sqlSession.selectOne("department.selectNextDeptNumber", null);
long nextNumber = codeResult != null ? ((Number) codeResult.get("nextNumber")).longValue() : 1L;
long nextNumber = codeResult != null ? ((Number) codeResult.get("next_number")).longValue() : 1L;
String deptCode = "DEPT_" + nextNumber;
// 부서 생성