|
|
@ -2,9 +2,11 @@ package com.xit.biz.ctgy.v2.repository;
|
|
|
|
|
|
|
|
|
|
|
|
import com.xit.biz.ctgy.dto.*;
|
|
|
|
import com.xit.biz.ctgy.dto.*;
|
|
|
|
import com.xit.core.config.database.BaseMpowerDaoSupport;
|
|
|
|
import com.xit.core.config.database.BaseMpowerDaoSupport;
|
|
|
|
|
|
|
|
import com.xit.core.exception.CustomBaseException;
|
|
|
|
import com.xit.core.oauth2.config.properties.MasterDatabaseProperties;
|
|
|
|
import com.xit.core.oauth2.config.properties.MasterDatabaseProperties;
|
|
|
|
import com.xit.core.oauth2.utils.HeaderUtil;
|
|
|
|
import com.xit.core.oauth2.utils.HeaderUtil;
|
|
|
|
import com.xit.core.support.sql.parser.QueryGenerator;
|
|
|
|
import com.xit.core.support.sql.parser.QueryGenerator;
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.springframework.data.domain.Page;
|
|
|
|
import org.springframework.data.domain.Page;
|
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
@ -13,10 +15,12 @@ import javax.validation.constraints.NotNull;
|
|
|
|
import java.time.LocalDate;
|
|
|
|
import java.time.LocalDate;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
@Repository
|
|
|
|
@Repository
|
|
|
|
|
|
|
|
@Slf4j
|
|
|
|
public class ParkingDao extends BaseMpowerDaoSupport {
|
|
|
|
public class ParkingDao extends BaseMpowerDaoSupport {
|
|
|
|
private static final String NAME_SPACE = "parking";
|
|
|
|
private static final String NAME_SPACE = "parking";
|
|
|
|
|
|
|
|
|
|
|
@ -103,6 +107,7 @@ public class ParkingDao extends BaseMpowerDaoSupport {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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, "updateJudegResult")
|
|
|
|
final String sql = QueryGenerator.createNamedQuery(NAME_SPACE, "updateJudegResult")
|
|
|
|
.setParameter("msMaincode", msMaincode)
|
|
|
|
.setParameter("msMaincode", msMaincode)
|
|
|
|
.setParameter("msSeq", msSeq)
|
|
|
|
.setParameter("msSeq", msSeq)
|
|
|
@ -110,6 +115,16 @@ public class ParkingDao extends BaseMpowerDaoSupport {
|
|
|
|
.getQueryString();
|
|
|
|
.getQueryString();
|
|
|
|
|
|
|
|
|
|
|
|
update(sql);
|
|
|
|
update(sql);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final String mainCodeSql = QueryGenerator.createNamedQuery(NAME_SPACE, "selectRcMaincode")
|
|
|
|
|
|
|
|
.setParameter("msMaincode", msMaincode)
|
|
|
|
|
|
|
|
.getQueryString();
|
|
|
|
|
|
|
|
selectOneColumn(mainCodeSql);
|
|
|
|
|
|
|
|
final List<String> inParams = Arrays.asList("11680", "11", selectOneColumn(mainCodeSql), String.valueOf(msSeq), msResult);
|
|
|
|
|
|
|
|
final List<String> outParams = Arrays.asList("result", "message");
|
|
|
|
|
|
|
|
final String spSql = "SIMSA_EDIT_RESULT(?,?,?,?,?,?,?)";
|
|
|
|
|
|
|
|
Map<String,Object> rslt = executeSp(spSql, inParams, outParams);
|
|
|
|
|
|
|
|
if(!"1".equals(rslt.get("result"))) throw new CustomBaseException(String.valueOf(rslt.get("message")));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<ParkingTargetDto> findParkingJudgeTargets(@NotNull final ParkingTargetDto dto) {
|
|
|
|
public List<ParkingTargetDto> findParkingJudgeTargets(@NotNull final ParkingTargetDto dto) {
|
|
|
|