|
|
@ -1,7 +1,5 @@
|
|
|
|
package com.xit.biz.ctgy.v2.repository;
|
|
|
|
package com.xit.biz.ctgy.v2.repository;
|
|
|
|
|
|
|
|
|
|
|
|
import com.querydsl.core.BooleanBuilder;
|
|
|
|
|
|
|
|
import com.querydsl.core.types.Projections;
|
|
|
|
|
|
|
|
import com.xit.biz.ctgy.dto.DashboardJudgeListDto;
|
|
|
|
import com.xit.biz.ctgy.dto.DashboardJudgeListDto;
|
|
|
|
import com.xit.biz.ctgy.dto.GnRecallScDto;
|
|
|
|
import com.xit.biz.ctgy.dto.GnRecallScDto;
|
|
|
|
import com.xit.biz.ctgy.dto.JudgeListDto;
|
|
|
|
import com.xit.biz.ctgy.dto.JudgeListDto;
|
|
|
@ -19,10 +17,6 @@ import java.time.LocalDate;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
import static com.xit.biz.ctgy.entity.QGnRecallSc.gnRecallSc;
|
|
|
|
|
|
|
|
import static com.xit.biz.ctgy.entity.QMinSimsa680Sc.minSimsa680Sc;
|
|
|
|
|
|
|
|
import static com.xit.biz.ctgy.entity.QMinSimsaUser680Sc.minSimsaUser680Sc;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Repository
|
|
|
|
@Repository
|
|
|
|
public class ResidentAndDisabledDao extends BaseMpowerDaoSupport {
|
|
|
|
public class ResidentAndDisabledDao extends BaseMpowerDaoSupport {
|
|
|
|
private static final String NAME_SPACE = "residentAndDisabled";
|
|
|
|
private static final String NAME_SPACE = "residentAndDisabled";
|
|
|
@ -48,7 +42,7 @@ public class ResidentAndDisabledDao extends BaseMpowerDaoSupport {
|
|
|
|
.setParameter("scCode", scCode)
|
|
|
|
.setParameter("scCode", scCode)
|
|
|
|
.getQueryString();
|
|
|
|
.getQueryString();
|
|
|
|
final String fieldStrs = "scCode, scSeq, scCarnum, scDong, scName, scContDoc, scIngb, scDatagb, scCdate, scState, " +
|
|
|
|
final String fieldStrs = "scCode, scSeq, scCarnum, scDong, scName, scContDoc, scIngb, scDatagb, scCdate, scState, " +
|
|
|
|
"scWdate, scJbtime, scPos, scTransfer, scAnswer, scZipcode1, scZipcode2, scJuso, scBunji, " +
|
|
|
|
"scWdate, scJbtime, scPos, scTransfer, scAnswer, zipcode1, zipcode2, scJuso, scBunji, " +
|
|
|
|
"scFrecad1, scFrecad2, scFrecad3, scFrecad4, scPicad1, scPicad2, scPicad3, scPicad4, " +
|
|
|
|
"scFrecad1, scFrecad2, scFrecad3, scFrecad4, scPicad1, scPicad2, scPicad3, scPicad4, " +
|
|
|
|
"scContad1, scContad2, scContad3, scContad4, scContad5, scContad6, scContad7, scContad8, " +
|
|
|
|
"scContad1, scContad2, scContad3, scContad4, scContad5, scContad6, scContad7, scContad8, " +
|
|
|
|
"scContDocNm, scIngbNm, scTransferNm, scStateNm";
|
|
|
|
"scContDocNm, scIngbNm, scTransferNm, scStateNm";
|
|
|
@ -76,17 +70,19 @@ public class ResidentAndDisabledDao extends BaseMpowerDaoSupport {
|
|
|
|
|
|
|
|
|
|
|
|
public Page<JudgeListDto> findJudges(JudgeListDto dto, Pageable pageable) {
|
|
|
|
public Page<JudgeListDto> findJudges(JudgeListDto dto, Pageable pageable) {
|
|
|
|
final String cntSql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectJudgeListCnt")
|
|
|
|
final String cntSql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectJudgeListCnt")
|
|
|
|
|
|
|
|
.setParameter("msDatagb", dto.getMsDatagb())
|
|
|
|
.setParameter("msYear", dto.getMsYear())
|
|
|
|
.setParameter("msYear", dto.getMsYear())
|
|
|
|
.setParameter("msChasu", dto.getMsChasu())
|
|
|
|
.setParameter("msChasu", dto.getMsChasu())
|
|
|
|
.getQueryString();
|
|
|
|
.getQueryString();
|
|
|
|
|
|
|
|
|
|
|
|
final String listSql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectJudgeList")
|
|
|
|
final String listSql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectJudgeList")
|
|
|
|
|
|
|
|
.setParameter("msDatagb", dto.getMsDatagb())
|
|
|
|
.setParameter("msYear", dto.getMsYear())
|
|
|
|
.setParameter("msYear", dto.getMsYear())
|
|
|
|
.setParameter("msChasu", dto.getMsChasu())
|
|
|
|
.setParameter("msChasu", dto.getMsChasu())
|
|
|
|
.setParameter("page", pageable.getPageNumber())
|
|
|
|
.setParameter("page", pageable.getPageNumber())
|
|
|
|
.setParameter("size", pageable.getPageSize())
|
|
|
|
.setParameter("size", pageable.getPageSize())
|
|
|
|
.getQueryString();
|
|
|
|
.getQueryString();
|
|
|
|
final String fieldStrs = "msYear, msChasu, msSdate, msStartsi, msEdate, msCdate, msClosesi, cnt";
|
|
|
|
final String fieldStrs = "msYear, msChasu, msSdate, msStartsi, msEdate, msCdate, msClosesi, msDatagb, cnt";
|
|
|
|
|
|
|
|
|
|
|
|
return selectList(JudgeListDto.class, listSql, cntSql, fieldStrs, pageable);
|
|
|
|
return selectList(JudgeListDto.class, listSql, cntSql, fieldStrs, pageable);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -105,7 +101,7 @@ public class ResidentAndDisabledDao extends BaseMpowerDaoSupport {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<Map<String, Object>> selectJudgeResultGroupByCarnum(@NotNull final JudgeListDto dto) {
|
|
|
|
public List<Map<String, Object>> selectJudgeResultGroupByCarnum(@NotNull final JudgeListDto dto) {
|
|
|
|
final String listSql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectParkingJurgeResultGroupByCarnum")
|
|
|
|
final String listSql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectJurgeResultGroupByCarnum")
|
|
|
|
.setParameter("msuTeam", dto.getMsuTeam())
|
|
|
|
.setParameter("msuTeam", dto.getMsuTeam())
|
|
|
|
.setParameter("msDatagb", dto.getMsDatagb())
|
|
|
|
.setParameter("msDatagb", dto.getMsDatagb())
|
|
|
|
.setParameter("msChasu", dto.getMsChasu())
|
|
|
|
.setParameter("msChasu", dto.getMsChasu())
|
|
|
@ -117,8 +113,8 @@ public class ResidentAndDisabledDao extends BaseMpowerDaoSupport {
|
|
|
|
return selectMapList(listSql, fieldsStrs);
|
|
|
|
return selectMapList(listSql, fieldsStrs);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<Map<String, Object>> selectTotJudgeResultGroupByUser(@NotNull final JudgeListDto dto) {
|
|
|
|
public List<Map<String, Object>> findTotJudgeResultGroupByUser(@NotNull final JudgeListDto dto) {
|
|
|
|
final String listSql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectTotParkingJudgeResultGroupByUser")
|
|
|
|
final String listSql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectTotJudgeResultGroupByUser")
|
|
|
|
.setParameter("msuTeam", dto.getMsuTeam())
|
|
|
|
.setParameter("msuTeam", dto.getMsuTeam())
|
|
|
|
.setParameter("msDatagb", dto.getMsDatagb())
|
|
|
|
.setParameter("msDatagb", dto.getMsDatagb())
|
|
|
|
.setParameter("msChasu", dto.getMsChasu())
|
|
|
|
.setParameter("msChasu", dto.getMsChasu())
|
|
|
@ -130,8 +126,8 @@ public class ResidentAndDisabledDao extends BaseMpowerDaoSupport {
|
|
|
|
return selectMapList(listSql, fieldStrs);
|
|
|
|
return selectMapList(listSql, fieldStrs);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<Map<String, Object>> selectJudgeResultList(@NotNull final Map<String, Object> paramMap) {
|
|
|
|
public List<Map<String, Object>> findJudgeResultList(@NotNull final Map<String, Object> paramMap) {
|
|
|
|
final String listSql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectParkingJudgeResultList")
|
|
|
|
final String listSql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectJudgeResultList")
|
|
|
|
.setParameter("msDatagb", (String)paramMap.get("msDatagb"))
|
|
|
|
.setParameter("msDatagb", (String)paramMap.get("msDatagb"))
|
|
|
|
.setParameter("msuTeam", (String)paramMap.get("msuTeam"))
|
|
|
|
.setParameter("msuTeam", (String)paramMap.get("msuTeam"))
|
|
|
|
.setParameter("msChasu", (Long)paramMap.get("msChasu"))
|
|
|
|
.setParameter("msChasu", (Long)paramMap.get("msChasu"))
|
|
|
@ -150,11 +146,12 @@ public class ResidentAndDisabledDao extends BaseMpowerDaoSupport {
|
|
|
|
final String sql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectJudegStdCount")
|
|
|
|
final String sql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectJudegStdCount")
|
|
|
|
.setParameter("msMaincode", msMaincode)
|
|
|
|
.setParameter("msMaincode", msMaincode)
|
|
|
|
.getQueryString();
|
|
|
|
.getQueryString();
|
|
|
|
return Integer.parseInt(selectOneColumn(sql));
|
|
|
|
String cnt = selectOneColumn(sql);
|
|
|
|
|
|
|
|
return cnt == null? 0: Integer.parseInt(cnt);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void updateMsResult(@NotNull final Long msMaincode, @NotNull final String msSeq, @NotNull final String msResult) {
|
|
|
|
public void updateMsResult(@NotNull final Long msMaincode, @NotNull final String msSeq, @NotNull final String msResult) {
|
|
|
|
final String sql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectJudegStdCount")
|
|
|
|
final String sql = QueryGenerator.createNamedQuery(NAME_SPACE, "updateJudegResult")
|
|
|
|
.setParameter("msMaincode", msMaincode)
|
|
|
|
.setParameter("msMaincode", msMaincode)
|
|
|
|
.setParameter("msSeq", msSeq)
|
|
|
|
.setParameter("msSeq", msSeq)
|
|
|
|
.setParameter("msResult", msResult)
|
|
|
|
.setParameter("msResult", msResult)
|
|
|
@ -170,7 +167,7 @@ public class ResidentAndDisabledDao extends BaseMpowerDaoSupport {
|
|
|
|
.setParameter("scSeq2", dto.getScSeq2())
|
|
|
|
.setParameter("scSeq2", dto.getScSeq2())
|
|
|
|
.setParameter("scTransfer", dto.getScTransfer())
|
|
|
|
.setParameter("scTransfer", dto.getScTransfer())
|
|
|
|
.getQueryString();
|
|
|
|
.getQueryString();
|
|
|
|
final String fieldStrs = "scCode, scSeq, scCarno, scName, scContDoc, scIngb, scCdate, scContDocNm, scIngbNm";
|
|
|
|
final String fieldStrs = "scCode, scSeq, scCarnum, scName, scContDoc, scIngb, scCdate, scContDocNm, scIngbNm";
|
|
|
|
return selectList(JudgeTargetDto.class, sql, fieldStrs);
|
|
|
|
return selectList(JudgeTargetDto.class, sql, fieldStrs);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -203,8 +200,8 @@ public class ResidentAndDisabledDao extends BaseMpowerDaoSupport {
|
|
|
|
public void saveJudgeUsers(@NotNull final List<MinSimsaUser680Sc> list) {
|
|
|
|
public void saveJudgeUsers(@NotNull final List<MinSimsaUser680Sc> list) {
|
|
|
|
for(MinSimsaUser680Sc vo : list) {
|
|
|
|
for(MinSimsaUser680Sc vo : list) {
|
|
|
|
insert(
|
|
|
|
insert(
|
|
|
|
QueryGenerator.createNamedQuery(NAME_SPACE, "updateTransfer")
|
|
|
|
QueryGenerator.createNamedQuery(NAME_SPACE, "insertJudgeUser")
|
|
|
|
.setParameter("msuCode", vo.getMsuCode())
|
|
|
|
.setParameter("msuMaincode", vo.getMsuMaincode())
|
|
|
|
.setParameter("msuResult", vo.getMsuResult())
|
|
|
|
.setParameter("msuResult", vo.getMsuResult())
|
|
|
|
.setParameter("msuTeam", vo.getMsuTeam())
|
|
|
|
.setParameter("msuTeam", vo.getMsuTeam())
|
|
|
|
.setParameter("msuUserid", vo.getMsuUserid())
|
|
|
|
.setParameter("msuUserid", vo.getMsuUserid())
|
|
|
@ -250,7 +247,7 @@ public class ResidentAndDisabledDao extends BaseMpowerDaoSupport {
|
|
|
|
return QueryGenerator.createNamedQuery(NAME_SPACE, sqlId)
|
|
|
|
return QueryGenerator.createNamedQuery(NAME_SPACE, sqlId)
|
|
|
|
.setParameter("curYear", curYear)
|
|
|
|
.setParameter("curYear", curYear)
|
|
|
|
.setParameter("scCode", dto.getScCode())
|
|
|
|
.setParameter("scCode", dto.getScCode())
|
|
|
|
.setParameter("scCarNum", dto.getScCarnum())
|
|
|
|
.setParameter("scCarnum", dto.getScCarnum())
|
|
|
|
.setParameter("scDong", dto.getScDong())
|
|
|
|
.setParameter("scDong", dto.getScDong())
|
|
|
|
.setParameter("scName", dto.getScName())
|
|
|
|
.setParameter("scName", dto.getScName())
|
|
|
|
.setParameter("scContDoc", dto.getScContDoc())
|
|
|
|
.setParameter("scContDoc", dto.getScContDoc())
|
|
|
@ -260,8 +257,8 @@ public class ResidentAndDisabledDao extends BaseMpowerDaoSupport {
|
|
|
|
.setParameter("scWdate", dto.getScWdate())
|
|
|
|
.setParameter("scWdate", dto.getScWdate())
|
|
|
|
.setParameter("scJbtime", dto.getScJbtime())
|
|
|
|
.setParameter("scJbtime", dto.getScJbtime())
|
|
|
|
.setParameter("scPos", dto.getScPos())
|
|
|
|
.setParameter("scPos", dto.getScPos())
|
|
|
|
.setParameter("scZipcode1", dto.getZipcode1())
|
|
|
|
.setParameter("zipcode1", dto.getZipcode1())
|
|
|
|
.setParameter("scZipcode2", dto.getZipcode2())
|
|
|
|
.setParameter("zipcode2", dto.getZipcode2())
|
|
|
|
.setParameter("scJuso", dto.getScJuso())
|
|
|
|
.setParameter("scJuso", dto.getScJuso())
|
|
|
|
.setParameter("scBunji", dto.getScBunji())
|
|
|
|
.setParameter("scBunji", dto.getScBunji())
|
|
|
|
.setParameter("scFrecad1", dto.getScFrecad1())
|
|
|
|
.setParameter("scFrecad1", dto.getScFrecad1())
|
|
|
@ -286,11 +283,15 @@ public class ResidentAndDisabledDao extends BaseMpowerDaoSupport {
|
|
|
|
|
|
|
|
|
|
|
|
public List<DashboardJudgeListDto> findDashboardJudgeList(@NotNull final String msDatagb) {
|
|
|
|
public List<DashboardJudgeListDto> findDashboardJudgeList(@NotNull final String msDatagb) {
|
|
|
|
final String sql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectDashboardJudgeList")
|
|
|
|
final String sql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectDashboardJudgeList")
|
|
|
|
|
|
|
|
.setParameter("msDatagb", msDatagb)
|
|
|
|
.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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<JudgeListDto> findByUserJudges(@NotNull final JudgeListDto dto) {
|
|
|
|
public List<JudgeListDto> findByUserJudges(@NotNull final JudgeListDto dto) {
|
|
|
|
final String sql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectByUserJudgeList")
|
|
|
|
final String sql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectByUserJudgeList")
|
|
|
|
.setParameter("msDatagb", dto.getMsDatagb())
|
|
|
|
.setParameter("msDatagb", dto.getMsDatagb())
|
|
|
|