조회조건 오류수정

master
강석 최 2023-03-28 17:35:43 +09:00
parent 903973a873
commit 4adb172593
4 changed files with 14 additions and 11 deletions

View File

@ -215,7 +215,8 @@ public class EquipController {
@GetMapping("/cellPhoneList") @GetMapping("/cellPhoneList")
public ModelAndView cellPhoneList(@AuthenticationPrincipal UserInfo loginUser,CellPhone cellPhone,HttpServletResponse response) { public ModelAndView cellPhoneList(@AuthenticationPrincipal UserInfo loginUser,CellPhone cellPhone,HttpServletResponse response) {
ModelAndView mav = new ModelAndView("equip/cellPhoneList"); ModelAndView mav = new ModelAndView("equip/cellPhoneList");
cellPhone.setDownOrganCdList(loginUser.getDownOrganCdList()); /*230328 전체공개 요청으로 조건 주석처리*/
/*cellPhone.setDownOrganCdList(loginUser.getDownOrganCdList());*/
//엑셀다운 //엑셀다운
if(cellPhone.getExcel() != null && cellPhone.getExcel().equals("Y")){ if(cellPhone.getExcel() != null && cellPhone.getExcel().equals("Y")){
String[] headers = { "phone_key", "sosok", "tel_no", "user_nm", "ext_mail", "webex_no", "katalk_id"}; String[] headers = { "phone_key", "sosok", "tel_no", "user_nm", "ext_mail", "webex_no", "katalk_id"};

View File

@ -88,11 +88,12 @@ public class FipTargetController {
//메뉴권한 확인 //메뉴권한 확인
String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/target/partInfoList").get(0).getAccessAuth(); String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/target/partInfoList").get(0).getAccessAuth();
mav.addObject("accessAuth", accessAuth); mav.addObject("accessAuth", accessAuth);
if(accessAuth.equals("ACC003")){ /*230328 전체공유로 변경되어 조건 주석처리*/
/*if(accessAuth.equals("ACC003")){
partInfo.setDownOrganCdList(loginUser.getDownOrganCdList()); partInfo.setDownOrganCdList(loginUser.getDownOrganCdList());
}else{ }else{
partInfo.setMgtOrgan(loginUser.getOgCd()); partInfo.setMgtOrgan(loginUser.getOgCd());
} }*/
partInfo.setQueryInfo(); partInfo.setQueryInfo();
mav.addObject("total", fipTargetService.selectWorkTypeTotal(partInfo)); mav.addObject("total", fipTargetService.selectWorkTypeTotal(partInfo));
mav.addObject("partInfoList", fipTargetService.selectPartInfoList(partInfo)); mav.addObject("partInfoList", fipTargetService.selectPartInfoList(partInfo));
@ -513,7 +514,8 @@ public class FipTargetController {
@GetMapping("/ipShipList") @GetMapping("/ipShipList")
public ModelAndView ipShipList(@AuthenticationPrincipal UserInfo loginUser, ShipInfo shipInfo, HttpServletResponse response) { public ModelAndView ipShipList(@AuthenticationPrincipal UserInfo loginUser, ShipInfo shipInfo, HttpServletResponse response) {
ModelAndView mav = new ModelAndView("fipTarget/ipShipList"); ModelAndView mav = new ModelAndView("fipTarget/ipShipList");
shipInfo.setDownOrganCdList(loginUser.getDownOrganCdList());
/*shipInfo.setDownOrganCdList(loginUser.getDownOrganCdList());*/
//엑셀다운 //엑셀다운
if(shipInfo.getExcel() != null && shipInfo.getExcel().equals("Y")){ if(shipInfo.getExcel() != null && shipInfo.getExcel().equals("Y")){

View File

@ -410,10 +410,12 @@
<sql id="selectCellPhoneListWhere"> <sql id="selectCellPhoneListWhere">
where cm.mgt_organ = oc.organ_cd where cm.mgt_organ = oc.organ_cd
and cm.p_user_seq = ui.user_seq and cm.p_user_seq = ui.user_seq
<if test='downOrganCdList != null'>
and cm.mgt_organ in and cm.mgt_organ in
<foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")"> <foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")">
#{item} #{item}
</foreach> </foreach>
</if>
<if test='mgtOrgan != null and mgtOrgan != ""'> <if test='mgtOrgan != null and mgtOrgan != ""'>
and cm.mgt_organ = #{mgtOrgan} and cm.mgt_organ = #{mgtOrgan}
</if> </if>

View File

@ -45,10 +45,8 @@
<select class="form-select form-select-sm" name="mgtOrgan"> <select class="form-select form-select-sm" name="mgtOrgan">
<option value="">소속</option> <option value="">소속</option>
<th:block th:each="code:${session.commonCode.get('OG')}"> <th:block th:each="code:${session.commonCode.get('OG')}">
<th:block th:if="${#lists.contains(searchParams.downOrganCdList, code.itemCd)}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq searchParams.mgtOrgan}"></option> <option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq searchParams.mgtOrgan}"></option>
</th:block> </th:block>
</th:block>
</select> </select>
</div> </div>
<div class="col-2"> <div class="col-2">