main
parent
4b5c82d5bd
commit
91ad7725d4
|
|
@ -43,7 +43,7 @@ public class DrillingCommonController {
|
||||||
|
|
||||||
|
|
||||||
Map<String, Object> map = new HashMap<String, Object>();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
// map.put("userid", String.valueOf(request.getSession().getAttribute("USERID")));
|
map.put("userid", String.valueOf(request.getSession().getAttribute("USERID")));
|
||||||
try {
|
try {
|
||||||
Map<String, Object> result = loginService.selectWebMemberIn(map);
|
Map<String, Object> result = loginService.selectWebMemberIn(map);
|
||||||
model.put("masterCompanyCode", result.get("master_company_code"));
|
model.put("masterCompanyCode", result.get("master_company_code"));
|
||||||
|
|
|
||||||
|
|
@ -378,31 +378,6 @@ public class DrillingInputServiceImpl implements DrillingInputService {
|
||||||
spUdtTblCsiParams.put("crtUserid", oldTempConstructSiteInfo.get("crtUserid"));
|
spUdtTblCsiParams.put("crtUserid", oldTempConstructSiteInfo.get("crtUserid"));
|
||||||
spUdtTblCsiParams.put("modUserid", userId);
|
spUdtTblCsiParams.put("modUserid", userId);
|
||||||
spUdtTblCsiParams.put("userId", userId);
|
spUdtTblCsiParams.put("userId", userId);
|
||||||
// drillingInputMapper.spUdtTblCsi(spUdtTblCsiParams);
|
|
||||||
|
|
||||||
// 건설현장 입력 시, 기업사용자를 지정했다면 해당 건설현장을 해당 기업사용자의 프로젝트목록에 추가한다. 로직이 복잡해질까봐 필요한 큰 로직만 넣었습니다.
|
|
||||||
// if( 기업사용자를 지정했다면 ) {
|
|
||||||
// String constUserId = "복호화된 기업 사용자 아이디";
|
|
||||||
// params.put("constUserId", constUserId);
|
|
||||||
// String constProjectCode = 수정할 건설현장에 해당하는 TEMP_CONITRUCT_SITE_INFO.PROJECT_CODE 값을 가져온다(); 'TEMP_CONITRUCT_SITE_INFO.PROJECT_CODE 값을 가져오는 쿼리' 참고
|
|
||||||
// if( constProjectCode 값이 존재한다면 ) {
|
|
||||||
// params.put("constProjectCode", constProjectCode);
|
|
||||||
// String tmiUserId = 'TEMP_META_INFO.USERID 값을 가져오는 쿼리 수행();
|
|
||||||
// if( tmiUserId != null && constUserId != tmiUserId )
|
|
||||||
//boolean isGroundInfoInputStarted = 입력 기업 사용자 입력 진행 여부 판단 쿼리 수행() == null ? true : false; '기업사용자 지반정보 입력 여부 확인' 쿼리 참고. tpi.PROJECT_CODE 값이 조회되면 삭제해도 됨. 조회 안 되면 삭제 X
|
|
||||||
// if( isGroundInfoInputStarted ) {
|
|
||||||
// params.put("constUserId", tmiUserId); // 해당 건설현장(프로젝트)의 입력자를 변경하지 않는다.
|
|
||||||
// spUdtTblCsiParams.put("message", '기업사용자 수정 불가. 이전 기업사용자가 이미 입력을 시작한 프로젝트입니다'); // 발주기관 사용자에게 해당 메시지 보여주기
|
|
||||||
// } else {
|
|
||||||
// deleteProject(params, request, response);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// } else {
|
|
||||||
// params.put("constProjectCode", "");
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// saveAndInsertMeta(params, request, response);
|
|
||||||
//}
|
|
||||||
|
|
||||||
|
|
||||||
String orgConstUserid = ""; // 기존에 발주기관이 지정한 건설사 계정
|
String orgConstUserid = ""; // 기존에 발주기관이 지정한 건설사 계정
|
||||||
|
|
@ -421,7 +396,6 @@ public class DrillingInputServiceImpl implements DrillingInputService {
|
||||||
|
|
||||||
if ("".equals(addConstUserid)) {
|
if ("".equals(addConstUserid)) {
|
||||||
if ("".equals(orgConstUserid)) { // 1)
|
if ("".equals(orgConstUserid)) { // 1)
|
||||||
// drillingInputMapper.spUdtTblCsi(spUdtTblCsiParams);
|
|
||||||
} else { // 2)
|
} else { // 2)
|
||||||
deleteTempMetaInfo(oldTempConstructSiteInfo);
|
deleteTempMetaInfo(oldTempConstructSiteInfo);
|
||||||
deleteTempProjectInfo(oldTempConstructSiteInfo);
|
deleteTempProjectInfo(oldTempConstructSiteInfo);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue