Merge remote-tracking branch 'origin/main'

main
Jonguk. Lim 8 months ago
commit 91f758d993

@ -21,8 +21,18 @@ public class CtgyConstants {
RESULT_JUDGE_PRE("0", "심의전"), RESULT_JUDGE_PRE("0", "심의전"),
RESULT_JUDGE_NON_IMPOSE("1", "미부과"), RESULT_JUDGE_NON_IMPOSE("1", "미부과"),
RESULT_JUDGE_IMPOSE("2", "부과"), RESULT_JUDGE_IMPOSE("2", "부과"),
RESULT_STATE_NON_IMPOSE("3", "과태료 부과여부 ‘과태료 부과하지 않음’으로 결정되었음을 알려드리며 향후 동일한 내용으로 진술시 부과 될 수 있음을 알려드립니다."), RESULT_STATE_NON_IMPOSE("3", "귀하께서 제출하신 의견진술 심의 요청에 대하여, 강남구 불법주정차 의견진술 심의 결과, 주차장법 제9조 제3항에 " +
RESULT_STATE_IMPOSE("4", "귀하께서 제출하신 의견진술 심의요청에 대하여 강남구 불법주정차 의견진술 심의위원회의 심의결과 ‘과태료 부과’로 결정되었음을 알려드립니다."), "의거 단속대상이나, 금번에 한하여 「가산금 부과하지 않음」으로 결정되었습니다. 이후에는 지정된 주차공간에 주차하여 " +
"원활한 교통 소통 및 시민의 안전을 위해 노력해 주시기 바랍니다."),
RESULT_STATE_IMPOSE("4", "귀하께서 제출하신 의견진술 심의 요청에 대하여, 강남구 불법주정차 의견진술 심의위원회 심의 결과, " +
"의견진술 내용은 이해가 되나, 자동차 교통을 원활케 한 시민 편의와 안전을 위하여, " +
"주차장법 제9조 제3항 및 서울특별시 강남구 주차장 설치 및 관리 조례 제6조 제1, 2항 등에 의거하여 「가산금 부과」로 결정되었습니다."),
RESULT_STATE_DISABLED_NON_IMPOSE("3", "귀하께서 제출하신 의견진술 심의 요청에 대하여, 강남구 불법주정차 의견진술 심의위원회 심의 결과, " +
"장애인등편의증진보장에관한법률 제17조 등에 의거 단속대상이나, 금번에 한하여 「과태료 부과하지 않음」으로 결정되었습니다. " +
"이후에는 지정된 주차공간에 주차하여 원활한 교통 소통 및 시민의 안전을 위해 노력해 주시기 바랍니다."),
RESULT_STATE_DISABLED_IMPOSE("4", "귀하께서 제출하신 의견진술 심의 요청에 대하여, 강남구 불법주정차 의견진술 심의위원회 심의 결과, " +
"의견진술 내용은 이해가 되나, 보행 장애인의 안전하고 편리한 시설 이용 및 접근을 위하여 장애인등편의증진보장에관한법률 제17조 등에 의거 「과태료 부과」로 결정되었습니다. " +
"심의결과에 이의가 있으시면 과태료 고지서를 받은 날로부터 60일 이내에 이의신청[문의 : 02)3423-6426]을 하실 수 있음을 알려드립니다."),
// 데이타구분 // 데이타구분
DATAGB_RESIDENT("1", "거주자"), DATAGB_RESIDENT("1", "거주자"),
DATAGB_DISABLED("2", "장애인") DATAGB_DISABLED("2", "장애인")

@ -48,8 +48,9 @@ public class MinPasswordEncoder implements PasswordEncoder {
this.logger.warn("Empty encoded password"); this.logger.warn("Empty encoded password");
return false; return false;
} }
//23.05.11 jhseo - DB 복호화 처리로 인하여 별도 암호화 하지 않고 비교 처리
return Objects.equals(minUserinfoDao.queryGetPasswdEncode(rawPassword.toString()), encodedPassword); // return Objects.equals(minUserinfoDao.queryGetPasswdEncode(rawPassword.toString()), encodedPassword);
return Objects.equals(rawPassword.toString(), encodedPassword);
} }
/** /**

@ -177,9 +177,15 @@ public class ResidentAndDisabledController {
@Secured(policy = SecurityPolicy.TOKEN) @Secured(policy = SecurityPolicy.TOKEN)
@Operation(summary = "dashboard" , description = "dashboard") @Operation(summary = "dashboard" , description = "dashboard")
@Parameters({
@Parameter(in = ParameterIn.QUERY, name = "accesstype", description = "사용구분(001-관리자, 002-심사자)", required = true, example = " ")
})
@GetMapping(value="/dashboard", produces = MediaType.APPLICATION_JSON_VALUE) @GetMapping(value="/dashboard", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<? extends IRestResponse> getDashboard() { public ResponseEntity<? extends IRestResponse> getDashboard(
return RestResponse.of(service.findDashboard()); @Valid
@Parameter(hidden = true)
final MinUserinfoDto dto) {
return RestResponse.of(service.findDashboard(dto));
} }
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
// 심사자 // 심사자

@ -216,8 +216,9 @@ public class ParkingDao extends BaseMpowerDaoSupport {
delete(sql); delete(sql);
} }
public List<DashboardJudgeListDto> findDashboardJudgeList() { public List<DashboardJudgeListDto> findDashboardJudgeList(MinUserinfoDto dto) {
final String sql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectDashboardJudgeList") final String sql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectDashboardJudgeList")
.setParameter("accesstype", dto.getAccesstype())
.getQueryString(); .getQueryString();
final String fieldStrs = "msEdate, msuTeam, name, jcnt, tcnt"; final String fieldStrs = "msEdate, msuTeam, name, jcnt, tcnt";
return selectList(DashboardJudgeListDto.class, sql, fieldStrs); return selectList(DashboardJudgeListDto.class, sql, fieldStrs);

@ -297,9 +297,10 @@ public class ResidentAndDisabledDao extends BaseMpowerDaoSupport {
} }
public List<DashboardJudgeListDto> findDashboardJudgeList(@NotNull final String msDatagb) { public List<DashboardJudgeListDto> findDashboardJudgeList(@NotNull final String msDatagb, MinUserinfoDto dto) {
final String sql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectDashboardJudgeList") final String sql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectDashboardJudgeList")
.setParameter("msDatagb", msDatagb) .setParameter("msDatagb", msDatagb)
.setParameter("accesstype", dto.getAccesstype())
.getQueryString(); .getQueryString();
final String fieldStrs = "msEdate, msuTeam, name, jcnt, tcnt"; final String fieldStrs = "msEdate, msuTeam, name, jcnt, tcnt";
return selectList(DashboardJudgeListDto.class, sql, fieldStrs); return selectList(DashboardJudgeListDto.class, sql, fieldStrs);

@ -111,7 +111,7 @@ public class UserDao extends BaseMpowerDaoSupport {
.setParameter("email", dto.getEmail()) .setParameter("email", dto.getEmail())
.setParameter("mphone", dto.getMphone()) .setParameter("mphone", dto.getMphone())
.setParameter("name", dto.getName()) .setParameter("name", dto.getName())
//.setParameter("passwd", dto.getPasswd()) .setParameter("passwd", dto.getPasswd())
.setParameter("team", dto.getTeam()) .setParameter("team", dto.getTeam())
.getQueryString(); .getQueryString();
update(sql); update(sql);

@ -46,7 +46,7 @@ public class UserSubDao extends BaseMpowerDaoSupport {
.setParameter("email", dto.getEmail()) .setParameter("email", dto.getEmail())
.setParameter("mphone", dto.getMphone()) .setParameter("mphone", dto.getMphone())
.setParameter("name", dto.getName()) .setParameter("name", dto.getName())
//.setParameter("passwd", dto.getPasswd()) .setParameter("passwd", dto.getPasswd())
.setParameter("team", dto.getTeam()) .setParameter("team", dto.getTeam())
.getQueryString(); .getQueryString();
update(sql); update(sql);

@ -77,7 +77,7 @@ public interface IResidentAndDisabledService {
void saveJudgeStds(final JudgeStdDto dto); void saveJudgeStds(final JudgeStdDto dto);
Map<String,Object> findDashboard(); Map<String,Object> findDashboard(MinUserinfoDto dto);
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
// 심사자 // 심사자

@ -63,7 +63,10 @@ public class MinUserService implements IMinUserService {
@Override @Override
//@Transactional //@Transactional
public void removeMinUser(MinUserinfoDto dto) { public void removeMinUser(MinUserinfoDto dto) {
dto.setIsenable("0"); if("0".equals(dto.getIsenable()))
dto.setIsenable("1");
else
dto.setIsenable("0");
userDao.removeMinUserinfo(dto); userDao.removeMinUserinfo(dto);
userSubDao.removeMinUserinfo(dto); userSubDao.removeMinUserinfo(dto);
} }

@ -274,11 +274,21 @@ public class ResidentAndDisabledService implements IResidentAndDisabledService {
String scState = ""; String scState = "";
String scAnswer = ""; String scAnswer = "";
if("1".equals(msResult)){ if("1".equals(msResult)){
scState = CtgyConstants.Judge.RESULT_STATE_NON_IMPOSE.getCode(); if("2".equals(dto.getDataGb())){
scAnswer = CtgyConstants.Judge.RESULT_STATE_NON_IMPOSE.getDesc(); scState = CtgyConstants.Judge.RESULT_STATE_DISABLED_NON_IMPOSE.getCode();
scAnswer = CtgyConstants.Judge.RESULT_STATE_DISABLED_NON_IMPOSE.getDesc();
}else{
scState = CtgyConstants.Judge.RESULT_STATE_NON_IMPOSE.getCode();
scAnswer = CtgyConstants.Judge.RESULT_STATE_NON_IMPOSE.getDesc();
}
}else if("2".equals(msResult)){ }else if("2".equals(msResult)){
scState = CtgyConstants.Judge.RESULT_STATE_IMPOSE.getCode(); if("2".equals(dto.getDataGb())){
scAnswer = CtgyConstants.Judge.RESULT_STATE_IMPOSE.getDesc(); scState = CtgyConstants.Judge.RESULT_STATE_DISABLED_IMPOSE.getCode();
scAnswer = CtgyConstants.Judge.RESULT_STATE_DISABLED_IMPOSE.getDesc();
}else{
scState = CtgyConstants.Judge.RESULT_STATE_IMPOSE.getCode();
scAnswer = CtgyConstants.Judge.RESULT_STATE_IMPOSE.getDesc();
}
} }
residentAndDisabledDao.updateState(msMaincode, msSeq, scState, scAnswer); residentAndDisabledDao.updateState(msMaincode, msSeq, scState, scAnswer);
} }
@ -286,13 +296,13 @@ public class ResidentAndDisabledService implements IResidentAndDisabledService {
} }
//@Transactional(readOnly = true) //@Transactional(readOnly = true)
public Map<String,Object> findDashboard(){ public Map<String,Object> findDashboard(MinUserinfoDto dto){
Map<String, Object> resultMap = new HashMap<>(); Map<String, Object> resultMap = new HashMap<>();
resultMap.put("pBoardList", publicBoardDao.findAll(new MinInfoBoard680Dto(), PageRequest.of(0, 7))); resultMap.put("pBoardList", publicBoardDao.findAll(new MinInfoBoard680Dto(), PageRequest.of(0, 7)));
resultMap.put("parkJudgeList", parkingDao.findDashboardJudgeList()); resultMap.put("parkJudgeList", parkingDao.findDashboardJudgeList(dto));
resultMap.put("residentJudgeList", residentAndDisabledDao.findDashboardJudgeList(CtgyConstants.Judge.DATAGB_RESIDENT.getCode())); resultMap.put("residentJudgeList", residentAndDisabledDao.findDashboardJudgeList(CtgyConstants.Judge.DATAGB_RESIDENT.getCode(), dto));
resultMap.put("disabledJudgeList", residentAndDisabledDao.findDashboardJudgeList(CtgyConstants.Judge.DATAGB_DISABLED.getCode())); resultMap.put("disabledJudgeList", residentAndDisabledDao.findDashboardJudgeList(CtgyConstants.Judge.DATAGB_DISABLED.getCode(), dto));
return resultMap; return resultMap;
} }

@ -3,7 +3,7 @@ spring:
name: xit-framework name: xit-framework
#description: XIT api for development #description: XIT api for development
profiles: profiles:
active: local active: prod
include: oauth include: oauth
main: main:
# bean name 중복 허용 - junit 사용시 true?? # bean name 중복 허용 - junit 사용시 true??

@ -4,7 +4,7 @@
<native-query id="selectUserInfo"> <native-query id="selectUserInfo">
/* minuserinfo-mapper|selectUserInfo|julim */ /* minuserinfo-mapper|selectUserInfo|julim */
SELECT userid, SELECT userid,
passwd, TRAFFIC.ECL_DECRYPT(passwd) AS passwd,
name, name,
regnum, regnum,
mphone, mphone,
@ -38,7 +38,7 @@
, gu , gu
, isenable , isenable
, mphone , mphone
, passwd , TRAFFIC.ECL_DECRYPT(passwd) AS passwd
, regdate , regdate
, regnum , regnum
, team , team
@ -57,7 +57,7 @@
, isenable , isenable
, mphone , mphone
, name , name
, passwd , TRAFFIC.ECL_DECRYPT(passwd) AS passwd
, regdate , regdate
, regnum , regnum
, team , team
@ -138,6 +138,7 @@
, name = #{name} , name = #{name}
, mphone = #{mphone} , mphone = #{mphone}
, email = #{email} , email = #{email}
, passwd = #{passwd}
WHERE userid= #{userid} WHERE userid= #{userid}
</native-query> </native-query>

@ -37,6 +37,7 @@
, name = #{name} , name = #{name}
, mphone = #{mphone} , mphone = #{mphone}
, email = #{email} , email = #{email}
, passwd = #{passwd}
WHERE userid= #{userid} WHERE userid= #{userid}
</native-query> </native-query>

@ -326,7 +326,7 @@
/* parking-mapper|selectDashboardJudgeList|julim */ /* parking-mapper|selectDashboardJudgeList|julim */
SELECT MS.ms_edate SELECT MS.ms_edate
, MSU.msu_team , MSU.msu_team
, MU.name , DECODE(#{accesstype}, '001', MU.name, '002', REGEXP_REPLACE(MU.name, '.', '*', 2)) name
, SUM(DECODE(MSU.msu_result, '1', 1, '2', 1, 0)) jcnt , SUM(DECODE(MSU.msu_result, '1', 1, '2', 1, 0)) jcnt
, COUNT(*) tcnt , COUNT(*) tcnt
FROM min_simsa680 MS FROM min_simsa680 MS
@ -350,7 +350,7 @@
/* parking-mapper|selectByUserJudgeList|julim */ /* parking-mapper|selectByUserJudgeList|julim */
SELECT MS.ms_maincode SELECT MS.ms_maincode
, MS.ms_seq , MS.ms_seq
, MS.ms_carnum , REGEXP_REPLACE(MS.ms_carnum, '.', '*', 4) as ms_carnum
, DECODE(MS.ms_result, '1', '1', '2', '2', '0') as msResult , DECODE(MS.ms_result, '1', '1', '2', '2', '0') as msResult
, MS.ms_year , MS.ms_year
, MS.ms_chasu , MS.ms_chasu

@ -170,7 +170,7 @@
sc_state sc_state
) VALUES ( ) VALUES (
gn_recall_sc_seq.NEXTVAL, gn_recall_sc_seq.NEXTVAL,
(SELECT RPAD(NVL(MAX(e.sc_seq), '2022'), 10, '0') + 1 (SELECT RPAD(NVL(MAX(e.sc_seq), #{curYear}), 10, '0') + 1
FROM gn_recall_sc e FROM gn_recall_sc e
WHERE e.sc_datagb = #{scDatagb} WHERE e.sc_datagb = #{scDatagb}
AND e.sc_seq LIKE #{curYear} ||'%'), AND e.sc_seq LIKE #{curYear} ||'%'),
@ -585,7 +585,7 @@
/* residentAndDisabled-mapper|selectDashboardJudgeList|julim */ /* residentAndDisabled-mapper|selectDashboardJudgeList|julim */
SELECT MS.ms_edate SELECT MS.ms_edate
, MSU.msu_team , MSU.msu_team
, MU.name , DECODE(#{accesstype}, '001', MU.name, '002', REGEXP_REPLACE(MU.name, '.', '*', 2)) name
, SUM(DECODE(MSU.msu_result, '1', 1, '2', 1, 0)) jcnt , SUM(DECODE(MSU.msu_result, '1', 1, '2', 1, 0)) jcnt
, COUNT(*) tcnt , COUNT(*) tcnt
FROM min_simsa680_sc MS FROM min_simsa680_sc MS
@ -611,7 +611,7 @@
/* residentAndDisabled-mapper|selectByUserJudgeList|julim */ /* residentAndDisabled-mapper|selectByUserJudgeList|julim */
SELECT MS.ms_maincode SELECT MS.ms_maincode
, MS.ms_seq , MS.ms_seq
, MS.ms_carnum , REGEXP_REPLACE(MS.ms_carnum, '.', '*', 4) as ms_carnum
, DECODE(MS.ms_result, '1', '1', '2', '2', '0') as msResult , DECODE(MS.ms_result, '1', '1', '2', '2', '0') as msResult
, MS.ms_year , MS.ms_year
, MS.ms_chasu , MS.ms_chasu

Loading…
Cancel
Save