치안수요 분석결과 오류 수정중.
parent
341d7b60bb
commit
2fd4fb2d2e
|
|
@ -38,8 +38,8 @@ public class BaseService {
|
||||||
protected String sriPath;
|
protected String sriPath;
|
||||||
@Value("${file.dir.ciw}")
|
@Value("${file.dir.ciw}")
|
||||||
protected String ciwPath;
|
protected String ciwPath;
|
||||||
@Value("${file.dir.cia.safty}")
|
@Value("${file.dir.cia.safety}")
|
||||||
protected String ciaSaftyPath;
|
protected String ciaSafetyPath;
|
||||||
@Value("${file.dir.cia.company}")
|
@Value("${file.dir.cia.company}")
|
||||||
protected String ciaCompanyPath;
|
protected String ciaCompanyPath;
|
||||||
@Value("${file.dir.cia.foreigner}")
|
@Value("${file.dir.cia.foreigner}")
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,6 @@ import com.dbnt.faisp.main.authMgt.service.AuthMgtService;
|
||||||
import com.dbnt.faisp.main.codeMgt.service.CodeMgtService;
|
import com.dbnt.faisp.main.codeMgt.service.CodeMgtService;
|
||||||
import com.dbnt.faisp.main.counterIntelligence.model.*;
|
import com.dbnt.faisp.main.counterIntelligence.model.*;
|
||||||
import com.dbnt.faisp.main.counterIntelligence.service.CounterIntelligenceService;
|
import com.dbnt.faisp.main.counterIntelligence.service.CounterIntelligenceService;
|
||||||
import com.dbnt.faisp.main.equip.model.Equip;
|
|
||||||
import com.dbnt.faisp.main.equip.model.EquipFile;
|
|
||||||
import com.dbnt.faisp.main.userInfo.model.UserInfo;
|
import com.dbnt.faisp.main.userInfo.model.UserInfo;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.security.core.annotation.AuthenticationPrincipal;
|
import org.springframework.security.core.annotation.AuthenticationPrincipal;
|
||||||
|
|
@ -13,6 +11,7 @@ import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||||
import org.springframework.web.servlet.ModelAndView;
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.BufferedOutputStream;
|
import java.io.BufferedOutputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
|
|
@ -20,8 +19,6 @@ import java.io.InputStream;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@RequestMapping("/counterIntelligence")
|
@RequestMapping("/counterIntelligence")
|
||||||
|
|
@ -121,89 +118,55 @@ public class CounterIntelligenceController {
|
||||||
mav.addObject("searchParams", ciWorkStatistics);
|
mav.addObject("searchParams", ciWorkStatistics);
|
||||||
return mav;
|
return mav;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/ciaSaftyDemandList")
|
|
||||||
public ModelAndView ciaSaftyDemandList(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
|
||||||
ModelAndView mav = new ModelAndView("counterIntelligence/ciaSaftyDemandList");
|
@PostMapping("/saveCiActivity")
|
||||||
|
public Integer saveCiActivity(CounterIntelligenceActivity cia,@AuthenticationPrincipal UserInfo loginUser,
|
||||||
|
MultipartHttpServletRequest request,
|
||||||
|
@RequestParam(value = "fileSeq", required = false) List<Integer> deleteFileSeq){
|
||||||
|
cia.setMultipartFileList(request.getMultiFileMap().get("uploadFiles"));
|
||||||
|
if(cia.getCiKey()==null){
|
||||||
|
cia.setWrtOrgan(loginUser.getOgCd());
|
||||||
|
cia.setWrtPart(loginUser.getOfcCd());
|
||||||
|
cia.setWrtUserSeq(loginUser.getUserSeq());
|
||||||
|
cia.setWrtUserGrd(loginUser.getTitleCd());
|
||||||
|
cia.setWrtUserNm(loginUser.getUserNm());
|
||||||
|
cia.setWrtDt(LocalDateTime.now());
|
||||||
|
}
|
||||||
|
Integer ciKey = ciService.saveCiActivity(cia, deleteFileSeq);
|
||||||
|
|
||||||
|
|
||||||
|
return ciKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@GetMapping("/ciaSafetyDemandList")
|
||||||
|
public ModelAndView ciaSafetyDemandList(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
||||||
|
ModelAndView mav = new ModelAndView("counterIntelligence/ciaSafetyDemandList");
|
||||||
String accessAuth = authMgtService.selectAccessConfigList
|
String accessAuth = authMgtService.selectAccessConfigList
|
||||||
(loginUser.getUserSeq(), "/counterIntelligence/ciaSaftyDemandList").get(0).getAccessAuth();
|
(loginUser.getUserSeq(), "/counterIntelligence/ciaSafetyDemandList").get(0).getAccessAuth();
|
||||||
mav.addObject("accessAuth", accessAuth);
|
mav.addObject("accessAuth", accessAuth);
|
||||||
|
|
||||||
cia.setDownOrganCdList(loginUser.getDownOrganCdList());
|
cia.setDownOrganCdList(loginUser.getDownOrganCdList());
|
||||||
cia.setWrtUserSeq(loginUser.getUserSeq());
|
cia.setWrtUserSeq(loginUser.getUserSeq());
|
||||||
cia.setQueryInfo();
|
cia.setQueryInfo();
|
||||||
mav.addObject("sdiList", ciService.selectCiaSaftyDemandList(cia));
|
mav.addObject("sdiList", ciService.selectCiaSafetyDemandList(cia));
|
||||||
cia.setContentCnt(ciService.selectCiaSaftyDemandListCnt(cia));
|
cia.setContentCnt(ciService.selectCiaSafetyDemandListCnt(cia));
|
||||||
cia.setPaginationInfo();
|
cia.setPaginationInfo();
|
||||||
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
|
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
|
||||||
mav.addObject("loginUserSeq", loginUser.getUserSeq());
|
mav.addObject("loginUserSeq", loginUser.getUserSeq());
|
||||||
mav.addObject("searchParams", cia);
|
mav.addObject("searchParams", cia);
|
||||||
return mav;
|
return mav;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/ciaSaftyDemandEditModal")
|
|
||||||
public ModelAndView ciaSaftyDemandEditModal(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
|
||||||
ModelAndView mav = new ModelAndView("counterIntelligence/ciaSaftyDemandEditModal");
|
|
||||||
if(cia.getCiKey() != null) {
|
|
||||||
cia = ciService.selectSaftyDemandInfo(cia);
|
|
||||||
}else{
|
|
||||||
cia.setSaftyDemandInfo(new SaftyDemandInfo());
|
|
||||||
}
|
|
||||||
mav.addObject("cia", cia);
|
|
||||||
return mav;
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping("/saveCiActivity")
|
|
||||||
public Integer saveCiActivity(CounterIntelligenceActivity cia,@AuthenticationPrincipal UserInfo loginUser,
|
|
||||||
MultipartHttpServletRequest request,
|
|
||||||
@RequestParam(value = "fileSeq", required = false) List<Integer> deleteFileSeq){
|
|
||||||
cia.setMultipartFileList(request.getMultiFileMap().get("uploadFiles"));
|
|
||||||
if(cia.getCiKey()==null){
|
|
||||||
cia.setWrtOrgan(loginUser.getOgCd());
|
|
||||||
cia.setWrtPart(loginUser.getOfcCd());
|
|
||||||
cia.setWrtUserSeq(loginUser.getUserSeq());
|
|
||||||
cia.setWrtUserGrd(loginUser.getTitleCd());
|
|
||||||
cia.setWrtUserNm(loginUser.getUserNm());
|
|
||||||
cia.setWrtDt(LocalDateTime.now());
|
|
||||||
}
|
|
||||||
Integer ciKey = ciService.saveCiActivity(cia, deleteFileSeq);
|
|
||||||
switch (cia.getCiType()) {
|
|
||||||
case "SDI": // 치안수요분석
|
|
||||||
ciService.saveSaftyDemand(cia);
|
|
||||||
break;
|
|
||||||
case "MCI": // 해양산업보호관리업체
|
|
||||||
ciService.saveManageCompany(cia);
|
|
||||||
break;
|
|
||||||
case "FI": // 외국인커뮤니티모니터링
|
|
||||||
ciService.saveForeigner(cia);
|
|
||||||
break;
|
|
||||||
case "EI": // 방첩교육실시
|
|
||||||
ciService.saveEdu(cia);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return ciKey;
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/ciaSaftyDemandViewModal")
|
|
||||||
public ModelAndView ciaSaftyDemandViewModal(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
|
||||||
ModelAndView mav = new ModelAndView("counterIntelligence/ciaSaftyDemandViewModal");
|
|
||||||
String accessAuth = authMgtService.selectAccessConfigList
|
|
||||||
(loginUser.getUserSeq(), "/counterIntelligence/ciaSaftyDemandList").get(0).getAccessAuth();
|
|
||||||
mav.addObject("accessAuth", accessAuth);
|
|
||||||
mav.addObject("lineSeparator", '\n');
|
|
||||||
mav.addObject("viewUserSeq", loginUser.getUserSeq());
|
|
||||||
mav.addObject("cia", ciService.selectSaftyDemandInfo(cia));
|
|
||||||
return mav;
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/ciaManageCompanyList")
|
@GetMapping("/ciaManageCompanyList")
|
||||||
public ModelAndView ciaManageCompanyList(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
public ModelAndView ciaManageCompanyList(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
||||||
ModelAndView mav = new ModelAndView("counterIntelligence/ciaManageCompanyList");
|
ModelAndView mav = new ModelAndView("counterIntelligence/ciaManageCompanyList");
|
||||||
String accessAuth = authMgtService.selectAccessConfigList
|
String accessAuth = authMgtService.selectAccessConfigList
|
||||||
(loginUser.getUserSeq(), "/counterIntelligence/ciaManageCompanyList").get(0).getAccessAuth();
|
(loginUser.getUserSeq(), "/counterIntelligence/ciaManageCompanyList").get(0).getAccessAuth();
|
||||||
mav.addObject("accessAuth", accessAuth);
|
mav.addObject("accessAuth", accessAuth);
|
||||||
|
|
||||||
cia.setWrtUserSeq(loginUser.getUserSeq());
|
cia.setWrtUserSeq(loginUser.getUserSeq());
|
||||||
cia.setDownOrganCdList(loginUser.getDownOrganCdList());
|
cia.setDownOrganCdList(loginUser.getDownOrganCdList());
|
||||||
cia.setQueryInfo();
|
cia.setQueryInfo();
|
||||||
|
|
@ -215,40 +178,16 @@ public class CounterIntelligenceController {
|
||||||
mav.addObject("searchParams", cia);
|
mav.addObject("searchParams", cia);
|
||||||
return mav;
|
return mav;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/ciaManageCompanyEditModal")
|
|
||||||
public ModelAndView ciaManageCompanyEditModal(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
|
||||||
ModelAndView mav = new ModelAndView("counterIntelligence/ciaManageCompanyEditModal");
|
|
||||||
if(cia.getCiKey() != null) {
|
|
||||||
cia = ciService.selectManageCompanyInfo(cia);
|
|
||||||
}else{
|
|
||||||
cia.setManageCompanyInfo(new ManageCompanyInfo());
|
|
||||||
}
|
|
||||||
|
|
||||||
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
|
|
||||||
mav.addObject("cia", cia);
|
|
||||||
return mav;
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/ciaManageCompanyViewModal")
|
|
||||||
public ModelAndView ciaManageCompanyViewModal(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
|
||||||
ModelAndView mav = new ModelAndView("counterIntelligence/ciaManageCompanyViewModal");
|
|
||||||
String accessAuth = authMgtService.selectAccessConfigList
|
|
||||||
(loginUser.getUserSeq(), "/counterIntelligence/ciaManageCompanyList").get(0).getAccessAuth();
|
|
||||||
mav.addObject("accessAuth", accessAuth);
|
|
||||||
mav.addObject("lineSeparator", '\n');
|
|
||||||
mav.addObject("viewUserSeq", loginUser.getUserSeq());
|
|
||||||
mav.addObject("cia", ciService.selectManageCompanyInfo(cia));
|
|
||||||
return mav;
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/ciaForeignerList")
|
@GetMapping("/ciaForeignerList")
|
||||||
public ModelAndView ciaForeignerList(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
public ModelAndView ciaForeignerList(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
||||||
ModelAndView mav = new ModelAndView("counterIntelligence/ciaForeignerList");
|
ModelAndView mav = new ModelAndView("counterIntelligence/ciaForeignerList");
|
||||||
String accessAuth = authMgtService.selectAccessConfigList
|
String accessAuth = authMgtService.selectAccessConfigList
|
||||||
(loginUser.getUserSeq(), "/counterIntelligence/ciaForeignerList").get(0).getAccessAuth();
|
(loginUser.getUserSeq(), "/counterIntelligence/ciaForeignerList").get(0).getAccessAuth();
|
||||||
mav.addObject("accessAuth", accessAuth);
|
mav.addObject("accessAuth", accessAuth);
|
||||||
|
|
||||||
cia.setWrtUserSeq(loginUser.getUserSeq());
|
cia.setWrtUserSeq(loginUser.getUserSeq());
|
||||||
cia.setDownOrganCdList(loginUser.getDownOrganCdList());
|
cia.setDownOrganCdList(loginUser.getDownOrganCdList());
|
||||||
cia.setQueryInfo();
|
cia.setQueryInfo();
|
||||||
|
|
@ -260,40 +199,15 @@ public class CounterIntelligenceController {
|
||||||
mav.addObject("searchParams", cia);
|
mav.addObject("searchParams", cia);
|
||||||
return mav;
|
return mav;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/ciaForeignerEditModal")
|
|
||||||
public ModelAndView ciaForeignerEditModal(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
|
||||||
ModelAndView mav = new ModelAndView("counterIntelligence/ciaForeignerEditModal");
|
|
||||||
if(cia.getCiKey() != null) {
|
|
||||||
cia = ciService.selectForeignerInfo(cia);
|
|
||||||
}else{
|
|
||||||
cia.setForeignerInfo(new ForeignerInfo());
|
|
||||||
}
|
|
||||||
|
|
||||||
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
|
|
||||||
mav.addObject("cia", cia);
|
|
||||||
return mav;
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/ciaForeignerViewModal")
|
|
||||||
public ModelAndView ciaForeignerViewModal(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
|
||||||
ModelAndView mav = new ModelAndView("counterIntelligence/ciaForeignerViewModal");
|
|
||||||
String accessAuth = authMgtService.selectAccessConfigList
|
|
||||||
(loginUser.getUserSeq(), "/counterIntelligence/ciaForeignerList").get(0).getAccessAuth();
|
|
||||||
mav.addObject("accessAuth", accessAuth);
|
|
||||||
mav.addObject("lineSeparator", '\n');
|
|
||||||
mav.addObject("viewUserSeq", loginUser.getUserSeq());
|
|
||||||
mav.addObject("cia", ciService.selectForeignerInfo(cia));
|
|
||||||
return mav;
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/ciaEduList")
|
@GetMapping("/ciaEduList")
|
||||||
public ModelAndView ciaEduList(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
public ModelAndView ciaEduList(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
||||||
ModelAndView mav = new ModelAndView("counterIntelligence/ciaEduList");
|
ModelAndView mav = new ModelAndView("counterIntelligence/ciaEduList");
|
||||||
String accessAuth = authMgtService.selectAccessConfigList
|
String accessAuth = authMgtService.selectAccessConfigList
|
||||||
(loginUser.getUserSeq(), "/counterIntelligence/ciaEduList").get(0).getAccessAuth();
|
(loginUser.getUserSeq(), "/counterIntelligence/ciaEduList").get(0).getAccessAuth();
|
||||||
mav.addObject("accessAuth", accessAuth);
|
mav.addObject("accessAuth", accessAuth);
|
||||||
|
|
||||||
cia.setWrtUserSeq(loginUser.getUserSeq());
|
cia.setWrtUserSeq(loginUser.getUserSeq());
|
||||||
cia.setDownOrganCdList(loginUser.getDownOrganCdList());
|
cia.setDownOrganCdList(loginUser.getDownOrganCdList());
|
||||||
cia.setQueryInfo();
|
cia.setQueryInfo();
|
||||||
|
|
@ -305,39 +219,69 @@ public class CounterIntelligenceController {
|
||||||
mav.addObject("searchParams", cia);
|
mav.addObject("searchParams", cia);
|
||||||
return mav;
|
return mav;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/ciaEduEditModal")
|
|
||||||
public ModelAndView ciaEduEditModal(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
@GetMapping("/ciaEditModal")
|
||||||
ModelAndView mav = new ModelAndView("counterIntelligence/ciaEduEditModal");
|
public ModelAndView ciaEditModal(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
||||||
if(cia.getCiKey() != null) {
|
ModelAndView mav = null;
|
||||||
cia = ciService.selectEduInfo(cia);
|
switch (cia.getCiType()){
|
||||||
}else{
|
case "SDI":
|
||||||
cia.setEduInfo(new EduInfo());
|
mav = new ModelAndView("counterIntelligence/ciaSafetyDemandEditModal");
|
||||||
|
break;
|
||||||
|
case "MCI":
|
||||||
|
mav = new ModelAndView("counterIntelligence/ciaManageCompanyEditModal");
|
||||||
|
break;
|
||||||
|
case "FI":
|
||||||
|
mav = new ModelAndView("counterIntelligence/ciaForeignerEditModal");
|
||||||
|
break;
|
||||||
|
case "EI":
|
||||||
|
mav = new ModelAndView("counterIntelligence/ciaEduEditModal");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
|
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
|
||||||
mav.addObject("cia", cia);
|
mav.addObject("cia", ciService.selectCiaInfo(cia));
|
||||||
return mav;
|
return mav;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/ciaEduViewModal")
|
@GetMapping("/ciaViewModal")
|
||||||
public ModelAndView ciaEduViewModal(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
public ModelAndView ciaViewModal(@AuthenticationPrincipal UserInfo loginUser, CounterIntelligenceActivity cia){
|
||||||
ModelAndView mav = new ModelAndView("counterIntelligence/ciaEduViewModal");
|
ModelAndView mav = null;
|
||||||
String accessAuth = authMgtService.selectAccessConfigList
|
String accessAuth = null;
|
||||||
|
switch (cia.getCiType()){
|
||||||
|
case "SDI":
|
||||||
|
mav = new ModelAndView("counterIntelligence/ciaSafetyDemandViewModal");
|
||||||
|
accessAuth = authMgtService.selectAccessConfigList
|
||||||
|
(loginUser.getUserSeq(), "/counterIntelligence/ciaSafetyDemandList").get(0).getAccessAuth();
|
||||||
|
break;
|
||||||
|
case "MCI":
|
||||||
|
mav = new ModelAndView("counterIntelligence/ciaManageCompanyViewModal");
|
||||||
|
accessAuth = authMgtService.selectAccessConfigList
|
||||||
|
(loginUser.getUserSeq(), "/counterIntelligence/ciaManageCompanyList").get(0).getAccessAuth();
|
||||||
|
break;
|
||||||
|
case "FI":
|
||||||
|
mav = new ModelAndView("counterIntelligence/ciaForeignerViewModal");
|
||||||
|
accessAuth = authMgtService.selectAccessConfigList
|
||||||
|
(loginUser.getUserSeq(), "/counterIntelligence/ciaForeignerList").get(0).getAccessAuth();
|
||||||
|
break;
|
||||||
|
case "EI":
|
||||||
|
mav = new ModelAndView("counterIntelligence/ciaEduViewModal");
|
||||||
|
accessAuth = authMgtService.selectAccessConfigList
|
||||||
(loginUser.getUserSeq(), "/counterIntelligence/ciaEduList").get(0).getAccessAuth();
|
(loginUser.getUserSeq(), "/counterIntelligence/ciaEduList").get(0).getAccessAuth();
|
||||||
|
break;
|
||||||
|
}
|
||||||
mav.addObject("accessAuth", accessAuth);
|
mav.addObject("accessAuth", accessAuth);
|
||||||
mav.addObject("lineSeparator", '\n');
|
mav.addObject("lineSeparator", '\n');
|
||||||
mav.addObject("viewUserSeq", loginUser.getUserSeq());
|
mav.addObject("viewUserSeq", loginUser.getUserSeq());
|
||||||
mav.addObject("cia", ciService.selectEduInfo(cia));
|
mav.addObject("cia", ciService.selectCiaInfo(cia));
|
||||||
return mav;
|
return mav;
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/deleteCounterIntelligenceActivity")
|
@PostMapping("/deleteCounterIntelligenceActivity")
|
||||||
public void deleteCounterIntelligenceActivity(@AuthenticationPrincipal UserInfo loginUser,@RequestBody CounterIntelligenceActivity cia){
|
public void deleteCounterIntelligenceActivity(@AuthenticationPrincipal UserInfo loginUser,@RequestBody CounterIntelligenceActivity cia){
|
||||||
cia.setContentStatus("DST008");
|
cia.setContentStatus("DST008");
|
||||||
ciService.deleteCounterIntelligenceActivity(cia);
|
ciService.deleteCounterIntelligenceActivity(cia);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/getCiaForeignerImg")
|
@GetMapping("/getCiaForeignerImg")
|
||||||
public void getCiaForeignerImg(CiaFile cf , HttpServletResponse response) throws Exception {
|
public void getCiaForeignerImg(CiaFile cf , HttpServletResponse response) throws Exception {
|
||||||
|
|
||||||
|
|
@ -372,5 +316,5 @@ public class CounterIntelligenceController {
|
||||||
if(in != null){ in.close(); }
|
if(in != null){ in.close(); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,9 @@ public interface CounterIntelligenceMapper {
|
||||||
|
|
||||||
List<Integer> selectCiWorkYearList();
|
List<Integer> selectCiWorkYearList();
|
||||||
|
|
||||||
List<CounterIntelligenceActivity> selectCiaSaftyDemandList(CounterIntelligenceActivity cia);
|
List<CounterIntelligenceActivity> selectCiaSafetyDemandList(CounterIntelligenceActivity cia);
|
||||||
|
|
||||||
Integer selectCiaSaftyDemandListCnt(CounterIntelligenceActivity cia);
|
Integer selectCiaSafetyDemandListCnt(CounterIntelligenceActivity cia);
|
||||||
|
|
||||||
List<CounterIntelligenceActivity> selectCiaManageCompanyList(CounterIntelligenceActivity cia);
|
List<CounterIntelligenceActivity> selectCiaManageCompanyList(CounterIntelligenceActivity cia);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ public class CounterIntelligenceActivity extends BaseModel {
|
||||||
@Transient
|
@Transient
|
||||||
private Integer fileCnt;
|
private Integer fileCnt;
|
||||||
@Transient
|
@Transient
|
||||||
private SaftyDemandInfo saftyDemandInfo;
|
private SafetyDemandInfo safetyDemandInfo;
|
||||||
@Transient
|
@Transient
|
||||||
private ManageCompanyInfo manageCompanyInfo;
|
private ManageCompanyInfo manageCompanyInfo;
|
||||||
@Transient
|
@Transient
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ import javax.persistence.*;
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@DynamicInsert
|
@DynamicInsert
|
||||||
@DynamicUpdate
|
@DynamicUpdate
|
||||||
@Table(name = "safty_demand_info")
|
@Table(name = "safety_demand_info")
|
||||||
public class SaftyDemandInfo {
|
public class SafetyDemandInfo {
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "ci_key")
|
@Column(name = "ci_key")
|
||||||
private Integer ciKey;
|
private Integer ciKey;
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
package com.dbnt.faisp.main.counterIntelligence.repository;
|
||||||
|
|
||||||
|
import com.dbnt.faisp.main.counterIntelligence.model.SafetyDemandInfo;
|
||||||
|
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
|
|
||||||
|
public interface SafetyDemandInfoRepository extends JpaRepository<SafetyDemandInfo, Integer> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
package com.dbnt.faisp.main.counterIntelligence.repository;
|
|
||||||
|
|
||||||
import com.dbnt.faisp.main.counterIntelligence.model.SaftyDemandInfo;
|
|
||||||
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
|
|
||||||
public interface SaftyDemandInfoRepository extends JpaRepository<SaftyDemandInfo, Integer> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -12,7 +12,7 @@ import com.dbnt.faisp.main.counterIntelligence.model.EduInfo;
|
||||||
import com.dbnt.faisp.main.counterIntelligence.model.ForeignerInfo;
|
import com.dbnt.faisp.main.counterIntelligence.model.ForeignerInfo;
|
||||||
import com.dbnt.faisp.main.counterIntelligence.model.HashTagLinkCiw;
|
import com.dbnt.faisp.main.counterIntelligence.model.HashTagLinkCiw;
|
||||||
import com.dbnt.faisp.main.counterIntelligence.model.ManageCompanyInfo;
|
import com.dbnt.faisp.main.counterIntelligence.model.ManageCompanyInfo;
|
||||||
import com.dbnt.faisp.main.counterIntelligence.model.SaftyDemandInfo;
|
import com.dbnt.faisp.main.counterIntelligence.model.SafetyDemandInfo;
|
||||||
import com.dbnt.faisp.main.counterIntelligence.repository.CiaFileRepository;
|
import com.dbnt.faisp.main.counterIntelligence.repository.CiaFileRepository;
|
||||||
import com.dbnt.faisp.main.counterIntelligence.repository.CiwFileRepository;
|
import com.dbnt.faisp.main.counterIntelligence.repository.CiwFileRepository;
|
||||||
import com.dbnt.faisp.main.counterIntelligence.repository.CounterIntelligenceActivityRepository;
|
import com.dbnt.faisp.main.counterIntelligence.repository.CounterIntelligenceActivityRepository;
|
||||||
|
|
@ -21,13 +21,14 @@ import com.dbnt.faisp.main.counterIntelligence.repository.EduInfoRepository;
|
||||||
import com.dbnt.faisp.main.counterIntelligence.repository.ForeignerInfoRepository;
|
import com.dbnt.faisp.main.counterIntelligence.repository.ForeignerInfoRepository;
|
||||||
import com.dbnt.faisp.main.counterIntelligence.repository.HashTagLinkCiwRepository;
|
import com.dbnt.faisp.main.counterIntelligence.repository.HashTagLinkCiwRepository;
|
||||||
import com.dbnt.faisp.main.counterIntelligence.repository.ManageCompanyInfoRepository;
|
import com.dbnt.faisp.main.counterIntelligence.repository.ManageCompanyInfoRepository;
|
||||||
import com.dbnt.faisp.main.counterIntelligence.repository.SaftyDemandInfoRepository;
|
import com.dbnt.faisp.main.counterIntelligence.repository.SafetyDemandInfoRepository;
|
||||||
import com.dbnt.faisp.main.equip.model.EquipFile;
|
import com.dbnt.faisp.main.equip.model.EquipFile;
|
||||||
import com.dbnt.faisp.main.hashTag.service.HashTagService;
|
import com.dbnt.faisp.main.hashTag.service.HashTagService;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -42,7 +43,7 @@ public class CounterIntelligenceService extends BaseService {
|
||||||
private final HashTagLinkCiwRepository hashTagLinkCiwRepository;
|
private final HashTagLinkCiwRepository hashTagLinkCiwRepository;
|
||||||
private final CounterIntelligenceActivityRepository counterIntelligenceActivityRepository;
|
private final CounterIntelligenceActivityRepository counterIntelligenceActivityRepository;
|
||||||
private final CiaFileRepository ciaFileRepository;
|
private final CiaFileRepository ciaFileRepository;
|
||||||
private final SaftyDemandInfoRepository saftyDemandInfoRepository;
|
private final SafetyDemandInfoRepository safetyDemandInfoRepository;
|
||||||
private final ManageCompanyInfoRepository manageCompanyInfoRepository;
|
private final ManageCompanyInfoRepository manageCompanyInfoRepository;
|
||||||
private final ForeignerInfoRepository foreignerInfoRepository;
|
private final ForeignerInfoRepository foreignerInfoRepository;
|
||||||
private final EduInfoRepository eduInfoRepository;
|
private final EduInfoRepository eduInfoRepository;
|
||||||
|
|
@ -148,180 +149,208 @@ public class CounterIntelligenceService extends BaseService {
|
||||||
ciWorkStatisticsList.add(totalStatistics);
|
ciWorkStatisticsList.add(totalStatistics);
|
||||||
return ciWorkStatisticsList;
|
return ciWorkStatisticsList;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
public Integer saveCiActivity(CounterIntelligenceActivity cia, List<Integer> deleteFileSeq) {
|
public Integer saveCiActivity(CounterIntelligenceActivity cia, List<Integer> deleteFileSeq) {
|
||||||
Integer ciKey = counterIntelligenceActivityRepository.save(cia).getCiKey();
|
Integer ciKey = counterIntelligenceActivityRepository.save(cia).getCiKey();
|
||||||
if(deleteFileSeq != null && deleteFileSeq.size()>0){
|
if(deleteFileSeq != null && deleteFileSeq.size()>0){
|
||||||
deleteCiaFile(ciKey, deleteFileSeq);
|
deleteCiaFile(ciKey, deleteFileSeq);
|
||||||
}
|
}
|
||||||
if(cia.getMultipartFileList()!=null){
|
if(cia.getMultipartFileList()!=null){
|
||||||
saveCiaUploadFiles(ciKey, cia.getMultipartFileList());
|
saveCiaUploadFiles(ciKey, cia.getMultipartFileList());
|
||||||
}
|
}
|
||||||
return ciKey;
|
switch (cia.getCiType()) {
|
||||||
|
case "SDI": // 치안수요분석
|
||||||
|
saveSafetyDemand(cia);
|
||||||
|
break;
|
||||||
|
case "MCI": // 해양산업보호관리업체
|
||||||
|
saveManageCompany(cia);
|
||||||
|
break;
|
||||||
|
case "FI": // 외국인커뮤니티모니터링
|
||||||
|
saveForeigner(cia);
|
||||||
|
break;
|
||||||
|
case "EI": // 방첩교육실시
|
||||||
|
saveEdu(cia);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return ciKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void deleteCiaFile(Integer ciKey, List<Integer> deleteFileSeq) {
|
private void deleteCiaFile(Integer ciKey, List<Integer> deleteFileSeq) {
|
||||||
List<CiaFile> ciaFileList = ciaFileRepository.findByCiKey(ciKey);
|
List<CiaFile> ciaFileList = ciaFileRepository.findByCiKey(ciKey);
|
||||||
for(CiaFile file: ciaFileList){
|
for(CiaFile file: ciaFileList){
|
||||||
if(deleteFileSeq.contains(file.getFileSeq())){
|
if(deleteFileSeq.contains(file.getFileSeq())){
|
||||||
deleteStoredFile(new File(file.getSavePath(), file.getConvNm()));
|
deleteStoredFile(new File(file.getSavePath(), file.getConvNm()));
|
||||||
ciaFileRepository.delete(file);
|
ciaFileRepository.delete(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void saveCiaUploadFiles(Integer ciKey, List<MultipartFile> multipartFileList){
|
|
||||||
CiaFile lastFileInfo = ciaFileRepository.findTopByCiKeyOrderByFileSeqDesc(ciKey).orElse(null);
|
|
||||||
int fileSeq = lastFileInfo==null?1:(lastFileInfo.getFileSeq()+1);
|
|
||||||
for(MultipartFile file : multipartFileList){
|
|
||||||
String saveName = UUID.randomUUID().toString();
|
|
||||||
String path = locationPath+ciwPath;
|
|
||||||
saveFile(file, new File(path+File.separator+saveName));
|
|
||||||
|
|
||||||
String originalFilename = file.getOriginalFilename();
|
private void saveCiaUploadFiles(Integer ciKey, List<MultipartFile> multipartFileList){
|
||||||
int extnIdx = originalFilename.lastIndexOf(".");
|
CiaFile lastFileInfo = ciaFileRepository.findTopByCiKeyOrderByFileSeqDesc(ciKey).orElse(null);
|
||||||
CiaFile fileInfo = new CiaFile();
|
int fileSeq = lastFileInfo==null?1:(lastFileInfo.getFileSeq()+1);
|
||||||
fileInfo.setCiKey(ciKey);
|
for(MultipartFile file : multipartFileList){
|
||||||
fileInfo.setFileSeq(fileSeq++);
|
String saveName = UUID.randomUUID().toString();
|
||||||
fileInfo.setOrigNm(originalFilename.substring(0, extnIdx));
|
String path = locationPath+ciwPath;
|
||||||
fileInfo.setFileExtn(originalFilename.substring(extnIdx+1));
|
saveFile(file, new File(path+File.separator+saveName));
|
||||||
fileInfo.setConvNm(saveName);
|
|
||||||
fileInfo.setFileSize(calculationSize(file.getSize()));
|
String originalFilename = file.getOriginalFilename();
|
||||||
fileInfo.setSavePath(path);
|
int extnIdx = originalFilename.lastIndexOf(".");
|
||||||
ciaFileRepository.save(fileInfo);
|
CiaFile fileInfo = new CiaFile();
|
||||||
}
|
fileInfo.setCiKey(ciKey);
|
||||||
}
|
fileInfo.setFileSeq(fileSeq++);
|
||||||
|
fileInfo.setOrigNm(originalFilename.substring(0, extnIdx));
|
||||||
|
fileInfo.setFileExtn(originalFilename.substring(extnIdx+1));
|
||||||
|
fileInfo.setConvNm(saveName);
|
||||||
|
fileInfo.setFileSize(calculationSize(file.getSize()));
|
||||||
|
fileInfo.setSavePath(path);
|
||||||
|
ciaFileRepository.save(fileInfo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
public void saveSaftyDemand(CounterIntelligenceActivity cia) {
|
public void saveSafetyDemand(CounterIntelligenceActivity cia) {
|
||||||
SaftyDemandInfo sdi = new SaftyDemandInfo();
|
SafetyDemandInfo sdi = new SafetyDemandInfo();
|
||||||
sdi.setCiKey(cia.getCiKey());
|
sdi.setCiKey(cia.getCiKey());
|
||||||
sdi.setLocalInfo(cia.getLocalInfo());
|
sdi.setLocalInfo(cia.getLocalInfo());
|
||||||
sdi.setOutlookProblem(cia.getOutlookProblem());
|
sdi.setOutlookProblem(cia.getOutlookProblem());
|
||||||
saftyDemandInfoRepository.save(sdi);
|
safetyDemandInfoRepository.save(sdi);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<CounterIntelligenceActivity> selectCiaSaftyDemandList(CounterIntelligenceActivity cia) {
|
public List<CounterIntelligenceActivity> selectCiaSafetyDemandList(CounterIntelligenceActivity cia) {
|
||||||
return ciMapper.selectCiaSaftyDemandList(cia);
|
return ciMapper.selectCiaSafetyDemandList(cia);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer selectCiaSaftyDemandListCnt(CounterIntelligenceActivity cia) {
|
public Integer selectCiaSafetyDemandListCnt(CounterIntelligenceActivity cia) {
|
||||||
return ciMapper.selectCiaSaftyDemandListCnt(cia);
|
return ciMapper.selectCiaSafetyDemandListCnt(cia);
|
||||||
}
|
}
|
||||||
|
|
||||||
public CounterIntelligenceActivity selectSaftyDemandInfo(CounterIntelligenceActivity cia) {
|
|
||||||
CounterIntelligenceActivity dbCia = counterIntelligenceActivityRepository.findById(cia.getCiKey()).orElse(null);
|
|
||||||
if(dbCia!=null){
|
|
||||||
dbCia.setFileList(ciaFileRepository.findByCiKey(cia.getCiKey()));
|
|
||||||
dbCia.setSaftyDemandInfo(saftyDemandInfoRepository.findById(cia.getCiKey()).orElse(null));
|
|
||||||
}
|
|
||||||
return dbCia;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
public void saveManageCompany(CounterIntelligenceActivity cia) {
|
public void saveManageCompany(CounterIntelligenceActivity cia) {
|
||||||
ManageCompanyInfo mci = new ManageCompanyInfo();
|
ManageCompanyInfo mci = new ManageCompanyInfo();
|
||||||
mci.setCiKey(cia.getCiKey());
|
mci.setCiKey(cia.getCiKey());
|
||||||
mci.setMgtOrgan(cia.getMgtOrgan());
|
mci.setMgtOrgan(cia.getMgtOrgan());
|
||||||
mci.setCompanyNm(cia.getCompanyNm());
|
mci.setCompanyNm(cia.getCompanyNm());
|
||||||
mci.setCompanyLocation(cia.getCompanyLocation());
|
mci.setCompanyLocation(cia.getCompanyLocation());
|
||||||
mci.setRelatedField(cia.getRelatedField());
|
mci.setRelatedField(cia.getRelatedField());
|
||||||
mci.setDescription(cia.getDescription());
|
mci.setDescription(cia.getDescription());
|
||||||
mci.setCellPhone(cia.getCellPhone());
|
mci.setCellPhone(cia.getCellPhone());
|
||||||
mci.setDepartment(cia.getDepartment());
|
mci.setDepartment(cia.getDepartment());
|
||||||
mci.setName(cia.getName());
|
mci.setName(cia.getName());
|
||||||
manageCompanyInfoRepository.save(mci);
|
manageCompanyInfoRepository.save(mci);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<CounterIntelligenceActivity> selectCiaManageCompanyList(CounterIntelligenceActivity cia) {
|
public List<CounterIntelligenceActivity> selectCiaManageCompanyList(CounterIntelligenceActivity cia) {
|
||||||
return ciMapper.selectCiaManageCompanyList(cia);
|
return ciMapper.selectCiaManageCompanyList(cia);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer selectCiaManageCompanyListCnt(CounterIntelligenceActivity cia) {
|
public Integer selectCiaManageCompanyListCnt(CounterIntelligenceActivity cia) {
|
||||||
return ciMapper.selectCiaManageCompanyListCnt(cia);
|
return ciMapper.selectCiaManageCompanyListCnt(cia);
|
||||||
}
|
}
|
||||||
|
|
||||||
public CounterIntelligenceActivity selectManageCompanyInfo(CounterIntelligenceActivity cia) {
|
|
||||||
CounterIntelligenceActivity dbCia = counterIntelligenceActivityRepository.findById(cia.getCiKey()).orElse(null);
|
|
||||||
if(dbCia!=null){
|
|
||||||
dbCia.setFileList(ciaFileRepository.findByCiKey(cia.getCiKey()));
|
|
||||||
dbCia.setManageCompanyInfo(manageCompanyInfoRepository.findById(cia.getCiKey()).orElse(null));
|
|
||||||
}
|
|
||||||
return dbCia;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
public void saveForeigner(CounterIntelligenceActivity cia) {
|
public void saveForeigner(CounterIntelligenceActivity cia) {
|
||||||
ForeignerInfo fi = new ForeignerInfo();
|
ForeignerInfo fi = new ForeignerInfo();
|
||||||
fi.setCiKey(cia.getCiKey());
|
fi.setCiKey(cia.getCiKey());
|
||||||
fi.setMgtOrgan(cia.getMgtOrgan());
|
fi.setMgtOrgan(cia.getMgtOrgan());
|
||||||
fi.setManager(cia.getManager());
|
fi.setManager(cia.getManager());
|
||||||
fi.setCommuLocation(cia.getCommuLocation());
|
fi.setCommuLocation(cia.getCommuLocation());
|
||||||
fi.setCommuNational(cia.getCommuNational());
|
fi.setCommuNational(cia.getCommuNational());
|
||||||
fi.setCommuAddress(cia.getCommuAddress());
|
fi.setCommuAddress(cia.getCommuAddress());
|
||||||
fi.setSelectReason(cia.getSelectReason());
|
fi.setSelectReason(cia.getSelectReason());
|
||||||
fi.setMonitoringInfo(cia.getMonitoringInfo());
|
fi.setMonitoringInfo(cia.getMonitoringInfo());
|
||||||
fi.setFixDate(cia.getFixDate());
|
fi.setFixDate(cia.getFixDate());
|
||||||
foreignerInfoRepository.save(fi);
|
foreignerInfoRepository.save(fi);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ForeignerInfo> selectCiaForeignerList(CounterIntelligenceActivity cia) {
|
public List<ForeignerInfo> selectCiaForeignerList(CounterIntelligenceActivity cia) {
|
||||||
return ciMapper.selectCiaForeignerList(cia);
|
return ciMapper.selectCiaForeignerList(cia);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer selectCiaForeignerListCnt(CounterIntelligenceActivity cia) {
|
public Integer selectCiaForeignerListCnt(CounterIntelligenceActivity cia) {
|
||||||
return ciMapper.selectCiaForeignerListCnt(cia);
|
return ciMapper.selectCiaForeignerListCnt(cia);
|
||||||
}
|
}
|
||||||
|
|
||||||
public CounterIntelligenceActivity selectForeignerInfo(CounterIntelligenceActivity cia) {
|
|
||||||
CounterIntelligenceActivity dbCia = counterIntelligenceActivityRepository.findById(cia.getCiKey()).orElse(null);
|
|
||||||
if(dbCia!=null){
|
|
||||||
dbCia.setFileList(ciaFileRepository.findByCiKey(cia.getCiKey()));
|
|
||||||
dbCia.setForeignerInfo(foreignerInfoRepository.findById(cia.getCiKey()).orElse(null));
|
|
||||||
}
|
|
||||||
return dbCia;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
public void saveEdu(CounterIntelligenceActivity cia) {
|
public void saveEdu(CounterIntelligenceActivity cia) {
|
||||||
EduInfo ei = new EduInfo();
|
EduInfo ei = new EduInfo();
|
||||||
ei.setCiKey(cia.getCiKey());
|
ei.setCiKey(cia.getCiKey());
|
||||||
ei.setMgtOrgan(cia.getMgtOrgan());
|
ei.setMgtOrgan(cia.getMgtOrgan());
|
||||||
ei.setEduType(cia.getEduType());
|
ei.setEduType(cia.getEduType());
|
||||||
ei.setEduDate(cia.getEduDate());
|
ei.setEduDate(cia.getEduDate());
|
||||||
ei.setPeopleCnt(cia.getPeopleCnt());
|
ei.setPeopleCnt(cia.getPeopleCnt());
|
||||||
ei.setDescription(cia.getDescription());
|
ei.setDescription(cia.getDescription());
|
||||||
eduInfoRepository.save(ei);
|
eduInfoRepository.save(ei);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<CounterIntelligenceActivity> selectCiaEduList(CounterIntelligenceActivity cia) {
|
public List<CounterIntelligenceActivity> selectCiaEduList(CounterIntelligenceActivity cia) {
|
||||||
return ciMapper.selectCiaEduList(cia);
|
return ciMapper.selectCiaEduList(cia);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer selectCiaEduListCnt(CounterIntelligenceActivity cia) {
|
public Integer selectCiaEduListCnt(CounterIntelligenceActivity cia) {
|
||||||
return ciMapper.selectCiaEduListCnt(cia);
|
return ciMapper.selectCiaEduListCnt(cia);
|
||||||
}
|
}
|
||||||
|
|
||||||
public CounterIntelligenceActivity selectEduInfo(CounterIntelligenceActivity cia) {
|
public CounterIntelligenceActivity selectEduInfo(CounterIntelligenceActivity cia) {
|
||||||
CounterIntelligenceActivity dbCia = counterIntelligenceActivityRepository.findById(cia.getCiKey()).orElse(null);
|
CounterIntelligenceActivity dbCia = counterIntelligenceActivityRepository.findById(cia.getCiKey()).orElse(null);
|
||||||
if(dbCia!=null){
|
if(dbCia!=null){
|
||||||
dbCia.setFileList(ciaFileRepository.findByCiKey(cia.getCiKey()));
|
dbCia.setFileList(ciaFileRepository.findByCiKey(cia.getCiKey()));
|
||||||
dbCia.setEduInfo(eduInfoRepository.findById(cia.getCiKey()).orElse(null));
|
dbCia.setEduInfo(eduInfoRepository.findById(cia.getCiKey()).orElse(null));
|
||||||
}
|
}
|
||||||
return dbCia;
|
return dbCia;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CiaFile selectCiaForeignerFile(Integer ciKey,Integer fileSeq) {
|
public CiaFile selectCiaForeignerFile(Integer ciKey,Integer fileSeq) {
|
||||||
return ciaFileRepository.findByCiKeyAndFileSeq(ciKey,fileSeq);
|
return ciaFileRepository.findByCiKeyAndFileSeq(ciKey,fileSeq);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
public void deleteCounterIntelligenceActivity(CounterIntelligenceActivity cia) {
|
public void deleteCounterIntelligenceActivity(CounterIntelligenceActivity cia) {
|
||||||
CounterIntelligenceActivity dbCia = counterIntelligenceActivityRepository.findById(cia.getCiKey()).orElse(null);
|
CounterIntelligenceActivity dbCia = counterIntelligenceActivityRepository.findById(cia.getCiKey()).orElse(null);
|
||||||
dbCia.setContentStatus(cia.getContentStatus());
|
dbCia.setContentStatus(cia.getContentStatus());
|
||||||
counterIntelligenceActivityRepository.save(dbCia);
|
counterIntelligenceActivityRepository.save(dbCia);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public CounterIntelligenceActivity selectCiaInfo(CounterIntelligenceActivity cia) {
|
||||||
|
switch (cia.getCiType()){
|
||||||
|
case "SDI":
|
||||||
|
if(cia.getCiKey() != null){
|
||||||
|
cia = counterIntelligenceActivityRepository.findById(cia.getCiKey()).orElse(new CounterIntelligenceActivity());
|
||||||
|
cia.setFileList(ciaFileRepository.findByCiKey(cia.getCiKey()));
|
||||||
|
cia.setSafetyDemandInfo(safetyDemandInfoRepository.findById(cia.getCiKey()).orElse(new SafetyDemandInfo()));
|
||||||
|
}else{
|
||||||
|
cia.setSafetyDemandInfo(new SafetyDemandInfo());
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "MCI":
|
||||||
|
if(cia.getCiKey() != null){
|
||||||
|
cia = counterIntelligenceActivityRepository.findById(cia.getCiKey()).orElse(new CounterIntelligenceActivity());
|
||||||
|
cia.setFileList(ciaFileRepository.findByCiKey(cia.getCiKey()));
|
||||||
|
cia.setManageCompanyInfo(manageCompanyInfoRepository.findById(cia.getCiKey()).orElse(new ManageCompanyInfo()));
|
||||||
|
}else{
|
||||||
|
cia.setManageCompanyInfo(new ManageCompanyInfo());
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "FI":
|
||||||
|
if(cia.getCiKey() != null){
|
||||||
|
cia = counterIntelligenceActivityRepository.findById(cia.getCiKey()).orElse(new CounterIntelligenceActivity());
|
||||||
|
cia.setFileList(ciaFileRepository.findByCiKey(cia.getCiKey()));
|
||||||
|
cia.setForeignerInfo(foreignerInfoRepository.findById(cia.getCiKey()).orElse(new ForeignerInfo()));
|
||||||
|
}else{
|
||||||
|
cia.setForeignerInfo(new ForeignerInfo());
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "EI":
|
||||||
|
if(cia.getCiKey() != null){
|
||||||
|
cia = counterIntelligenceActivityRepository.findById(cia.getCiKey()).orElse(new CounterIntelligenceActivity());
|
||||||
|
cia.setFileList(ciaFileRepository.findByCiKey(cia.getCiKey()));
|
||||||
|
cia.setEduInfo(eduInfoRepository.findById(cia.getCiKey()).orElse(new EduInfo()));
|
||||||
|
}else{
|
||||||
|
cia.setEduInfo(new EduInfo());
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return cia;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ file.dir.affair.result=/affairResult
|
||||||
file.dir.editor=/editor
|
file.dir.editor=/editor
|
||||||
file.dir.sri=/sri
|
file.dir.sri=/sri
|
||||||
file.dir.ciw=/ciw
|
file.dir.ciw=/ciw
|
||||||
file.dir.cia.safty=/cia/safty
|
file.dir.cia.safety=/cia/safety
|
||||||
file.dir.cia.company=/cia/company
|
file.dir.cia.company=/cia/company
|
||||||
file.dir.cia.foreigner=/cia/foreigner
|
file.dir.cia.foreigner=/cia/foreigner
|
||||||
file.dir.cia.edu=/cia/edu
|
file.dir.cia.edu=/cia/edu
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ file.dir.affair.result=/affairResult
|
||||||
file.dir.editor=/editor
|
file.dir.editor=/editor
|
||||||
file.dir.sri=/sri
|
file.dir.sri=/sri
|
||||||
file.dir.ciw=/ciw
|
file.dir.ciw=/ciw
|
||||||
file.dir.cia.safty=/cia/safty
|
file.dir.cia.safety=/cia/safety
|
||||||
file.dir.cia.company=/cia/company
|
file.dir.cia.company=/cia/company
|
||||||
file.dir.cia.foreigner=/cia/foreigner
|
file.dir.cia.foreigner=/cia/foreigner
|
||||||
file.dir.cia.edu=/cia/edu
|
file.dir.cia.edu=/cia/edu
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ file.dir.affair.result=/affairResult
|
||||||
file.dir.editor=/editor
|
file.dir.editor=/editor
|
||||||
file.dir.sri=/sri
|
file.dir.sri=/sri
|
||||||
file.dir.ciw=/ciw
|
file.dir.ciw=/ciw
|
||||||
file.dir.cia.safty=/cia/safty
|
file.dir.cia.safety=/cia/safety
|
||||||
file.dir.cia.company=/cia/company
|
file.dir.cia.company=/cia/company
|
||||||
file.dir.cia.foreigner=/cia/foreigner
|
file.dir.cia.foreigner=/cia/foreigner
|
||||||
file.dir.cia.edu=/cia/edu
|
file.dir.cia.edu=/cia/edu
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ file.dir.affair.result=/affairResult
|
||||||
file.dir.editor=/editor
|
file.dir.editor=/editor
|
||||||
file.dir.sri=/sri
|
file.dir.sri=/sri
|
||||||
file.dir.ciw=/ciw
|
file.dir.ciw=/ciw
|
||||||
file.dir.cia.safty=/cia/safty
|
file.dir.cia.safety=/cia/safety
|
||||||
file.dir.cia.company=/cia/company
|
file.dir.cia.company=/cia/company
|
||||||
file.dir.cia.foreigner=/cia/foreigner
|
file.dir.cia.foreigner=/cia/foreigner
|
||||||
file.dir.cia.edu=/cia/edu
|
file.dir.cia.edu=/cia/edu
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ file.dir.affair.result=/affairResult
|
||||||
file.dir.editor=/editor
|
file.dir.editor=/editor
|
||||||
file.dir.sri=/sri
|
file.dir.sri=/sri
|
||||||
file.dir.ciw=/ciw
|
file.dir.ciw=/ciw
|
||||||
file.dir.cia.safty=/cia/safty
|
file.dir.cia.safety=/cia/safety
|
||||||
file.dir.cia.company=/cia/company
|
file.dir.cia.company=/cia/company
|
||||||
file.dir.cia.foreigner=/cia/foreigner
|
file.dir.cia.foreigner=/cia/foreigner
|
||||||
file.dir.cia.edu=/cia/edu
|
file.dir.cia.edu=/cia/edu
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<select id="selectCiaSaftyDemandList" parameterType="CounterIntelligenceActivity" resultType="CounterIntelligenceActivity">
|
<select id="selectCiaSafetyDemandList" parameterType="CounterIntelligenceActivity" resultType="CounterIntelligenceActivity">
|
||||||
select cia.ci_key,
|
select cia.ci_key,
|
||||||
(select item_value from code_mgt where item_cd = cia.content_status) as content_status,
|
(select item_value from code_mgt where item_cd = cia.content_status) as content_status,
|
||||||
cia.ci_type,
|
cia.ci_type,
|
||||||
|
|
@ -160,7 +160,7 @@
|
||||||
cia.wrt_user_nm,
|
cia.wrt_user_nm,
|
||||||
cia.wrt_dt
|
cia.wrt_dt
|
||||||
from counter_intelligence_activity cia,
|
from counter_intelligence_activity cia,
|
||||||
safty_demand_info sdi
|
safety_demand_info sdi
|
||||||
where cia.ci_key = sdi.ci_key
|
where cia.ci_key = sdi.ci_key
|
||||||
and cia.content_status != 'DST008'
|
and cia.content_status != 'DST008'
|
||||||
and ((cia.wrt_user_seq = #{wrtUserSeq} and cia.content_status = 'DST001') or cia.content_status = 'DST007')
|
and ((cia.wrt_user_seq = #{wrtUserSeq} and cia.content_status = 'DST001') or cia.content_status = 'DST007')
|
||||||
|
|
@ -184,7 +184,7 @@
|
||||||
LIMIT #{rowCnt} OFFSET #{firstIndex}
|
LIMIT #{rowCnt} OFFSET #{firstIndex}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectCiaSaftyDemandListCnt" parameterType="CounterIntelligenceActivity" resultType="Integer">
|
<select id="selectCiaSafetyDemandListCnt" parameterType="CounterIntelligenceActivity" resultType="Integer">
|
||||||
select count(*)
|
select count(*)
|
||||||
from(
|
from(
|
||||||
select cia.ci_key,
|
select cia.ci_key,
|
||||||
|
|
@ -198,7 +198,7 @@
|
||||||
cia.wrt_user_nm,
|
cia.wrt_user_nm,
|
||||||
cia.wrt_dt
|
cia.wrt_dt
|
||||||
from counter_intelligence_activity cia,
|
from counter_intelligence_activity cia,
|
||||||
safty_demand_info sdi
|
safety_demand_info sdi
|
||||||
where cia.ci_key = sdi.ci_key
|
where cia.ci_key = sdi.ci_key
|
||||||
and cia.content_status != 'DST008'
|
and cia.content_status != 'DST008'
|
||||||
and ((cia.wrt_user_seq = #{wrtUserSeq} and cia.content_status = 'DST001') or cia.content_status = 'DST007')
|
and ((cia.wrt_user_seq = #{wrtUserSeq} and cia.content_status = 'DST001') or cia.content_status = 'DST007')
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@ $(document).on('click', '#addBtn', function (){
|
||||||
|
|
||||||
function getCiaEduEditModal(ciKey){
|
function getCiaEduEditModal(ciKey){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/counterIntelligence/ciaEduEditModal',
|
url: '/counterIntelligence/ciaEditModal',
|
||||||
data: {ciKey: ciKey},
|
data: {ciKey: ciKey, ciType: "EI"},
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType:"html",
|
dataType:"html",
|
||||||
success: function(html){
|
success: function(html){
|
||||||
|
|
@ -78,8 +78,8 @@ $(document).on('click', '.eiTr', function (){
|
||||||
|
|
||||||
function getCiaEduViewModal(ciKey){
|
function getCiaEduViewModal(ciKey){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/counterIntelligence/ciaEduViewModal',
|
url: '/counterIntelligence/ciaViewModal',
|
||||||
data: {ciKey: ciKey},
|
data: {ciKey: ciKey, ciType: "EI"},
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType:"html",
|
dataType:"html",
|
||||||
success: function(html){
|
success: function(html){
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@ $(document).on('click', '#addBtn', function (){
|
||||||
|
|
||||||
function getCiaForeignerEditModal(ciKey){
|
function getCiaForeignerEditModal(ciKey){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/counterIntelligence/ciaForeignerEditModal',
|
url: '/counterIntelligence/ciaEditModal',
|
||||||
data: {ciKey: ciKey},
|
data: {ciKey: ciKey, ciType: "FI"},
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType:"html",
|
dataType:"html",
|
||||||
success: function(html){
|
success: function(html){
|
||||||
|
|
@ -81,8 +81,8 @@ $(document).on('click', '.fiTr', function (){
|
||||||
|
|
||||||
function getCiaForeignerViewModal(ciKey){
|
function getCiaForeignerViewModal(ciKey){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/counterIntelligence/ciaForeignerViewModal',
|
url: '/counterIntelligence/ciaViewModal',
|
||||||
data: {ciKey: ciKey},
|
data: {ciKey: ciKey, ciType: "FI"},
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType:"html",
|
dataType:"html",
|
||||||
success: function(html){
|
success: function(html){
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@ $(document).on('click', '#addBtn', function (){
|
||||||
|
|
||||||
function getCiaManageCompanyEditModal(ciKey){
|
function getCiaManageCompanyEditModal(ciKey){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/counterIntelligence/ciaManageCompanyEditModal',
|
url: '/counterIntelligence/ciaEditModal',
|
||||||
data: {ciKey: ciKey},
|
data: {ciKey: ciKey, ciType: "MCI"},
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType:"html",
|
dataType:"html",
|
||||||
success: function(html){
|
success: function(html){
|
||||||
|
|
@ -73,8 +73,8 @@ $(document).on('click', '.mciTr', function (){
|
||||||
|
|
||||||
function getCiaManageCompanyViewModal(ciKey){
|
function getCiaManageCompanyViewModal(ciKey){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/counterIntelligence/ciaManageCompanyViewModal',
|
url: '/counterIntelligence/ciaViewModal',
|
||||||
data: {ciKey: ciKey},
|
data: {ciKey: ciKey, ciType: "MCI"},
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType:"html",
|
dataType:"html",
|
||||||
success: function(html){
|
success: function(html){
|
||||||
|
|
|
||||||
|
|
@ -7,19 +7,19 @@ $(function(){
|
||||||
})
|
})
|
||||||
|
|
||||||
$(document).on('click', '#addBtn', function (){
|
$(document).on('click', '#addBtn', function (){
|
||||||
getCiaSaftyDemandEditModal(null);
|
getCiaSafetyDemandEditModal(null);
|
||||||
})
|
})
|
||||||
|
|
||||||
function getCiaSaftyDemandEditModal(ciKey){
|
function getCiaSafetyDemandEditModal(ciKey){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/counterIntelligence/ciaSaftyDemandEditModal',
|
url: '/counterIntelligence/ciaEditModal',
|
||||||
data: {ciKey: ciKey},
|
data: {ciKey: ciKey, ciType: "SDI"},
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType:"html",
|
dataType:"html",
|
||||||
success: function(html){
|
success: function(html){
|
||||||
$("#ciaSaftyDemandEditModalContent").empty().append(html)
|
$("#ciaSafetyDemandEditModalContent").empty().append(html)
|
||||||
setUploadDiv();
|
setUploadDiv();
|
||||||
$("#ciaSaftyDemandEditModal").modal('show');
|
$("#ciaSafetyDemandEditModal").modal('show');
|
||||||
},
|
},
|
||||||
error:function(e){
|
error:function(e){
|
||||||
ajaxErrorAction(e);
|
ajaxErrorAction(e);
|
||||||
|
|
@ -29,18 +29,18 @@ function getCiaSaftyDemandEditModal(ciKey){
|
||||||
|
|
||||||
$(document).on('click', '#saveBtn', function (){
|
$(document).on('click', '#saveBtn', function (){
|
||||||
if(confirm("저장하시겠습니까?")){
|
if(confirm("저장하시겠습니까?")){
|
||||||
save('DST007');
|
saveCia('DST007');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
$(document).on('click', '#saveTempBtn', function (){
|
$(document).on('click', '#saveTempBtn', function (){
|
||||||
if(confirm("임시저장 하시겠습니까?")){
|
if(confirm("임시저장 하시겠습니까?")){
|
||||||
save('DST001');
|
saveCia('DST001');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
function save(contentStatus){
|
function saveCia(contentStatus){
|
||||||
const formData = new FormData($("#ciaSaftyDemandEditForm")[0]);
|
const formData = new FormData($("#ciaSafetyDemandEditForm")[0]);
|
||||||
for(const file of files) {
|
for(const file of files) {
|
||||||
if(!file.isDelete)
|
if(!file.isDelete)
|
||||||
formData.append('uploadFiles', file, file.name);
|
formData.append('uploadFiles', file, file.name);
|
||||||
|
|
@ -90,18 +90,18 @@ $(document).on('click', '#deleteBtn', function (){
|
||||||
})
|
})
|
||||||
|
|
||||||
$(document).on('click', '.sdiTr', function (){
|
$(document).on('click', '.sdiTr', function (){
|
||||||
getCiaSaftyDemandViewModal($(this).find(".ciKey").val());
|
getCiaSafetyDemandViewModal($(this).find(".ciKey").val());
|
||||||
})
|
})
|
||||||
|
|
||||||
function getCiaSaftyDemandViewModal(ciKey){
|
function getCiaSafetyDemandViewModal(ciKey){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/counterIntelligence/ciaSaftyDemandViewModal',
|
url: '/counterIntelligence/ciaViewModal',
|
||||||
data: {ciKey: ciKey},
|
data: {ciKey: ciKey, ciType: "SDI"},
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType:"html",
|
dataType:"html",
|
||||||
success: function(html){
|
success: function(html){
|
||||||
$("#ciaSaftyDemandViewModalBody").empty().append(html)
|
$("#ciaSafetyDemandViewModalBody").empty().append(html)
|
||||||
$("#ciaSaftyDemandViewModal").modal('show');
|
$("#ciaSafetyDemandViewModal").modal('show');
|
||||||
},
|
},
|
||||||
error:function(e){
|
error:function(e){
|
||||||
ajaxErrorAction(e);
|
ajaxErrorAction(e);
|
||||||
|
|
@ -110,8 +110,8 @@ function getCiaSaftyDemandViewModal(ciKey){
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).on('click', '#editBtn', function (){
|
$(document).on('click', '#editBtn', function (){
|
||||||
$("#ciaSaftyDemandViewModal").modal('hide');
|
$("#ciaSafetyDemandViewModal").modal('hide');
|
||||||
getCiaSaftyDemandEditModal($(this).attr("data-cikey"));
|
getCiaSafetyDemandEditModal($(this).attr("data-cikey"));
|
||||||
})
|
})
|
||||||
|
|
||||||
$(document).on('click', '#excelDown', function (){
|
$(document).on('click', '#excelDown', function (){
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
|
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body" id="ivsgtEditBody">
|
<div class="modal-body" id="ivsgtEditBody">
|
||||||
<form action="#" method="post" id="ciaSaftyDemandEditForm">
|
<form action="#" method="post" id="ciaSafetyDemandEditForm">
|
||||||
<input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
|
<input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
|
||||||
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
|
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
|
||||||
<input type="hidden" name="ciType" value="SDI">
|
<input type="hidden" name="ciType" value="SDI">
|
||||||
|
|
@ -29,13 +29,13 @@
|
||||||
<div class="row mb-1">
|
<div class="row mb-1">
|
||||||
<label class="col-sm-1 col-form-label col-form-label-sm text-center">지역특성</label>
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center">지역특성</label>
|
||||||
<div class="col-sm-11">
|
<div class="col-sm-11">
|
||||||
<textarea class="form-control form-control-sm" rows="5" cols="30" name="localInfo" th:utext="${cia.saftyDemandInfo.localInfo}"></textarea>
|
<textarea class="form-control form-control-sm" rows="5" cols="30" name="localInfo" th:utext="${cia.safetyDemandInfo.localInfo}"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row mb-1">
|
<div class="row mb-1">
|
||||||
<label class="col-sm-1 col-form-label col-form-label-sm text-center">예상<br>문제점</label>
|
<label class="col-sm-1 col-form-label col-form-label-sm text-center">예상<br>문제점</label>
|
||||||
<div class="col-sm-11">
|
<div class="col-sm-11">
|
||||||
<textarea class="form-control form-control-sm" rows="5" cols="30" name="outlookProblem" th:utext="${cia.saftyDemandInfo.outlookProblem}"></textarea>
|
<textarea class="form-control form-control-sm" rows="5" cols="30" name="outlookProblem" th:utext="${cia.safetyDemandInfo.outlookProblem}"></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row mb-1">
|
<div class="row mb-1">
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||||
layout:decorate="~{layout/layout}">
|
layout:decorate="~{layout/layout}">
|
||||||
<th:block layout:fragment="script">
|
<th:block layout:fragment="script">
|
||||||
<script type="text/javascript" th:src="@{/js/counterIntelligence/ciaSaftyDemand.js}"></script>
|
<script type="text/javascript" th:src="@{/js/counterIntelligence/ciaSafetyDemand.js}"></script>
|
||||||
</th:block>
|
</th:block>
|
||||||
<div layout:fragment="content">
|
<div layout:fragment="content">
|
||||||
<main>
|
<main>
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
<div class="col-12 card bg-light text-center">
|
<div class="col-12 card bg-light text-center">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="tab-content bg-white border border-top-0 p-2">
|
<div class="tab-content bg-white border border-top-0 p-2">
|
||||||
<form method="get" th:action="@{/counterIntelligence/ciaSaftyDemandList}">
|
<form method="get" th:action="@{/counterIntelligence/ciaSafetyDemandList}">
|
||||||
<input type="hidden" name="pageIndex" id="pageIndex" th:value="${searchParams.pageIndex}">
|
<input type="hidden" name="pageIndex" id="pageIndex" th:value="${searchParams.pageIndex}">
|
||||||
<div class="row justify-content-between py-1">
|
<div class="row justify-content-between py-1">
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
|
|
@ -142,16 +142,16 @@
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<div class="modal fade" id="ciaSaftyDemandEditModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="ciWorkModalLabel" aria-hidden="true">
|
<div class="modal fade" id="ciaSafetyDemandEditModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="ciWorkModalLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog modal-lg modal-dialog-scrollable">
|
<div class="modal-dialog modal-lg modal-dialog-scrollable">
|
||||||
<div class="modal-content" id="ciaSaftyDemandEditModalContent">
|
<div class="modal-content" id="ciaSafetyDemandEditModalContent">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal fade" id="ciaSaftyDemandViewModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="ciWorkModalLabel" aria-hidden="true">
|
<div class="modal fade" id="ciaSafetyDemandViewModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="ciWorkModalLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog modal-lg modal-dialog-scrollable">
|
<div class="modal-dialog modal-lg modal-dialog-scrollable">
|
||||||
<div class="modal-content" id="ciaSaftyDemandViewModalBody">
|
<div class="modal-content" id="ciaSafetyDemandViewModalBody">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
|
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
|
||||||
<div class="modal-header bg-dark">
|
<div class="modal-header bg-dark">
|
||||||
<h5 class="modal-title text-white" id="ciaSaftyDemandViewModalLabel">치안수요 열람</h5>
|
<h5 class="modal-title text-white" id="ciaSafetyDemandViewModalLabel">치안수요 열람</h5>
|
||||||
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
|
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
|
<input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
|
||||||
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
|
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
|
||||||
<div class="modal-body" id="ciaSaftyDemandViewBody">
|
<div class="modal-body" id="ciaSafetyDemandViewBody">
|
||||||
<ul class="nav nav-tabs" id="userTab" role="tablist">
|
<ul class="nav nav-tabs" id="userTab" role="tablist">
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<button class="nav-link active" id="boardTab" data-bs-toggle="tab" data-bs-target="#boardTabPanel" type="button" role="tab" aria-controls="boardTabPanel" aria-selected="true">본문</button>
|
<button class="nav-link active" id="boardTab" data-bs-toggle="tab" data-bs-target="#boardTabPanel" type="button" role="tab" aria-controls="boardTabPanel" aria-selected="true">본문</button>
|
||||||
|
|
@ -22,20 +22,20 @@
|
||||||
<label class="col-sm-3 col-form-label col-form-label-sm text-start" th:text="${#temporals.format(cia.wrtDt, 'yyyy-MM-dd HH:mm')}"></label>
|
<label class="col-sm-3 col-form-label col-form-label-sm text-start" th:text="${#temporals.format(cia.wrtDt, 'yyyy-MM-dd HH:mm')}"></label>
|
||||||
<label class="col-sm-2 col-form-label col-form-label-sm text-center fw-bold">작성자</label>
|
<label class="col-sm-2 col-form-label col-form-label-sm text-center fw-bold">작성자</label>
|
||||||
<label class="col-sm-5 col-form-label col-form-label-sm text-start">
|
<label class="col-sm-5 col-form-label col-form-label-sm text-start">
|
||||||
<th:block th:each="commonCode:${session.commonCode.get('JT')}">
|
<th:block th:each="code:${session.commonCode.get('JT')}">
|
||||||
<option th:value="${commonCode.itemCd}" th:if="${commonCode.itemCd eq cia.wrtUserGrd}" th:text="|${commonCode.itemValue} ${cia.wrtUserNm}|"></option>
|
<option th:value="${code.itemCd}" th:if="${code.itemCd eq cia.wrtUserGrd}" th:text="|${code.itemValue} ${cia.wrtUserNm}|"></option>
|
||||||
</th:block>
|
</th:block>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<hr class="my-1">
|
<hr class="my-1">
|
||||||
<div class="row mb-1">
|
<div class="row mb-1">
|
||||||
<label class="col-sm-2 col-form-label col-form-label-sm text-center fw-bold">지역특성</label>
|
<label class="col-sm-2 col-form-label col-form-label-sm text-center fw-bold">지역특성</label>
|
||||||
<div class="col-sm-10 form-control-sm" th:utext="${#strings.replace(cia.saftyDemandInfo.localInfo, lineSeparator, '<br>')}"></div>
|
<div class="col-sm-10 form-control-sm" th:utext="${#strings.replace(cia.safetyDemandInfo.localInfo, lineSeparator, '<br>')}"></div>
|
||||||
</div>
|
</div>
|
||||||
<hr class="my-1">
|
<hr class="my-1">
|
||||||
<div class="row mb-1">
|
<div class="row mb-1">
|
||||||
<label class="col-sm-2 col-form-label col-form-label-sm text-center fw-bold">예상문제점</label>
|
<label class="col-sm-2 col-form-label col-form-label-sm text-center fw-bold">예상문제점</label>
|
||||||
<div class="col-sm-10 form-control-sm" th:utext="${#strings.replace(cia.saftyDemandInfo.outlookProblem, lineSeparator, '<br>')}"></div>
|
<div class="col-sm-10 form-control-sm" th:utext="${#strings.replace(cia.safetyDemandInfo.outlookProblem, lineSeparator, '<br>')}"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade p-2" id="fileTabPanel" role="tabpanel" tabindex="0">
|
<div class="tab-pane fade p-2" id="fileTabPanel" role="tabpanel" tabindex="0">
|
||||||
Loading…
Reference in New Issue