1. 테이블명 변경 : TB_TASK_INFO -> TB_TASK 변경

2. 테이블명 변경 : TB_VLTN_INFO -> TB_VLTN 변경
main
jjh 11 months ago
parent 7c68db06dc
commit d40fb7da04

@ -10,7 +10,7 @@ import lombok.Setter;
*/
@Getter
@Setter
public class TaskInfo extends AbstractEntity {
public class Task extends AbstractEntity {
/**
*

@ -1,17 +0,0 @@
package cokr.xit.fims.cmmn;
/**
*
* <p> :
*
* <pre>
* ============ ============
* 2023-10-24 JoJH
* ================================
* </pre>
*/
public class TaskInfoQuery extends CmmnQuery {
private static final long serialVersionUID = 1L;
}

@ -10,7 +10,7 @@ import lombok.Setter;
*/
@Getter
@Setter
public class VltnInfo extends AbstractEntity {
public class Vltn extends AbstractEntity {
/**
* ID

@ -10,7 +10,7 @@ package cokr.xit.fims.cmmn;
* ================================
* </pre>
*/
public class VltnInfoQuery extends CmmnQuery {
public class VltnQuery extends CmmnQuery {
private static final long serialVersionUID = 1L;
@ -20,13 +20,12 @@ public class VltnInfoQuery extends CmmnQuery {
private String vltnArtcl; // 위반 항목
private String acntgSeCd; // 회계 구분 코드
private String txitmCd; // 세목 코드
private String useYN; // 사용 여부
public String getVltnId() {
return ifEmpty(vltnId, () -> null);
}
public <T extends VltnInfoQuery> T setVltnId(String vltnId) {
public <T extends VltnQuery> T setVltnId(String vltnId) {
this.vltnId = vltnId;
return self();
}
@ -35,7 +34,7 @@ public class VltnInfoQuery extends CmmnQuery {
return ifEmpty(lawCd, () -> null);
}
public <T extends VltnInfoQuery> T setLawCd(String lawCd) {
public <T extends VltnQuery> T setLawCd(String lawCd) {
this.lawCd = lawCd;
return self();
}
@ -44,7 +43,7 @@ public class VltnInfoQuery extends CmmnQuery {
return ifEmpty(vltnCd, () -> null);
}
public <T extends VltnInfoQuery> T setVltnCd(String vltnCd) {
public <T extends VltnQuery> T setVltnCd(String vltnCd) {
this.vltnCd = vltnCd;
return self();
}
@ -53,7 +52,7 @@ public class VltnInfoQuery extends CmmnQuery {
return ifEmpty(vltnArtcl, () -> null);
}
public <T extends VltnInfoQuery> T setVltnArtcl(String vltnArtcl) {
public <T extends VltnQuery> T setVltnArtcl(String vltnArtcl) {
this.vltnArtcl = vltnArtcl;
return self();
}
@ -62,7 +61,7 @@ public class VltnInfoQuery extends CmmnQuery {
return ifEmpty(acntgSeCd, () -> null);
}
public <T extends VltnInfoQuery> T setAcntgSeCd(String acntgSeCd) {
public <T extends VltnQuery> T setAcntgSeCd(String acntgSeCd) {
this.acntgSeCd = acntgSeCd;
return self();
}
@ -71,18 +70,9 @@ public class VltnInfoQuery extends CmmnQuery {
return ifEmpty(txitmCd, () -> null);
}
public <T extends VltnInfoQuery> T setTxitmCd(String txitmCd) {
public <T extends VltnQuery> T setTxitmCd(String txitmCd) {
this.txitmCd = txitmCd;
return self();
}
public String getUseYN() {
return ifEmpty(useYN, () -> null);
}
public <T extends CmmnQuery> T setUseYN(String useYN) {
this.useYN = useYN;
return self();
}
}

@ -7,9 +7,8 @@ import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
import cokr.xit.foundation.component.AbstractMapper;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.cmmn.TaskInfo;
import cokr.xit.fims.cmmn.TaskInfoQuery;
import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.cmmn.Task;
/** DAO
*
@ -21,95 +20,95 @@ import cokr.xit.fims.cmmn.TaskInfoQuery;
* ================================
* </pre>
*/
@Mapper("taskInfoMapper")
public interface TaskInfoMapper extends AbstractMapper {
@Mapper("taskMapper")
public interface TaskMapper extends AbstractMapper {
/** .<br />
* @param req
* @return
*/
List<DataObject> selectTaskInfoList(TaskInfoQuery req);
List<DataObject> selectTaskList(CmmnQuery req);
/** .
* @param req
* @return
*/
List<DataObject> selectTaskInfos(TaskInfoQuery req);
List<DataObject> selectTasks(CmmnQuery req);
/** .
* @param req
* @return
*/
default DataObject selectTaskInfo(TaskInfoQuery req) {
List<DataObject> taskInfo = selectTaskInfos(req);
default DataObject selectTaskInfo(CmmnQuery req) {
List<DataObject> tasks = selectTasks(req);
return !taskInfo.isEmpty() ? taskInfo.get(0) : null;
return !tasks.isEmpty() ? tasks.get(0) : null;
}
/** .
* @param req
* @return
*/
DataObject selectAdvntceYmdInfo(TaskInfoQuery req);
DataObject selectAdvntceYmdInfo(CmmnQuery req);
/** .
* @param params
* <ul><li>"taskInfo" - </li>
* <ul><li>"task" - </li>
* <li>"currentUser" - </li>
* </ul>
* @return
*/
int insertTaskInfo(Map<String, Object> params);
int insertTask(Map<String, Object> params);
/** .
* @param taskInfo
* @param task
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
default boolean insert(TaskInfo taskInfo) {
return taskInfo != null && insertTaskInfo(params().set("taskInfo", taskInfo)) == 1;
default boolean insert(Task task) {
return task != null && insertTask(params().set("task", task)) == 1;
}
/** .
* @param params
* <ul><li>"taskInfo" - </li>
* <ul><li>"task" - </li>
* <li>"currentUser" - </li>
* </ul>
* @return
*/
int updateTaskInfo(Map<String, Object> params);
int updateTask(Map<String, Object> params);
/** .
* @param taskInfo
* @param task
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
default boolean update(TaskInfo taskInfo) {
return taskInfo != null && updateTaskInfo(params().set("taskInfo", taskInfo)) == 1;
default boolean update(Task task) {
return task != null && updateTask(params().set("task", task)) == 1;
}
/** .
* @param params
* <ul><li>"taskInfo" - </li>
* <ul><li>"task" - </li>
* <li>"currentUser" - </li>
* </ul>
* @return
*/
int deleteTaskInfo(Map<String, ?> params);
int deleteTask(Map<String, ?> params);
/** .
* @param taskInfo
* @param task
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
default boolean delete(TaskInfo taskInfo) {
return taskInfo != null && deleteTaskInfo(params().set("taskInfo", taskInfo)) == 1;
default boolean delete(Task task) {
return task != null && deleteTask(params().set("task", task)) == 1;
}
}

@ -8,8 +8,8 @@ import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
import cokr.xit.foundation.component.AbstractMapper;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.cmmn.VltnInfo;
import cokr.xit.fims.cmmn.VltnInfoQuery;
import cokr.xit.fims.cmmn.Vltn;
import cokr.xit.fims.cmmn.VltnQuery;
/** DAO
*
@ -21,29 +21,29 @@ import cokr.xit.fims.cmmn.VltnInfoQuery;
* ================================
* </pre>
*/
@Mapper("vltnInfoMapper")
public interface VltnInfoMapper extends AbstractMapper {
@Mapper("vltnMapper")
public interface VltnMapper extends AbstractMapper {
/** .<br />
* @param req
* @return
*/
List<DataObject> selectVltnInfoList(VltnInfoQuery req);
List<DataObject> selectVltnList(VltnQuery req);
/** .
* @param req
* @return
*/
List<DataObject> selectVltnInfos(VltnInfoQuery req);
List<DataObject> selectVltns(VltnQuery req);
/** .
* @param req
* @return
*/
default DataObject selectVltnInfo(VltnInfoQuery req) {
List<DataObject> vltnInfo = selectVltnInfos(req);
default DataObject selectVltnInfo(VltnQuery req) {
List<DataObject> vltns = selectVltns(req);
return !vltnInfo.isEmpty() ? vltnInfo.get(0) : null;
return !vltns.isEmpty() ? vltns.get(0) : null;
}
/** .
@ -53,7 +53,7 @@ public interface VltnInfoMapper extends AbstractMapper {
* </ul>
* @return
*/
int insertVltnInfo(Map<String, Object> params);
int insertVltn(Map<String, Object> params);
/** .
* @param vltnInfo
@ -62,8 +62,8 @@ public interface VltnInfoMapper extends AbstractMapper {
* <li> false</li>
* </ul>
*/
default boolean insert(VltnInfo vltnInfo) {
return vltnInfo != null && insertVltnInfo(params().set("vltnInfo", vltnInfo)) == 1;
default boolean insert(Vltn vltn) {
return vltn != null && insertVltn(params().set("vltn", vltn)) == 1;
}
/** .
@ -73,7 +73,7 @@ public interface VltnInfoMapper extends AbstractMapper {
* </ul>
* @return
*/
int updateVltnInfo(Map<String, Object> params);
int updateVltn(Map<String, Object> params);
/** .
* @param vltnInfo
@ -82,8 +82,8 @@ public interface VltnInfoMapper extends AbstractMapper {
* <li> false</li>
* </ul>
*/
default boolean update(VltnInfo vltnInfo) {
return vltnInfo != null && updateVltnInfo(params().set("vltnInfo", vltnInfo)) == 1;
default boolean update(Vltn vltn) {
return vltn != null && updateVltn(params().set("vltn", vltn)) == 1;
}
/** .
@ -93,7 +93,7 @@ public interface VltnInfoMapper extends AbstractMapper {
* </ul>
* @return
*/
int deleteVltnInfo(Map<String, ?> params);
int deleteVltn(Map<String, ?> params);
/** .
* @param vltnInfo
@ -102,8 +102,8 @@ public interface VltnInfoMapper extends AbstractMapper {
* <li> false</li>
* </ul>
*/
default boolean delete(VltnInfo vltnInfo) {
return vltnInfo != null && deleteVltnInfo(params().set("vltnInfo", vltnInfo)) == 1;
default boolean delete(Vltn vltn) {
return vltn != null && deleteVltn(params().set("vltn", vltn)) == 1;
}
}

@ -3,9 +3,8 @@ package cokr.xit.fims.cmmn.service;
import java.util.List;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.cmmn.TaskInfo;
import cokr.xit.fims.cmmn.TaskInfoQuery;
import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.cmmn.Task;
/** .
*
@ -17,57 +16,57 @@ import cokr.xit.fims.cmmn.TaskInfoQuery;
* ================================
* </pre>
*/
public interface TaskInfoService {
public interface TaskService {
/** .
* @param req
* @return
*/
List<DataObject> getTaskInfoList(TaskInfoQuery req);
List<DataObject> getTaskList(CmmnQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getTaskInfos(TaskInfoQuery req);
List<DataObject> getTasks(CmmnQuery req);
/** .
* @param sndngDtlId ID
* @return
*/
DataObject getTaskInfo(TaskInfoQuery req);
DataObject getTaskInfo(CmmnQuery req);
/** .
* @param sndngDtlId ID
* @return
*/
DataObject getAdvntceYmdInfo(TaskInfoQuery req);
DataObject getAdvntceYmdInfo(CmmnQuery req);
/** .
* @param taskInfo
* @param task
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean create(TaskInfo taskInfo);
boolean create(Task task);
/** .
* @param taskInfo
* @param task
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean update(TaskInfo taskInfo);
boolean update(Task task);
/** .
* @param taskInfo
* @param task
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean remove(TaskInfo taskInfo);
boolean remove(Task task);
}

@ -4,8 +4,8 @@ import java.util.List;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.cmmn.VltnInfo;
import cokr.xit.fims.cmmn.VltnInfoQuery;
import cokr.xit.fims.cmmn.Vltn;
import cokr.xit.fims.cmmn.VltnQuery;
/** .
*
@ -17,45 +17,45 @@ import cokr.xit.fims.cmmn.VltnInfoQuery;
* ================================
* </pre>
*/
public interface VltnInfoService {
public interface VltnService {
/** .
* @param req
* @return
*/
List<DataObject> getVltnInfoList(VltnInfoQuery req);
List<DataObject> getVltnList(VltnQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getVltnInfos(VltnInfoQuery req);
List<DataObject> getVltns(VltnQuery req);
/** .
* @param vltnInfo
* @param vltn
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean create(VltnInfo vltnInfo);
boolean create(Vltn vltn);
/** .
* @param vltnInfo
* @param vltn
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean update(VltnInfo vltnInfo);
boolean update(Vltn vltn);
/** .
* @param vltnInfo
* @param vltn
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean remove(VltnInfo vltnInfo);
boolean remove(Vltn vltn);
}

@ -8,10 +8,9 @@ import org.springframework.stereotype.Component;
import cokr.xit.foundation.AbstractComponent;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.cmmn.TaskInfo;
import cokr.xit.fims.cmmn.TaskInfoQuery;
import cokr.xit.fims.cmmn.dao.TaskInfoMapper;
import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.cmmn.Task;
import cokr.xit.fims.cmmn.dao.TaskMapper;
/** Bean
*
@ -23,43 +22,43 @@ import cokr.xit.fims.cmmn.dao.TaskInfoMapper;
* ================================
* </pre>
*/
@Component("taskInfoBean")
public class TaskInfoBean extends AbstractComponent {
@Component("taskBean")
public class TaskBean extends AbstractComponent {
/** 업무 정보 정보 DAO */
@Resource(name = "taskInfoMapper")
private TaskInfoMapper taskInfoMapper;
@Resource(name = "taskMapper")
private TaskMapper taskMapper;
/** .
* @param req
* @return
*/
public List<DataObject> getTaskInfoList(TaskInfoQuery req) {
return taskInfoMapper.selectTaskInfoList(req);
public List<DataObject> getTaskList(CmmnQuery req) {
return taskMapper.selectTaskList(req);
}
/** .
* @param req
* @return
*/
public List<DataObject> getTaskInfos(TaskInfoQuery req) {
return taskInfoMapper.selectTaskInfos(req);
public List<DataObject> getTasks(CmmnQuery req) {
return taskMapper.selectTasks(req);
}
/** .
* @param req
* @return
*/
public DataObject getTaskInfo(TaskInfoQuery req) {
return taskInfoMapper.selectTaskInfo(req);
public DataObject getTaskInfo(CmmnQuery req) {
return taskMapper.selectTaskInfo(req);
}
/** .
* @param req
* @return
*/
public DataObject getAdvntceYmdInfo(TaskInfoQuery req) {
return taskInfoMapper.selectAdvntceYmdInfo(req);
public DataObject getAdvntceYmdInfo(CmmnQuery req) {
return taskMapper.selectAdvntceYmdInfo(req);
}
/** .
@ -69,8 +68,8 @@ public class TaskInfoBean extends AbstractComponent {
* <li> false</li>
* </ul>
*/
public boolean create(TaskInfo taskInfo) {
return taskInfoMapper.insert(taskInfo);
public boolean create(Task task) {
return taskMapper.insert(task);
}
/** .
@ -80,8 +79,8 @@ public class TaskInfoBean extends AbstractComponent {
* <li> false</li>
* </ul>
*/
public boolean update(TaskInfo taskInfo) {
return taskInfoMapper.update(taskInfo);
public boolean update(Task task) {
return taskMapper.update(task);
}
/** .
@ -91,8 +90,8 @@ public class TaskInfoBean extends AbstractComponent {
* <li> false</li>
* </ul>
*/
public boolean remove(TaskInfo taskInfo) {
return taskInfoMapper.delete(taskInfo);
public boolean remove(Task task) {
return taskMapper.delete(task);
}
}

@ -1,68 +0,0 @@
package cokr.xit.fims.cmmn.service.bean;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.cmmn.TaskInfo;
import cokr.xit.fims.cmmn.TaskInfoQuery;
import cokr.xit.fims.cmmn.service.TaskInfoService;
/** .
*
* <p> :
*
* <pre>
* ============ ============
* 2023-10-24 JoJH
* ================================
* </pre>
*/
@Service("taskInfoService")
public class TaskInfoServiceBean extends AbstractServiceBean implements TaskInfoService {
/** 업무 정보 정보 Bean */
@Resource(name = "taskInfoBean")
private TaskInfoBean taskInfoBean;
@Override
public List<DataObject> getTaskInfoList(TaskInfoQuery req) {
return taskInfoBean.getTaskInfoList(req);
}
@Override
public List<DataObject> getTaskInfos(TaskInfoQuery req) {
return taskInfoBean.getTaskInfos(req);
}
@Override
public DataObject getTaskInfo(TaskInfoQuery req) {
return taskInfoBean.getTaskInfo(req);
}
@Override
public DataObject getAdvntceYmdInfo(TaskInfoQuery req) {
return taskInfoBean.getAdvntceYmdInfo(req);
}
@Override
public boolean create(TaskInfo taskInfo) {
return taskInfoBean.create(taskInfo);
}
@Override
public boolean update(TaskInfo taskInfo) {
return taskInfoBean.update(taskInfo);
}
@Override
public boolean remove(TaskInfo taskInfo) {
return taskInfoBean.remove(taskInfo);
}
}

@ -0,0 +1,67 @@
package cokr.xit.fims.cmmn.service.bean;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.cmmn.Task;
import cokr.xit.fims.cmmn.service.TaskService;
/** .
*
* <p> :
*
* <pre>
* ============ ============
* 2023-10-24 JoJH
* ================================
* </pre>
*/
@Service("taskService")
public class TaskServiceBean extends AbstractServiceBean implements TaskService {
/** 업무 정보 정보 Bean */
@Resource(name = "taskBean")
private TaskBean taskBean;
@Override
public List<DataObject> getTaskList(CmmnQuery req) {
return taskBean.getTaskList(req);
}
@Override
public List<DataObject> getTasks(CmmnQuery req) {
return taskBean.getTasks(req);
}
@Override
public DataObject getTaskInfo(CmmnQuery req) {
return taskBean.getTaskInfo(req);
}
@Override
public DataObject getAdvntceYmdInfo(CmmnQuery req) {
return taskBean.getAdvntceYmdInfo(req);
}
@Override
public boolean create(Task task) {
return taskBean.create(task);
}
@Override
public boolean update(Task task) {
return taskBean.update(task);
}
@Override
public boolean remove(Task task) {
return taskBean.remove(task);
}
}

@ -9,9 +9,9 @@ import org.springframework.stereotype.Component;
import cokr.xit.foundation.AbstractComponent;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.cmmn.VltnInfo;
import cokr.xit.fims.cmmn.VltnInfoQuery;
import cokr.xit.fims.cmmn.dao.VltnInfoMapper;
import cokr.xit.fims.cmmn.Vltn;
import cokr.xit.fims.cmmn.VltnQuery;
import cokr.xit.fims.cmmn.dao.VltnMapper;
/** Bean
*
@ -23,35 +23,35 @@ import cokr.xit.fims.cmmn.dao.VltnInfoMapper;
* ================================
* </pre>
*/
@Component("vltnInfoBean")
public class VltnInfoBean extends AbstractComponent {
@Component("vltnBean")
public class VltnBean extends AbstractComponent {
/** 위반 정보 정보 DAO */
@Resource(name = "vltnInfoMapper")
private VltnInfoMapper vltnInfoMapper;
@Resource(name = "vltnMapper")
private VltnMapper vltnMapper;
/** .
* @param req
* @return
*/
public List<DataObject> getVltnInfoList(VltnInfoQuery req) {
return vltnInfoMapper.selectVltnInfoList(req);
public List<DataObject> getVltnList(VltnQuery req) {
return vltnMapper.selectVltnList(req);
}
/** .
* @param req
* @return
*/
public List<DataObject> getVltnInfos(VltnInfoQuery req) {
return vltnInfoMapper.selectVltnInfos(req);
public List<DataObject> getVltns(VltnQuery req) {
return vltnMapper.selectVltns(req);
}
/** .
* @param req
* @return
*/
public DataObject getVltnInfo(VltnInfoQuery req) {
return vltnInfoMapper.selectVltnInfo(req);
public DataObject getVltnInfo(VltnQuery req) {
return vltnMapper.selectVltnInfo(req);
}
/** .
@ -61,8 +61,8 @@ public class VltnInfoBean extends AbstractComponent {
* <li> false</li>
* </ul>
*/
public boolean create(VltnInfo vltnInfo) {
return vltnInfoMapper.insert(vltnInfo);
public boolean create(Vltn vltn) {
return vltnMapper.insert(vltn);
}
/** .
@ -72,8 +72,8 @@ public class VltnInfoBean extends AbstractComponent {
* <li> false</li>
* </ul>
*/
public boolean update(VltnInfo vltnInfo) {
return vltnInfoMapper.update(vltnInfo);
public boolean update(Vltn vltn) {
return vltnMapper.update(vltn);
}
/** .
@ -83,8 +83,8 @@ public class VltnInfoBean extends AbstractComponent {
* <li> false</li>
* </ul>
*/
public boolean remove(VltnInfo vltnInfo) {
return vltnInfoMapper.delete(vltnInfo);
public boolean remove(Vltn vltn) {
return vltnMapper.delete(vltn);
}
}

@ -1,58 +0,0 @@
package cokr.xit.fims.cmmn.service.bean;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.cmmn.VltnInfo;
import cokr.xit.fims.cmmn.VltnInfoQuery;
import cokr.xit.fims.cmmn.service.VltnInfoService;
/** .
*
* <p> :
*
* <pre>
* ============ ============
* 2023-10-16 JoJH
* ================================
* </pre>
*/
@Service("vltnInfoService")
public class VltnInfoServiceBean extends AbstractServiceBean implements VltnInfoService {
/** 위반 정보 정보 Bean */
@Resource(name = "vltnInfoBean")
private VltnInfoBean vltnInfoBean;
@Override
public List<DataObject> getVltnInfoList(VltnInfoQuery req) {
return vltnInfoBean.getVltnInfoList(req);
}
@Override
public List<DataObject> getVltnInfos(VltnInfoQuery req) {
return vltnInfoBean.getVltnInfos(req);
}
@Override
public boolean create(VltnInfo vltnInfo) {
return vltnInfoBean.create(vltnInfo);
}
@Override
public boolean update(VltnInfo vltnInfo) {
return vltnInfoBean.update(vltnInfo);
}
@Override
public boolean remove(VltnInfo vltnInfo) {
return vltnInfoBean.remove(vltnInfo);
}
}

@ -0,0 +1,58 @@
package cokr.xit.fims.cmmn.service.bean;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject;
import cokr.xit.fims.cmmn.Vltn;
import cokr.xit.fims.cmmn.VltnQuery;
import cokr.xit.fims.cmmn.service.VltnService;
/** .
*
* <p> :
*
* <pre>
* ============ ============
* 2023-10-16 JoJH
* ================================
* </pre>
*/
@Service("vltnService")
public class VltnServiceBean extends AbstractServiceBean implements VltnService {
/** 위반 정보 정보 Bean */
@Resource(name = "vltnBean")
private VltnBean vltnBean;
@Override
public List<DataObject> getVltnList(VltnQuery req) {
return vltnBean.getVltnList(req);
}
@Override
public List<DataObject> getVltns(VltnQuery req) {
return vltnBean.getVltns(req);
}
@Override
public boolean create(Vltn vltn) {
return vltnBean.create(vltn);
}
@Override
public boolean update(Vltn vltn) {
return vltnBean.update(vltn);
}
@Override
public boolean remove(Vltn vltn) {
return vltnBean.remove(vltn);
}
}

@ -0,0 +1,105 @@
package cokr.xit.fims.cmmn.web;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.foundation.web.AbstractController;
import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.cmmn.Task;
import cokr.xit.fims.cmmn.service.TaskService;
/**
*
* <p> :
*
* <pre>
* ============ ============
* 2023-10-24 JoJH
* ================================
* </pre>
*/
@RequestMapping(name = "업무 정보", value = "/task")
public class TaskController extends AbstractController {
/** 업무 정보 서비스 */
@Resource(name = "taskService")
private TaskService taskService;
/** (task/task-main) .
* {@link #getTaskList(TaskQuery) } .
* @return /task/task-main
*/
@RequestMapping(name = "업무 메인", value = "/main.do")
public ModelAndView main() {
ModelAndView mav = getTaskList(new CmmnQuery().setPageNum(1));
mav.setViewName("/task/task-main");
return mav.addObject("taskList", toJson(mav.getModel().get("taskList")));
}
/** .<br />
* {@link TaskService#getTaskList(TaskQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "taskList": [ ]
* "taskStart":
* "taskFetch":
* "taskTotal":
* }</code></pre>
*/
@RequestMapping(name = "업무 조회", value = "/list.do")
public ModelAndView getTaskList(CmmnQuery req) {
List<?> result = taskService.getTaskList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "task");
}
/** .
* @param task
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "업무 등록", value = "/create.do")
public ModelAndView create(Task task) {
boolean saved = taskService.create(task);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param task
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "업무 수정", value = "/update.do")
public ModelAndView update(Task task) {
boolean saved = taskService.update(task);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param taskIDs
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "업무 제거", value = "/remove.do")
public ModelAndView remove(Task task) {
boolean saved = taskService.remove(task);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
}

@ -1,106 +0,0 @@
package cokr.xit.fims.cmmn.web;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.foundation.web.AbstractController;
import cokr.xit.fims.cmmn.TaskInfo;
import cokr.xit.fims.cmmn.TaskInfoQuery;
import cokr.xit.fims.cmmn.service.TaskInfoService;
/**
*
* <p> :
*
* <pre>
* ============ ============
* 2023-10-24 JoJH
* ================================
* </pre>
*/
@RequestMapping(name = "업무 정보", value = "/taskInfo")
public class TaskInfoController extends AbstractController {
/** 업무 정보 서비스 */
@Resource(name = "taskInfoService")
private TaskInfoService taskInfoService;
/** (taskInfo/taskInfo-main) .
* {@link #getTaskInfoList(TaskInfoQuery) } .
* @return /taskInfo/taskInfo-main
*/
@RequestMapping(name = "업무 정보 메인", value = "/main.do")
public ModelAndView main() {
ModelAndView mav = getTaskInfoList(new TaskInfoQuery().setPageNum(1));
mav.setViewName("/taskInfo/taskInfo-main");
return mav.addObject("taskInfoList", toJson(mav.getModel().get("taskInfoList")));
}
/** .<br />
* {@link TaskInfoService#getTaskInfoList(TaskInfoQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "taskInfoList": [ ]
* "taskInfoStart":
* "taskInfoFetch":
* "taskInfoTotal":
* }</code></pre>
*/
@RequestMapping(name = "업무 정보 조회", value = "/list.do")
public ModelAndView getTaskInfoList(TaskInfoQuery req) {
List<?> result = taskInfoService.getTaskInfoList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "taskInfo");
}
/** .
* @param taskInfo
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "업무 정보 등록", value = "/create.do")
public ModelAndView create(TaskInfo taskInfo) {
boolean saved = taskInfoService.create(taskInfo);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param taskInfo
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "업무 정보 수정", value = "/update.do")
public ModelAndView update(TaskInfo taskInfo) {
boolean saved = taskInfoService.update(taskInfo);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param taskInfoIDs
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "업무 정보 제거", value = "/remove.do")
public ModelAndView remove(TaskInfo taskInfo) {
boolean saved = taskInfoService.remove(taskInfo);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
}

@ -0,0 +1,105 @@
package cokr.xit.fims.cmmn.web;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.foundation.web.AbstractController;
import cokr.xit.fims.cmmn.Vltn;
import cokr.xit.fims.cmmn.VltnQuery;
import cokr.xit.fims.cmmn.service.VltnService;
/**
*
* <p> :
*
* <pre>
* ============ ============
* 2023-10-16 JoJH
* ================================
* </pre>
*/
@RequestMapping(name = "위반", value = "/vltn")
public class VltnController extends AbstractController {
/**위반 정보 서비스*/
@Resource(name = "vltnService")
private VltnService vltnService;
/** (vltn/vltn-main) .
* {@link #getVltnList(VltnQuery) } .
* @return /vltn/vltn-main
*/
@RequestMapping(name = "위반 메인", value = "/main.do")
public ModelAndView main() {
ModelAndView mav = getVltnList(new VltnQuery().setPageNum(1));
mav.setViewName("/vltn/vltn-main");
return mav.addObject("vltnList", toJson(mav.getModel().get("vltnList")));
}
/** .<br />
* {@link VltnService#getVltnList(VltnQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "vltnList": [ ]
* "vltnStart":
* "vltnFetch":
* "vltnTotal":
* }</code></pre>
*/
@RequestMapping(name = "위반 조회", value = "/list.do")
public ModelAndView getVltnList(VltnQuery req) {
List<?> result = vltnService.getVltnList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "vltn");
}
/** .
* @param vltn
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "위반 등록", value = "/create.do")
public ModelAndView create(Vltn vltn) {
boolean saved = vltnService.create(vltn);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param vltn
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "위반 수정", value = "/update.do")
public ModelAndView update(Vltn vltn) {
boolean saved = vltnService.update(vltn);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param vltnIDs
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "위반 제거", value = "/remove.do")
public ModelAndView remove(Vltn vltn) {
boolean saved = vltnService.remove(vltn);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
}

@ -1,105 +0,0 @@
package cokr.xit.fims.cmmn.web;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.foundation.web.AbstractController;
import cokr.xit.fims.cmmn.VltnInfo;
import cokr.xit.fims.cmmn.VltnInfoQuery;
import cokr.xit.fims.cmmn.service.VltnInfoService;
/**
*
* <p> :
*
* <pre>
* ============ ============
* 2023-10-16 JoJH
* ================================
* </pre>
*/
@RequestMapping(name = "위반 정보", value = "/vltnInfo")
public class VltnInfoController extends AbstractController {
/**위반 정보 서비스*/
@Resource(name = "vltnInfoService")
private VltnInfoService vltnInfoService;
/** (vltnInfo/vltnInfo-main) .
* {@link #getVltnInfoList(VltnInfoQuery) } .
* @return /vltnInfo/vltnInfo-main
*/
@RequestMapping(name = "위반 정보 메인", value = "/main.do")
public ModelAndView main() {
ModelAndView mav = getVltnInfoList(new VltnInfoQuery().setPageNum(1));
mav.setViewName("/vltnInfo/vltnInfo-main");
return mav.addObject("vltnInfoList", toJson(mav.getModel().get("vltnInfoList")));
}
/** .<br />
* {@link VltnInfoService#getVltnInfoList(VltnInfoQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "vltnInfoList": [ ]
* "vltnInfoStart":
* "vltnInfoFetch":
* "vltnInfoTotal":
* }</code></pre>
*/
@RequestMapping(name = "위반 정보 조회", value = "/list.do")
public ModelAndView getVltnInfoList(VltnInfoQuery req) {
List<?> result = vltnInfoService.getVltnInfoList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "vltnInfo");
}
/** .
* @param vltnInfo
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "위반 정보 등록", value = "/create.do")
public ModelAndView create(VltnInfo vltnInfo) {
boolean saved = vltnInfoService.create(vltnInfo);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param vltnInfo
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "위반 정보 수정", value = "/update.do")
public ModelAndView update(VltnInfo vltnInfo) {
boolean saved = vltnInfoService.update(vltnInfo);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param vltnInfoIDs
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "위반 정보 제거", value = "/remove.do")
public ModelAndView remove(VltnInfo vltnInfo) {
boolean saved = vltnInfoService.remove(vltnInfo);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
}

@ -11,8 +11,8 @@ import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode;
import cokr.xit.base.user.ManagedUser;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.cmmn.TaskInfoQuery;
import cokr.xit.fims.cmmn.service.TaskInfoService;
import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.cmmn.service.TaskService;
import cokr.xit.fims.levy.Levy;
import cokr.xit.fims.levy.LevyQuery;
import cokr.xit.fims.levy.service.LevyService;
@ -48,8 +48,8 @@ public class Levy01Controller extends ApplicationController {
private LevyService levyService;
/** 업무 정보 서비스 */
@Resource(name = "taskInfoService")
private TaskInfoService taskInfoService;
@Resource(name = "taskService")
private TaskService taskService;
/** (levy/levy01010-main) .
* @return
@ -96,8 +96,8 @@ public class Levy01Controller extends ApplicationController {
*/
public ModelAndView getReductionLevyTargetInfo(LevyQuery req) {
// 감경 부과일자
DataObject rductLevyYmdInfo = taskInfoService.getAdvntceYmdInfo(new TaskInfoQuery().setSggCd(req.getSggCd())
.setTaskSeCd(req.getTaskSeCd()));
DataObject rductLevyYmdInfo = taskService.getAdvntceYmdInfo(new CmmnQuery().setSggCd(req.getSggCd())
.setTaskSeCd(req.getTaskSeCd()));
boolean json = jsonResponse();

@ -10,9 +10,9 @@ import cokr.xit.base.file.service.FileQuery;
import cokr.xit.base.file.service.bean.FileBean;
import cokr.xit.base.user.service.bean.UserBean;
import cokr.xit.fims.cmmn.CrdnSttsHstry;
import cokr.xit.fims.cmmn.VltnInfoQuery;
import cokr.xit.fims.cmmn.VltnQuery;
import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean;
import cokr.xit.fims.cmmn.service.bean.VltnInfoBean;
import cokr.xit.fims.cmmn.service.bean.VltnBean;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.epst.EpostRcptDtl;
import cokr.xit.fims.epst.EpostRcptReg;
@ -63,8 +63,8 @@ public class SndngBean extends AbstractComponent {
protected UserBean userBean;
/** 위반 정보 정보 Bean */
@Resource(name = "vltnInfoBean")
private VltnInfoBean vltnInfoBean;
@Resource(name = "vltnBean")
private VltnBean vltnBean;
/** 부과 대장 정보 Bean */
@Resource(name = "levyBean")
@ -538,18 +538,18 @@ public class SndngBean extends AbstractComponent {
DataObject deptSggInfo = epostRcptRegBean.getDeptSggInfo(sndngInfo.string("DEPT_CD"));
// 4. 위반 정보를 조회한다.
VltnInfoQuery vltnInfoQuery = new VltnInfoQuery();
VltnQuery vltnQuery = new VltnQuery();
if (sndngInfo.string("VLTN_ID").equals("")) { // 위반 ID가 없다면..
vltnInfoQuery.setSggCd(sndngInfo.string("SGG_CD"));
vltnInfoQuery.setTaskSeCd(sndngInfo.string("TASK_SE_CD"));
vltnInfoQuery.setVltnCd("01");
vltnQuery.setSggCd(sndngInfo.string("SGG_CD"));
vltnQuery.setTaskSeCd(sndngInfo.string("TASK_SE_CD"));
vltnQuery.setVltnCd("01");
} else {
vltnInfoQuery.setSggCd(sndngInfo.string("SGG_CD"));
vltnInfoQuery.setTaskSeCd(sndngInfo.string("TASK_SE_CD"));
vltnInfoQuery.setVltnId(sndngInfo.string("VLTN_ID"));
vltnQuery.setSggCd(sndngInfo.string("SGG_CD"));
vltnQuery.setTaskSeCd(sndngInfo.string("TASK_SE_CD"));
vltnQuery.setVltnId(sndngInfo.string("VLTN_ID"));
}
DataObject vltnInfo = vltnInfoBean.getVltnInfo(vltnInfoQuery);
DataObject vltnInfo = vltnBean.getVltnInfo(vltnQuery);
// 5. 전자우편 접수 내역을 등록한다.
EpostRcptReg epostRcptReg = new EpostRcptReg();

@ -10,8 +10,8 @@ import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode;
import cokr.xit.base.user.ManagedUser;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.cmmn.TaskInfoQuery;
import cokr.xit.fims.cmmn.service.TaskInfoService;
import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.cmmn.service.TaskService;
import cokr.xit.fims.sndb.SndbQuery;
import cokr.xit.fims.sndb.Sndng;
import cokr.xit.fims.sndb.SndngDtl;
@ -85,8 +85,8 @@ public class Sndb01Controller extends ApplicationController {
private SndngService sndngService;
/** 업무 정보 서비스 */
@Resource(name = "taskInfoService")
private TaskInfoService taskInfoService;
@Resource(name = "taskService")
private TaskService taskService;
/** (sndb/sndb01/010-main) .
* @return /sndb/sndb01/010-main
@ -288,8 +288,9 @@ public class Sndb01Controller extends ApplicationController {
List<DataObject> advntceTrgts = sndngService.getAdvntceTrgts(req);
// 사전통지 납기일자
DataObject taskInfo = taskInfoService.getTaskInfo(new TaskInfoQuery().setSggCd(req.getSggCd())
.setTaskSeCd(req.getTaskSeCd()));
DataObject taskInfo = taskService.getTaskInfo(new CmmnQuery().setSggCd(req.getSggCd())
.setTaskSeCd(req.getTaskSeCd()));
int advntceDaycnt = taskInfo.number("ADVNTCE_DAYCNT").intValue();
boolean json = jsonResponse();

@ -71,7 +71,7 @@ SELECT USER_ID
, (CASE
WHEN A.NSTT_CD = 'default'
THEN '기본 기관'
ELSE (SELECT INST_NM FROM TB_SGG_INFO WHERE INST_CD = A.NSTT_CD AND SGG_CD = A.ORG_ID)
ELSE (SELECT INST_NM FROM TB_SGG WHERE INST_CD = A.NSTT_CD AND SGG_CD = A.ORG_ID)
END
) AS NSTT_NM
, CRTFC_DN

@ -10,7 +10,7 @@ SELECT CONCAT(A.INST_CD,'/',B.DEPT_CD) AS FACTION_CD
, A.INST_NM
, B.DEPT_CD
, B.DEPT_NM
FROM TB_SGG_INFO A
FROM TB_SGG A
LEFT OUTER JOIN TB_DEPT B ON (A.INST_CD = B.INST_CD)
UNION
SELECT 'default/default' AS FACTION_CD
@ -30,7 +30,7 @@ SELECT CONCAT(A.INST_CD,'/',B.DEPT_CD) AS FACTION_CD
, A.INST_NM
, B.DEPT_CD
, B.DEPT_NM
FROM TB_SGG_INFO A
FROM TB_SGG A
LEFT OUTER JOIN TB_DEPT B ON (A.INST_CD = B.INST_CD)
<if test="currentUser.institute != 'default'">
WHERE A.INST_CD = #{currentUser.institute}
@ -56,7 +56,7 @@ SELECT S.SGG_CD
, U.DEPT_CD
, D.DEPT_NM
FROM TB_USER U
INNER JOIN TB_SGG_INFO S ON (U.ORG_ID = S.SGG_CD)
INNER JOIN TB_SGG S ON (U.ORG_ID = S.SGG_CD)
LEFT OUTER JOIN TB_DEPT D ON (U.DEPT_CD = D.DEPT_CD)
WHERE U.USER_ID = #{userId}
</select>

@ -38,7 +38,7 @@ SELECT SGG_CD
, SYMBOL_FILE_NM <!-- 심볼 파일 명 -->
, OFFCS_FILE_PATH <!-- 직인 파일 경로 -->
, OFFCS_FILE_NM <!-- 직인 파일 명 -->
FROM TB_SGG_INFO
FROM TB_SGG
WHERE SGG_CD = #{sggCd}
</select>

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cokr.xit.fims.cmmn.dao.TaskInfoMapper">
<mapper namespace="cokr.xit.fims.cmmn.dao.TaskMapper">
<!-- 업무 정보 정보 매퍼
========== 변경 이력 ==========
2023-10-24 JoJH 최초 작성
============================ -->
<resultMap id="taskInfoRow" type="cokr.xit.fims.cmmn.TaskInfo">
<resultMap id="taskRow" type="cokr.xit.fims.cmmn.Task">
<result property="sggCd" column="SGG_CD" /> <!-- 시군구 코드 -->
<result property="taskSeCd" column="TASK_SE_CD" /> <!-- 업무 구분 코드 -->
<result property="taskSeNm" column="TASK_SE_NM" /> <!-- 업무 구분 명 -->
@ -26,44 +26,44 @@
</resultMap>
<sql id="select">
SELECT TI.SGG_CD /* 시군구 코드 */
, TI.TASK_SE_CD /* 업무 구분 코드 */
, TI.TASK_SE_NM /* 업무 구분 명 */
, TI.ADVNTCE_DAYCNT /* 사전통지 일수 */
, TI.ADVNTCE_RDUCT_RT /* 사전통지 감경 율 */
, TI.WKSN_RDUCT_RT /* 사회적약자 감경 율 */
, TI.FFNLG_ADTN_YMD /* 과태료 가산 일자 */
, TI.FFNLG_ADTN_RT /* 과태료 가산 율 */
, TI.FFNLG_INADTN_RT /* 과태료 중가산 율 */
, TI.FFNLG_INADTN_MXMM_CNT /* 과태료 중가산 최대 수 */
, TI.USE_YN /* 사용 여부 */
, TI.REG_DT /* 등록 일시 */
, TI.RGTR /* 등록자 */
, TI.MDFCN_DT /* 수정 일시 */
, TI.MDFR /* 수정자 */
FROM TB_TASK_INFO TI
SELECT T.SGG_CD /* 시군구 코드 */
, T.TASK_SE_CD /* 업무 구분 코드 */
, T.TASK_SE_NM /* 업무 구분 명 */
, T.ADVNTCE_DAYCNT /* 사전통지 일수 */
, T.ADVNTCE_RDUCT_RT /* 사전통지 감경 율 */
, T.WKSN_RDUCT_RT /* 사회적약자 감경 율 */
, T.FFNLG_ADTN_YMD /* 과태료 가산 일자 */
, T.FFNLG_ADTN_RT /* 과태료 가산 율 */
, T.FFNLG_INADTN_RT /* 과태료 중가산 율 */
, T.FFNLG_INADTN_MXMM_CNT /* 과태료 중가산 최대 수 */
, T.USE_YN /* 사용 여부 */
, T.REG_DT /* 등록 일시 */
, T.RGTR /* 등록자 */
, T.MDFCN_DT /* 수정 일시 */
, T.MDFR /* 수정자 */
FROM TB_TASK T
</sql>
<select id="selectTaskInfoList" parameterType="map" resultType="dataobject">/* 업무 정보 목록 조회(taskInfoMapper.selectTaskInfoList) */
<select id="selectTaskList" parameterType="map" resultType="dataobject">/* 업무 정보 목록 조회(taskMapper.selectTaskList) */
<include refid="utility.paging-prefix" />
<include refid="select" />
WHERE TI.SGG_CD = #{sggCd}
AND TI.TASK_SE_CD = #{taskSeCd}
WHERE T.SGG_CD = #{sggCd}
AND T.TASK_SE_CD = #{taskSeCd}
<if test="useYN != null">
AND TI.USE_YN = #{useYN}
AND T.USE_YN = #{useYN}
</if>
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />
</select>
<select id="selectTaskInfos" parameterType="map" resultType="dataobject">/* 업무 정보 객체 가져오기(taskInfoMapper.selectTaskInfos) */
<select id="selectTasks" parameterType="map" resultType="dataobject">/* 업무 정보 객체 가져오기(taskMapper.selectTasks) */
<include refid="select" />
WHERE TI.SGG_CD = #{sggCd}
AND TI.TASK_SE_CD = #{taskSeCd}
WHERE T.SGG_CD = #{sggCd}
AND T.TASK_SE_CD = #{taskSeCd}
<include refid="utility.orderBy" />
</select>
<select id="selectAdvntceYmdInfo" parameterType="map" resultType="dataobject">/* 사전통지 정보 객체 가져오기(taskInfoMapper.selectTaskInfos) */
<select id="selectAdvntceYmdInfo" parameterType="map" resultType="dataobject">/* 사전통지 정보 객체 가져오기(taskMapper.selectAdvntceYmdInfo) */
SELECT SGG_CD /* 시군구 코드 */
, TASK_SE_CD /* 업무 구분 코드 */
, ADVNTCE_DAYCNT /* 사전통지 일수 */
@ -72,15 +72,15 @@
, DATE_FORMAT(CURRENT_DATE, '%Y') AS FYR /* 회계 연도 */
, DATE_FORMAT(CURRENT_DATE, '%Y%m%d') AS LEVY_YMD /* 부과 일자 */
, DATE_FORMAT(DATE_ADD(CURRENT_DATE, INTERVAL ADVNTCE_DAYCNT DAY), '%Y%m%d') AS DUDT_YMD /* 납기 일자 */
FROM TB_TASK_INFO
FROM TB_TASK
WHERE SGG_CD = #{sggCd}
AND TASK_SE_CD = #{taskSeCd}
<include refid="utility.orderBy" />
</select>
<insert id="insertTaskInfo" parameterType="map">/* 업무 정보 등록(taskInfoMapper.insertTaskInfo) */
<insert id="insertTask" parameterType="map">/* 업무 정보 등록(taskMapper.insertTask) */
INSERT
INTO TB_TASK_INFO (
INTO TB_TASK (
SGG_CD /* 시군구 코드 */
, TASK_SE_CD /* 업무 구분 코드 */
, TASK_SE_NM /* 업무 구분 명 */
@ -98,16 +98,16 @@
, MDFR /* 수정자 */
)
VALUES (
#{taskInfo.sggCd} /* 시군구 코드 */
, #{taskInfo.taskSeCd} /* 업무 구분 코드 */
, #{taskInfo.taskSeNm} /* 업무 구분 명 */
, #{taskInfo.advntceDaycnt} /* 사전통지 일수 */
, #{taskInfo.advntceRductRt} /* 사전통지 감경 율 */
, #{taskInfo.wksnRductRt} /* 사회적약자 감경 율 */
, #{taskInfo.ffnlgAdtnYmd} /* 과태료 가산 일자 */
, #{taskInfo.ffnlgAdtnRt} /* 과태료 가산 율 */
, #{taskInfo.ffnlgInadtnRt} /* 과태료 중가산 율 */
, #{taskInfo.ffnlgInadtnMxmmCnt} /* 과태료 중가산 최대 수 */
#{task.sggCd} /* 시군구 코드 */
, #{task.taskSeCd} /* 업무 구분 코드 */
, #{task.taskSeNm} /* 업무 구분 명 */
, #{task.advntceDaycnt} /* 사전통지 일수 */
, #{task.advntceRductRt} /* 사전통지 감경 율 */
, #{task.wksnRductRt} /* 사회적약자 감경 율 */
, #{task.ffnlgAdtnYmd} /* 과태료 가산 일자 */
, #{task.ffnlgAdtnRt} /* 과태료 가산 율 */
, #{task.ffnlgInadtnRt} /* 과태료 중가산 율 */
, #{task.ffnlgInadtnMxmmCnt} /* 과태료 중가산 최대 수 */
, 'Y' /* 사용 여부 */
, <include refid="utility.now" /> /* 등록 일시 */
, #{currentUser.id} /* 등록자 */
@ -116,30 +116,30 @@
)
</insert>
<update id="updateTaskInfo" parameterType="map">/* 업무 정보 수정(taskInfoMapper.updateTaskInfo) */
UPDATE TB_TASK_INFO
SET TASK_SE_NM = #{taskInfo.taskSeNm} /* 업무 구분 명 */
, ADVNTCE_DAYCNT = #{taskInfo.advntceDaycnt} /* 사전통지 일수 */
, ADVNTCE_RDUCT_RT = #{taskInfo.advntceRductRt} /* 사전통지 감경 율 */
, WKSN_RDUCT_RT = #{taskInfo.wksnRductRt} /* 사회적약자 감경 율 */
, FFNLG_ADTN_YMD = #{taskInfo.ffnlgAdtnYmd} /* 과태료 가산 일자 */
, FFNLG_ADTN_RT = #{taskInfo.ffnlgAdtnRt} /* 과태료 가산 율 */
, FFNLG_INADTN_RT = #{taskInfo.ffnlgInadtnRt} /* 과태료 중가산 율 */
, FFNLG_INADTN_MXMM_CNT = #{taskInfo.ffnlgInadtnMxmmCnt} /* 과태료 중가산 최대 수 */
<update id="updateTask" parameterType="map">/* 업무 정보 수정(taskMapper.updateTask) */
UPDATE TB_TASK
SET TASK_SE_NM = #{task.taskSeNm} /* 업무 구분 명 */
, ADVNTCE_DAYCNT = #{task.advntceDaycnt} /* 사전통지 일수 */
, ADVNTCE_RDUCT_RT = #{task.advntceRductRt} /* 사전통지 감경 율 */
, WKSN_RDUCT_RT = #{task.wksnRductRt} /* 사회적약자 감경 율 */
, FFNLG_ADTN_YMD = #{task.ffnlgAdtnYmd} /* 과태료 가산 일자 */
, FFNLG_ADTN_RT = #{task.ffnlgAdtnRt} /* 과태료 가산 율 */
, FFNLG_INADTN_RT = #{task.ffnlgInadtnRt} /* 과태료 중가산 율 */
, FFNLG_INADTN_MXMM_CNT = #{task.ffnlgInadtnMxmmCnt} /* 과태료 중가산 최대 수 */
, MDFCN_DT = <include refid="utility.now" /> /* 수정 일시 */
, MDFR = #{currentUser.id} /* 수정자 */
WHERE SGG_CD = #{taskInfo.sggCd}
AND TASK_SE_CD = #{taskInfo.taskSeCd}
WHERE SGG_CD = #{task.sggCd}
AND TASK_SE_CD = #{task.taskSeCd}
AND USE_YN = 'Y'
</update>
<update id="deleteTaskInfo" parameterType="map">/* 업무 정보 삭제(taskInfoMapper.deleteTaskInfo) */
UPDATE TB_TASK_INFO
<update id="deleteTask" parameterType="map">/* 업무 정보 삭제(taskMapper.deleteTask) */
UPDATE TB_TASK
SET USE_YN = 'N'
, MDFCN_DT = <include refid="utility.now" />
, MDFR = #{currentUser.id}
WHERE SGG_CD = #{taskInfo.sggCd}
AND TASK_SE_CD = #{taskInfo.taskSeCd}
WHERE SGG_CD = #{task.sggCd}
AND TASK_SE_CD = #{task.taskSeCd}
AND USE_YN = 'Y'
</update>

@ -0,0 +1,176 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cokr.xit.fims.cmmn.dao.VltnMapper">
<!-- 위반 정보 정보 매퍼
========== 변경 이력 ==========
2023-10-16 JoJH 최초 작성
============================ -->
<resultMap id="vltnRow" type="cokr.xit.fims.cmmn.Vltn">
<result property="vltnId" column="VLTN_ID" /> <!-- 위반 ID -->
<result property="sggCd" column="SGG_CD" /> <!-- 시군구 코드 -->
<result property="taskSeCd" column="TASK_SE_CD" /> <!-- 업무 구분 코드 -->
<result property="vltnCd" column="VLTN_CD" /> <!-- 위반 코드 -->
<result property="vltnArtcl" column="VLTN_ARTCL" /> <!-- 위반 항목 -->
<result property="vltnLawNm" column="VLTN_LAW_NM" /> <!-- 위반 법 명 -->
<result property="vltnLaw1" column="VLTN_LAW1" /> <!-- 위반 법1 -->
<result property="vltnLaw2" column="VLTN_LAW2" /> <!-- 위반 법2 -->
<result property="vltnLawEtc" column="VLTN_LAW_ETC" /> <!-- 위반 법 기타 -->
<result property="acntgSeCd" column="ACNTG_SE_CD" /> <!-- 회계 구분 코드 -->
<result property="acntgSeNm" column="ACNTG_SE_NM" /> <!-- 회계 구분 명 -->
<result property="txitmCd" column="TXITM_CD" /> <!-- 세목 코드 -->
<result property="txitmNm" column="TXITM_NM" /> <!-- 세목 명 -->
<result property="operItemCd" column="OPER_ITEM_CD" /> <!-- 운영 항목 코드 -->
<result property="operItemNm" column="OPER_ITEM_NM" /> <!-- 운영 항목 명 -->
<result property="spclBizCd" column="SPCL_BIZ_CD" /> <!-- 특별회계 사업 코드 -->
<result property="useYN" column="USE_YN" /> <!-- 사용 여부 -->
<result property="createdAt" column="REG_DT" /> <!-- 등록 일시 -->
<result property="createdBy" column="RGTR" /> <!-- 등록자 -->
<result property="lastModified" column="MDFCN_DT" /> <!-- 수정 일시 -->
<result property="modifiedBy" column="MDFR" /> <!-- 수정자 -->
</resultMap>
<sql id="select">
SELECT V.VLTN_ID /* 위반 ID */
, V.SGG_CD /* 시군구 코드 */
, V.TASK_SE_CD /* 업무 구분 코드 */
, V.VLTN_CD /* 위반 코드 */
, V.VLTN_ARTCL /* 위반 항목 */
, V.VLTN_LAW_NM /* 위반 법 명 */
, V.VLTN_LAW1 /* 위반 법1 */
, V.VLTN_LAW2 /* 위반 법2 */
, V.VLTN_LAW_ETC /* 위반 법 기타 */
, V.ACNTG_SE_CD /* 회계 구분 코드 */
, V.ACNTG_SE_NM /* 회계 구분 명 */
, V.TXITM_CD /* 세목 코드 */
, V.TXITM_NM /* 세목 명 */
, V.OPER_ITEM_CD /* 운영 항목 코드 */
, V.OPER_ITEM_NM /* 운영 항목 명 */
, V.SPCL_BIZ_CD /* 특별회계 사업 코드 */
, V.USE_YN /* 사용 여부 */
, V.REG_DT /* 등록 일시 */
, V.RGTR /* 등록자 */
, V.MDFCN_DT /* 수정 일시 */
, V.MDFR /* 수정자 */
, <include refid="utility.today" /> AS TODAY /* 오늘 일자 */
, (SELECT GET_CODE_NM('FIM054', V.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM /* 업무 구분 명 */
FROM TB_VLTN V
</sql>
<select id="selectVltnList" parameterType="map" resultType="dataobject">/* 위반 정보 목록 조회(vltnMapper.selectVltnList) */
<include refid="utility.paging-prefix" />
<include refid="select" />
WHERE V.SGG_CD = #{sggCd}
AND V.TASK_SE_CD = #{taskSeCd}
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />
</select>
<select id="selectVltns" parameterType="map" resultType="dataobject">/* 위반 정보 객체 가져오기(vltnMapper.selectVltns) */
<include refid="select" />
WHERE V.SGG_CD = #{sggCd}
AND V.TASK_SE_CD = #{taskSeCd}
<if test="vltnId != null">
AND V.VLTN_ID = #{vltnId}
</if>
<if test="vltnCd != null">
AND V.VLTN_CD = #{vltnCd}
</if>
<if test="vltnArtcl != null">
AND V.VLTN_ARTCL = #{vltnArtcl}
</if>
<if test="acntgSeCd != null">
AND V.ACNTG_SE_CD = #{acntgSeCd}
</if>
<if test="txitmCd != null">
AND V.TXITM_CD = #{txitmCd}
</if>
<if test="useYN != null">
AND V.USE_YN = #{useYN}
</if>
<include refid="utility.orderBy" />
</select>
<insert id="insertVltn" parameterType="map">/* 위반 정보 등록(vltnMapper.insertVltn) */
INSERT
INTO TB_VLTN (
VLTN_ID /* 위반 ID */
, SGG_CD /* 시군구 코드 */
, TASK_SE_CD /* 업무 구분 코드 */
, VLTN_CD /* 위반 코드 */
, VLTN_ARTCL /* 위반 항목 */
, VLTN_LAW_NM /* 위반 법 명 */
, VLTN_LAW1 /* 위반 법1 */
, VLTN_LAW2 /* 위반 법2 */
, VLTN_LAW_ETC /* 위반 법 기타 */
, ACNTG_SE_CD /* 회계 구분 코드 */
, ACNTG_SE_NM /* 회계 구분 명 */
, TXITM_CD /* 세목 코드 */
, TXITM_NM /* 세목 명 */
, OPER_ITEM_CD /* 운영 항목 코드 */
, OPER_ITEM_NM /* 운영 항목 명 */
, SPCL_BIZ_CD /* 특별회계 사업 코드 */
, USE_YN /* 사용 여부 */
, REG_DT /* 등록 일시 */
, RGTR /* 등록자 */
, MDFCN_DT /* 수정 일시 */
, MDFR /* 수정자 */
)
VALUES (
#{vltn.vltnId} /* 위반 ID */
, #{vltn.sggCd} /* 시군구 코드 */
, #{vltn.taskSeCd} /* 업무 구분 코드 */
, #{vltn.vltnCd} /* 위반 코드 */
, #{vltn.vltnArtcl} /* 위반 항목 */
, #{vltn.vltnLawNm} /* 위반 법 명 */
, #{vltn.vltnLaw1} /* 위반 법1 */
, #{vltn.vltnLaw2} /* 위반 법2 */
, #{vltn.vltnLawEtc} /* 위반 법 기타 */
, #{vltn.acntgSeCd} /* 회계 구분 코드 */
, #{vltn.acntgSeNm} /* 회계 구분 명 */
, #{vltn.txitmCd} /* 세목 코드 */
, #{vltn.txitmNm} /* 세목 명 */
, #{vltn.operItemCd} /* 운영 항목 코드 */
, #{vltn.operItemNm} /* 운영 항목 명 */
, #{vltn.spclBizCd} /* 특별회계 사업 코드 */
, 'Y' /* 사용 여부 */
, <include refid="utility.now" /> /* 등록 일시 */
, #{vltn.createdBy} /* 등록자 */
, <include refid="utility.now" /> /* 수정 일시 */
, #{vltn.modifiedBy} /* 수정자 */
)
</insert>
<update id="updateVltn" parameterType="map">/* 위반 정보 수정(vltnMapper.updateVltn) */
UPDATE TB_VLTN
SET VLTN_CD = #{vltn.vltnCd} /* 위반 코드 */
, VLTN_ARTCL = #{vltn.vltnArtcl} /* 위반 항목 */
, VLTN_LAW_NM = #{vltn.vltnLawNm} /* 위반 법 명 */
, VLTN_LAW1 = #{vltn.vltnLaw1} /* 위반 법1 */
, VLTN_LAW2 = #{vltn.vltnLaw2} /* 위반 법2 */
, VLTN_LAW_ETC = #{vltn.vltnLawEtc} /* 위반 법 기타 */
, ACNTG_SE_CD = #{vltn.acntgSeCd} /* 회계 구분 코드 */
, ACNTG_SE_NM = #{vltn.acntgSeNm} /* 회계 구분 명 */
, TXITM_CD = #{vltn.txitmCd} /* 세목 코드 */
, TXITM_NM = #{vltn.txitmNm} /* 세목 명 */
, OPER_ITEM_CD = #{vltn.operItemCd} /* 운영 항목 코드 */
, OPER_ITEM_NM = #{vltn.operItemNm} /* 운영 항목 명 */
, SPCL_BIZ_CD = #{vltn.spclBizCd} /* 특별회계 사업 코드 */
, MDFCN_DT = <include refid="utility.now" /> /* 수정 일시 */
, MDFR = #{vltn.modifiedBy} /* 수정자 */
WHERE VLTN_ID = #{vltn.vltnId}
AND USE_YN = 'Y'
</update>
<update id="deleteVltn" parameterType="map">/* 위반 정보 삭제(vltnMapper.deleteVltn) */
UPDATE TB_VLTN
SET USE_YN = 'N' /* 사용 여부 */
, MDFCN_DT = <include refid="utility.now" /> /* 수정 일시 */
, MDFR = #{vltn.modifiedBy} /* 수정자 */
WHERE VLTN_ID = #{vltn.vltnId}
AND USE_YN = 'Y'
</update>
</mapper>

@ -1,176 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cokr.xit.fims.cmmn.dao.VltnInfoMapper">
<!-- 위반 정보 정보 매퍼
========== 변경 이력 ==========
2023-10-16 JoJH 최초 작성
============================ -->
<resultMap id="vltnInfoRow" type="cokr.xit.fims.cmmn.VltnInfo">
<result property="vltnId" column="VLTN_ID" /> <!-- 위반 ID -->
<result property="sggCd" column="SGG_CD" /> <!-- 시군구 코드 -->
<result property="taskSeCd" column="TASK_SE_CD" /> <!-- 업무 구분 코드 -->
<result property="vltnCd" column="VLTN_CD" /> <!-- 위반 코드 -->
<result property="vltnArtcl" column="VLTN_ARTCL" /> <!-- 위반 항목 -->
<result property="vltnLawNm" column="VLTN_LAW_NM" /> <!-- 위반 법 명 -->
<result property="vltnLaw1" column="VLTN_LAW1" /> <!-- 위반 법1 -->
<result property="vltnLaw2" column="VLTN_LAW2" /> <!-- 위반 법2 -->
<result property="vltnLawEtc" column="VLTN_LAW_ETC" /> <!-- 위반 법 기타 -->
<result property="acntgSeCd" column="ACNTG_SE_CD" /> <!-- 회계 구분 코드 -->
<result property="acntgSeNm" column="ACNTG_SE_NM" /> <!-- 회계 구분 명 -->
<result property="txitmCd" column="TXITM_CD" /> <!-- 세목 코드 -->
<result property="txitmNm" column="TXITM_NM" /> <!-- 세목 명 -->
<result property="operItemCd" column="OPER_ITEM_CD" /> <!-- 운영 항목 코드 -->
<result property="operItemNm" column="OPER_ITEM_NM" /> <!-- 운영 항목 명 -->
<result property="spclBizCd" column="SPCL_BIZ_CD" /> <!-- 특별회계 사업 코드 -->
<result property="useYN" column="USE_YN" /> <!-- 사용 여부 -->
<result property="createdAt" column="REG_DT" /> <!-- 등록 일시 -->
<result property="createdBy" column="RGTR" /> <!-- 등록자 -->
<result property="lastModified" column="MDFCN_DT" /> <!-- 수정 일시 -->
<result property="modifiedBy" column="MDFR" /> <!-- 수정자 -->
</resultMap>
<sql id="select">
SELECT VI.VLTN_ID /* 위반 ID */
, VI.SGG_CD /* 시군구 코드 */
, VI.TASK_SE_CD /* 업무 구분 코드 */
, VI.VLTN_CD /* 위반 코드 */
, VI.VLTN_ARTCL /* 위반 항목 */
, VI.VLTN_LAW_NM /* 위반 법 명 */
, VI.VLTN_LAW1 /* 위반 법1 */
, VI.VLTN_LAW2 /* 위반 법2 */
, VI.VLTN_LAW_ETC /* 위반 법 기타 */
, VI.ACNTG_SE_CD /* 회계 구분 코드 */
, VI.ACNTG_SE_NM /* 회계 구분 명 */
, VI.TXITM_CD /* 세목 코드 */
, VI.TXITM_NM /* 세목 명 */
, VI.OPER_ITEM_CD /* 운영 항목 코드 */
, VI.OPER_ITEM_NM /* 운영 항목 명 */
, VI.SPCL_BIZ_CD /* 특별회계 사업 코드 */
, VI.USE_YN /* 사용 여부 */
, VI.REG_DT /* 등록 일시 */
, VI.RGTR /* 등록자 */
, VI.MDFCN_DT /* 수정 일시 */
, VI.MDFR /* 수정자 */
, <include refid="utility.today" /> AS TODAY /* 오늘 일자 */
, (SELECT GET_CODE_NM('FIM054', VI.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM /* 업무 구분 명 */
FROM TB_VLTN_INFO VI
</sql>
<select id="selectVltnInfoList" parameterType="map" resultType="dataobject">/* 위반 정보 목록 조회(vltnInfoMapper.selectVltnInfoList) */
<include refid="utility.paging-prefix" />
<include refid="select" />
WHERE VI.SGG_CD = #{sggCd}
AND VI.TASK_SE_CD = #{taskSeCd}
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />
</select>
<select id="selectVltnInfos" parameterType="map" resultType="dataobject">/* 위반 정보 객체 가져오기(vltnInfoMapper.selectVltnInfos) */
<include refid="select" />
WHERE VI.SGG_CD = #{sggCd}
AND VI.TASK_SE_CD = #{taskSeCd}
<if test="vltnId != null">
AND VI.VLTN_ID = #{vltnId}
</if>
<if test="vltnCd != null">
AND VI.VLTN_CD = #{vltnCd}
</if>
<if test="vltnArtcl != null">
AND VI.VLTN_ARTCL = #{vltnArtcl}
</if>
<if test="acntgSeCd != null">
AND VI.ACNTG_SE_CD = #{acntgSeCd}
</if>
<if test="txitmCd != null">
AND VI.TXITM_CD = #{txitmCd}
</if>
<if test="useYN != null">
AND VI.USE_YN = #{useYN}
</if>
<include refid="utility.orderBy" />
</select>
<insert id="insertVltnInfo" parameterType="map">/* 위반 정보 등록(vltnInfoMapper.insertVltnInfo) */
INSERT
INTO TB_VLTN_INFO (
VLTN_ID /* 위반 ID */
, SGG_CD /* 시군구 코드 */
, TASK_SE_CD /* 업무 구분 코드 */
, VLTN_CD /* 위반 코드 */
, VLTN_ARTCL /* 위반 항목 */
, VLTN_LAW_NM /* 위반 법 명 */
, VLTN_LAW1 /* 위반 법1 */
, VLTN_LAW2 /* 위반 법2 */
, VLTN_LAW_ETC /* 위반 법 기타 */
, ACNTG_SE_CD /* 회계 구분 코드 */
, ACNTG_SE_NM /* 회계 구분 명 */
, TXITM_CD /* 세목 코드 */
, TXITM_NM /* 세목 명 */
, OPER_ITEM_CD /* 운영 항목 코드 */
, OPER_ITEM_NM /* 운영 항목 명 */
, SPCL_BIZ_CD /* 특별회계 사업 코드 */
, USE_YN /* 사용 여부 */
, REG_DT /* 등록 일시 */
, RGTR /* 등록자 */
, MDFCN_DT /* 수정 일시 */
, MDFR /* 수정자 */
)
VALUES (
#{vltnInfo.vltnId} /* 위반 ID */
, #{vltnInfo.sggCd} /* 시군구 코드 */
, #{vltnInfo.taskSeCd} /* 업무 구분 코드 */
, #{vltnInfo.vltnCd} /* 위반 코드 */
, #{vltnInfo.vltnArtcl} /* 위반 항목 */
, #{vltnInfo.vltnLawNm} /* 위반 법 명 */
, #{vltnInfo.vltnLaw1} /* 위반 법1 */
, #{vltnInfo.vltnLaw2} /* 위반 법2 */
, #{vltnInfo.vltnLawEtc} /* 위반 법 기타 */
, #{vltnInfo.acntgSeCd} /* 회계 구분 코드 */
, #{vltnInfo.acntgSeNm} /* 회계 구분 명 */
, #{vltnInfo.txitmCd} /* 세목 코드 */
, #{vltnInfo.txitmNm} /* 세목 명 */
, #{vltnInfo.operItemCd} /* 운영 항목 코드 */
, #{vltnInfo.operItemNm} /* 운영 항목 명 */
, #{vltnInfo.spclBizCd} /* 특별회계 사업 코드 */
, 'Y' /* 사용 여부 */
, <include refid="utility.now" /> /* 등록 일시 */
, #{vltnInfo.createdBy} /* 등록자 */
, <include refid="utility.now" /> /* 수정 일시 */
, #{vltnInfo.modifiedBy} /* 수정자 */
)
</insert>
<update id="updateVltnInfo" parameterType="map">/* 위반 정보 수정(vltnInfoMapper.updateVltnInfo) */
UPDATE TB_VLTN_INFO
SET VLTN_CD = #{vltnInfo.vltnCd} /* 위반 코드 */
, VLTN_ARTCL = #{vltnInfo.vltnArtcl} /* 위반 항목 */
, VLTN_LAW_NM = #{vltnInfo.vltnLawNm} /* 위반 법 명 */
, VLTN_LAW1 = #{vltnInfo.vltnLaw1} /* 위반 법1 */
, VLTN_LAW2 = #{vltnInfo.vltnLaw2} /* 위반 법2 */
, VLTN_LAW_ETC = #{vltnInfo.vltnLawEtc} /* 위반 법 기타 */
, ACNTG_SE_CD = #{vltnInfo.acntgSeCd} /* 회계 구분 코드 */
, ACNTG_SE_NM = #{vltnInfo.acntgSeNm} /* 회계 구분 명 */
, TXITM_CD = #{vltnInfo.txitmCd} /* 세목 코드 */
, TXITM_NM = #{vltnInfo.txitmNm} /* 세목 명 */
, OPER_ITEM_CD = #{vltnInfo.operItemCd} /* 운영 항목 코드 */
, OPER_ITEM_NM = #{vltnInfo.operItemNm} /* 운영 항목 명 */
, SPCL_BIZ_CD = #{vltnInfo.spclBizCd} /* 특별회계 사업 코드 */
, MDFCN_DT = <include refid="utility.now" /> /* 수정 일시 */
, MDFR = #{vltnInfo.modifiedBy} /* 수정자 */
WHERE VLTN_ID = #{vltnInfo.vltnId}
AND USE_YN = 'Y'
</update>
<update id="deleteVltnInfo" parameterType="map">/* 위반 정보 삭제(vltnInfoMapper.deleteVltnInfo) */
UPDATE TB_VLTN_INFO
SET USE_YN = 'N' /* 사용 여부 */
, MDFCN_DT = <include refid="utility.now" /> /* 수정 일시 */
, MDFR = #{vltnInfo.modifiedBy} /* 수정자 */
WHERE VLTN_ID = #{vltnInfo.vltnId}
AND USE_YN = 'Y'
</update>
</mapper>

@ -106,7 +106,7 @@
, C.CRDN_STTS_CHG_DT <!-- 단속 상태 변경 일시 -->
, C.LINK_TBL_NM <!-- 연계 테이블 명 -->
, C.LINK_ID <!-- 연계 ID -->
, (SELECT VLTN_CD FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) AS VLTN_CD
, (SELECT VLTN_CD FROM TB_VLTN WHERE VLTN_ID = C.VLTN_ID) AS VLTN_CD
, CA.CRDN_SE_CD
, CA.TEAM_ID
, CA.DTL_CRDN_PLC

@ -7,7 +7,7 @@
<selectKey resultType="string" keyProperty="crdnId" keyColumn="NEW_ID" order="BEFORE">
SELECT
CONCAT(DATE_FORMAT(CURRENT_DATE, '%Y'), LPAD(CAST(IFNULL(MAX(SUBSTRING(CRDN_ID,5)) + 1, 1) AS INT), 16, '0'))
AS NEW_ID
AS NEW_ID
FROM TB_CRDN
</selectKey>
INSERT INTO TB_CRDN (
@ -71,9 +71,9 @@ INSERT INTO TB_CRDN (
, #{crdnStdgNm} <!-- 단속 법정동 명 -->
, #{crdnRoadNm} <!-- 단속 도로 명 -->
, #{crdnPlc} <!-- 단속 장소 -->
, (SELECT A.VLTN_ID
FROM TB_VLTN_INFO A
WHERE A.SGG_CD = #{sggCd}
, (SELECT A.VLTN_ID
FROM TB_VLTN A
WHERE A.SGG_CD = #{sggCd}
AND A.TASK_SE_CD = #{taskSeCd}
AND A.VLTN_CD = #{vltnCd}) <!-- 위반 ID -->
, #{gpsX} <!-- GPS X -->

@ -8,9 +8,9 @@
<include refid="utility.paging-prefix"/>
SELECT C.CRDN_ID <!-- 단속 ID -->
, C.SGG_CD <!-- 시군구 코드 -->
, (SELECT SGG_NM FROM TB_SGG_INFO WHERE SGG_CD = C.SGG_CD) AS SGG_NM
, (SELECT SGG_NM FROM TB_SGG WHERE SGG_CD = C.SGG_CD) AS SGG_NM
, C.TASK_SE_CD <!-- 업무 구분 코드 -->
, (SELECT GET_CODE_NM('FIM054', C.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM
, (SELECT GET_CODE_NM('FIM054', C.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM
, C.CRDN_REG_SE_CD <!-- 단속 등록 구분 코드 -->
, C.CRDN_INPT_SE_CD <!-- 단속 입력 구분 코드 -->
, C.LINK_TBL_NM <!-- 연계 테이블 명 -->
@ -25,7 +25,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.CRDN_ROAD_NM <!-- 단속 도로 명 -->
, C.CRDN_PLC <!-- 단속 장소 -->
, C.VLTN_ID <!-- 위반 ID -->
, (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) AS VLTN_ARTCL
, (SELECT VLTN_ARTCL FROM TB_VLTN WHERE VLTN_ID = C.VLTN_ID) AS VLTN_ARTCL
, C.GPS_X <!-- GPS X -->
, C.GPS_Y <!-- GPS Y -->
, C.ATCH_FILE_CNT <!-- 첨부 파일 수 -->
@ -56,7 +56,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, CA.CRDN_SE_CD <!-- 단속 구분 코드 -->
, CA.DTL_CRDN_PLC <!-- 상세 단속 장소 -->
, CA.TEAM_ID <!-- 조 ID -->
, TI.TEAM_NM <!-- 조 명 -->
, T.TEAM_NM <!-- 조 명 -->
, CA.CRDN_SPAREA_CD <!-- 단속 특별구역 코드 -->
, (SELECT GET_CODE_NM('FIM007', CA.CRDN_SPAREA_CD) FROM DUAL) AS CRDN_SPAREA_NM
, CA.CRDN_BGNG_TM <!-- 단속 시작 시각 -->
@ -103,7 +103,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.DEL_DT
FROM TB_CRDN C
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID)
LEFT OUTER JOIN TB_TEAM T ON (CA.TEAM_ID = T.TEAM_ID)
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID)
@ -178,7 +178,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
, C.VHRNO <!-- 차량번호 -->
, C.CRDN_PLC <!-- 단속 장소 -->
, (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) AS VLTN_ARTCL
, (SELECT VLTN_ARTCL FROM TB_VLTN WHERE VLTN_ID = C.VLTN_ID) AS VLTN_ARTCL
, C.DEL_YN
, C.RGTR
, C.REG_DT
@ -289,7 +289,7 @@ SELECT GROUP_CONCAT(C.CRDN_ID) AS CRDN_ID_LIST <!-- 단속 ID -->
, COUNT(*) AS CRDN_CNT <!-- 단속건수 -->
FROM TB_CRDN C
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID)
LEFT OUTER JOIN TB_TEAM T ON (CA.TEAM_ID = T.TEAM_ID)
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
WHERE C.DEL_YN = 'N'
AND C.SGG_CD = #{sggCd}
@ -312,7 +312,7 @@ SELECT GROUP_CONCAT(C.CRDN_ID) AS CRDN_ID_LIST <!-- 단속 ID -->
<choose>
<when test="by == 'crdnYmd'">C.CRDN_YMD</when>
<when test="by == 'crdnInptSeCd'">C.CRDN_INPT_SE_CD</when>
<when test="by == 'teamNm'">TI.TEAM_NM</when>
<when test="by == 'teamNm'">T.TEAM_NM</when>
<when test="by == 'vhrno'">C.VHRNO</when>
<when test="by == 'crdnStdgNm'">C.CRDN_STDG_NM</when>
<when test="by == 'crdnPlc'">C.CRDN_PLC</when>
@ -358,7 +358,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.TASK_SE_CD <!-- 업무 구분 코드 -->
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속일시 -->
, C.CRDN_INPT_SE_CD <!-- 자료출처 -->
, TI.TEAM_NM <!-- 단속조 -->
, T.TEAM_NM <!-- 단속조 -->
, C.VHRNO <!-- 차량번호 -->
, C.CRDN_STDG_NM <!-- 단속 법정동 명 -->
, C.CRDN_PLC <!-- 단속장소 -->
@ -368,7 +368,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, P.RTPYR_NO <!-- 주민번호 -->
FROM TB_CRDN C
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID)
LEFT OUTER JOIN TB_TEAM T ON (CA.TEAM_ID = T.TEAM_ID)
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
WHERE C.DEL_YN = 'N'
AND C.SGG_CD = #{sggCd}
@ -398,7 +398,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, 0 AS BLNC <!-- 잔액 -->
FROM TB_CRDN C
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID)
LEFT OUTER JOIN TB_TEAM T ON (CA.TEAM_ID = T.TEAM_ID)
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
WHERE C.DEL_YN = 'N'
AND C.SGG_CD = #{sggCd}

@ -13,7 +13,7 @@ SELECT A.TEAM_ID
, A.TEAMER_4
, A.ETC_CN
, A.REG_DT
FROM TB_TEAM_INFO A
FROM TB_TEAM A
WHERE A.USE_YN = 'Y'
AND A.SGG_CD = #{sggCd}
AND A.TASK_SE_CD = #{taskSeCd}
@ -32,7 +32,7 @@ SELECT A.TEAM_ID
, A.ETC_CN
, A.REG_DT
, A.MDFCN_DT
FROM TB_TEAM_INFO A
FROM TB_TEAM A
WHERE A.USE_YN = 'N'
AND A.SGG_CD = #{sggCd}
AND A.TASK_SE_CD = #{taskSeCd}
@ -42,7 +42,7 @@ SELECT A.TEAM_ID
<update id="deleteTeamInfo" parameterType="cokr.xit.fims.crdn.Team">
/* 단속팀 정보 삭제(crdnTeamMapper.deleteTeamInfo) */
UPDATE TB_TEAM_INFO
UPDATE TB_TEAM
SET USE_YN = 'N'
, MDFCN_DT = <include refid="utility.now" />
, MDFR = #{removedBy}
@ -54,11 +54,11 @@ UPDATE TB_TEAM_INFO
<selectKey resultType="string" keyProperty="teamId" keyColumn="NEW_ID" order="BEFORE">
SELECT
LPAD(CAST(IFNULL(MAX(TEAM_ID) + 1, 1) AS INT), 10, '0')
AS NEW_ID
FROM TB_TEAM_INFO
AS NEW_ID
FROM TB_TEAM
</selectKey>
INSERT
INTO TB_TEAM_INFO (
INSERT
INTO TB_TEAM (
TEAM_ID
, SGG_CD
, TASK_SE_CD
@ -95,7 +95,7 @@ INSERT
<update id="updateTeamInfo" parameterType="cokr.xit.fims.crdn.Team">
/* 단속팀 정보 수정(crdnTeamMapper.updateTeamInfo) */
UPDATE TB_TEAM_INFO
UPDATE TB_TEAM
SET ETC_CN = #{etcCn}
, MDFCN_DT = <include refid="utility.now" />
, MDFR = #{modifiedBy}
@ -114,7 +114,7 @@ SELECT TEAM_ID
, TEAMER_3
, TEAMER_4
, ETC_CN
FROM TB_TEAM_INFO
FROM TB_TEAM
WHERE TEAM_NM = #{teamNm}
AND SGG_CD = #{sggCd}
AND TASK_SE_CD = #{taskSeCd}
@ -133,7 +133,7 @@ SELECT TEAM_ID
, TEAMER_3
, TEAMER_4
, ETC_CN
FROM TB_TEAM_INFO
FROM TB_TEAM
WHERE TEAM_ID = #{teamId}
</select>

@ -26,7 +26,7 @@
, CRDN_ROAD_NM = #{crdnRoadNm} <!-- 단속 도로 명 -->
, CRDN_PLC = #{crdnPlc} <!-- 단속 장소 -->
, VLTN_ID = (SELECT A.VLTN_ID
FROM TB_VLTN_INFO A
FROM TB_VLTN A
WHERE A.SGG_CD = #{sggCd}
AND A.TASK_SE_CD = #{taskSeCd}
AND A.VLTN_CD = #{vltnCd}) <!-- 위반 ID -->
@ -130,7 +130,7 @@
, CRDN_ROAD_NM = #{crdnRoadNm} /* 단속 도로 명 */
, CRDN_PLC = #{crdnPlc} /* 단속 장소 */
, VLTN_ID = (SELECT X.VLTN_ID
FROM TB_VLTN_INFO X
FROM TB_VLTN X
WHERE X.SGG_CD = #{sggCd}
AND X.TASK_SE_CD = #{taskSeCd}
AND X.VLTN_CD = #{vltnCd}) /* 위반 ID */

@ -9,7 +9,7 @@ SELECT CASE WHEN A.SGG_CD = B.SGG_CD THEN A.SGG_CD ELSE 'DIFF' END SGG_CD
, A.SGG_CD A_SGG
, B.SGG_CD B_SGG
FROM (SELECT SGG_CD, INST_CD
FROM TB_SGG_INFO
FROM TB_SGG
WHERE INST_CD IN (<foreach collection="institutes" item="institute" separator=",">#{institute}</foreach>)
) A
LEFT OUTER JOIN (SELECT SGG_CD, DEPT_CD

@ -34,15 +34,15 @@ SELECT A.ANS_WORDS_ID
<select id="selectLevyCaseWordsList" parameterType="cokr.xit.fims.crdn.CrdnQuery" resultType="dataobject">
/* 부과처리건 답변문구 목록 조회(answerWordsMapper.selectLevyCaseWordsList) */
SELECT (CASE
SELECT (CASE
WHEN B.DSTRBNC_YN = 'Y'
THEN CONCAT(A.VLTN_CD,'D')
ELSE A.VLTN_CD
ELSE A.VLTN_CD
END) AS VLTN_CASE_ID
, (CASE
, (CASE
WHEN B.DSTRBNC_YN = 'Y'
THEN CONCAT(A.VLTN_ARTCL,'(1면방해)')
ELSE A.VLTN_ARTCL
ELSE A.VLTN_ARTCL
END) AS VLTN_CASE_NM
, B.ANS_WORDS_ID
, B.PRCS_RSLT_CN
@ -53,7 +53,7 @@ SELECT (CASE
, VLTN_CD
, 'N' AS DSTRBNC_YN
, VLTN_ARTCL
FROM TB_VLTN_INFO
FROM TB_VLTN
WHERE SGG_CD = #{sggCd}
AND TASK_SE_CD = #{taskSeCd}
)
@ -65,18 +65,18 @@ SELECT (CASE
, VLTN_CD
, 'Y' AS DSTRBNC_YN
, VLTN_ARTCL
FROM TB_VLTN_INFO
FROM TB_VLTN
WHERE SGG_CD = #{sggCd}
AND TASK_SE_CD = #{taskSeCd}
AND VLTN_CD = '01'
)
</if>
) A
LEFT OUTER JOIN TB_CVLCPT_ANS_WORDS B
ON (A.SGG_CD = B.SGG_CD
AND A.TASK_SE_CD = B.TASK_SE_CD
LEFT OUTER JOIN TB_CVLCPT_ANS_WORDS B
ON (A.SGG_CD = B.SGG_CD
AND A.TASK_SE_CD = B.TASK_SE_CD
AND CONCAT('3',A.VLTN_CD) = B.ANS_RSN_CD
AND B.USE_YN = 'Y'
AND B.USE_YN = 'Y'
AND B.ANS_SE_CD = '3'
AND A.DSTRBNC_YN = B.DSTRBNC_YN)
ORDER BY A.VLTN_CD
@ -89,9 +89,9 @@ SELECT A.CODE AS LEVY_EXCL_RSN_CD
, B.ANS_WORDS_ID
, B.PRCS_RSLT_CN
FROM TB_CMN_CODE A
LEFT OUTER JOIN TB_CVLCPT_ANS_WORDS B
LEFT OUTER JOIN TB_CVLCPT_ANS_WORDS B
ON (A.CODE = B.ANS_RSN_CD
AND B.USE_YN = 'Y'
AND B.USE_YN = 'Y'
AND B.ANS_SE_CD = '2'
AND B.SGG_CD = #{sggCd}
AND B.TASK_SE_CD = #{taskSeCd}
@ -109,9 +109,9 @@ SELECT A.CODE AS LEVY_EXCL_RSN_CD
, B.PRCS_RSLT_CN
, (CASE WHEN B.USE_YN = 'Y' THEN '예' ELSE '아니오' END) AS USE_YN
FROM TB_CMN_CODE A
LEFT OUTER JOIN TB_CVLCPT_ANS_WORDS B
LEFT OUTER JOIN TB_CVLCPT_ANS_WORDS B
ON (A.CODE = B.ANS_RSN_CD
AND B.USE_YN = 'Y'
AND B.USE_YN = 'Y'
AND B.ANS_SE_CD = '1'
AND B.SGG_CD = #{sggCd}
AND B.TASK_SE_CD = #{taskSeCd}
@ -162,7 +162,7 @@ UPDATE TB_CVLCPT_BSC_WORDS
<selectKey resultType="string" keyProperty="ansWordsId" keyColumn="NEW_ID" order="BEFORE">
SELECT
LPAD(CAST(IFNULL(MAX(ANS_WORDS_ID) + 1, 1) AS INT), 10, '0')
AS NEW_ID
AS NEW_ID
FROM TB_CVLCPT_ANS_WORDS
</selectKey>
INSERT

@ -87,7 +87,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.CRDN_PLC <!-- 단속 장소 -->
, C.VLTN_ID <!-- 위반 ID -->
, (SELECT VLTN_ARTCL
FROM TB_VLTN_INFO
FROM TB_VLTN
WHERE VLTN_ID = C.VLTN_ID) AS VLTN_ARTCL <!-- 위반내용 -->
, C.GPS_X <!-- GPS X -->
, C.GPS_Y <!-- GPS Y -->
@ -158,7 +158,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.DEL_DT
FROM TB_CRDN C
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID)
LEFT OUTER JOIN TB_TEAM T ON (CA.TEAM_ID = T.TEAM_ID)
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID)
@ -205,7 +205,7 @@ WHERE C.DEL_YN = 'N'
</when>
<otherwise>
<if test="by == 'vltnArtcl'">
AND (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT('%', #{term}, '%')
AND (SELECT VLTN_ARTCL FROM TB_VLTN WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT('%', #{term}, '%')
</if>
</otherwise>
</choose>
@ -230,7 +230,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
, C.ATCH_FILE_CNT <!-- 첨부 파일 수 -->
, (SELECT VLTN_ARTCL
FROM TB_VLTN_INFO
FROM TB_VLTN
WHERE VLTN_ID = C.VLTN_ID) AS VLTN_ARTCL <!-- 위반내용 -->
, CC.CVLCPT_RCPT_NO <!-- 민원 접수 번호 -->
, CC.CVLCPT_LIST_NO <!-- 민원 목록 번호 -->
@ -280,7 +280,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
</when>
<otherwise>
<if test="by == 'vltnArtcl'">
AND (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT('%', #{term}, '%')
AND (SELECT VLTN_ARTCL FROM TB_VLTN WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT('%', #{term}, '%')
</if>
</otherwise>
</choose>
@ -315,7 +315,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
, C.CRDN_REG_SE_CD <!-- 단속 등록 구분 코드 -->
, C.CRDN_YMD <!-- 단속 일자 -->
, C.CRDN_TM <!-- 단속 시각 -->
, (SELECT VLTN_CD FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) AS VLTN_CD
, (SELECT VLTN_CD FROM TB_VLTN WHERE VLTN_ID = C.VLTN_ID) AS VLTN_CD
, C.CRDN_PLC <!-- 단속 장소 -->
, C.CRDN_STDG_NM <!-- 단속 법정동 -->
, C.VHRNO <!-- 차량번호 -->
@ -402,7 +402,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
SELECT C.CRDN_ID <!-- 단속 ID -->
, C.CRDN_REG_SE_CD <!-- 단속 등록 구분 코드 -->
, (SELECT VLTN_ARTCL
FROM TB_VLTN_INFO
FROM TB_VLTN
WHERE VLTN_ID = C.VLTN_ID) AS VLTN_ARTCL <!-- 위반내용 -->
, CC.CVLCPT_APLCNT_NM <!-- 민원 신청인 명 -->
, CC.CVLCPT_PRCS_PIC_NM <!-- 민원 처리 담당자 명 -->
@ -471,7 +471,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
</when>
<otherwise>
<if test="by == 'vltnArtcl'">
AND (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT('%', #{term}, '%')
AND (SELECT VLTN_ARTCL FROM TB_VLTN WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT('%', #{term}, '%')
</if>
</otherwise>
</choose>
@ -551,7 +551,7 @@ SELECT CC.CVLCPT_LINK_ID /* 민원 연계 ID */
, (SELECT DEPT_NM
FROM TB_DEPT D
WHERE D.DEPT_CD = U.DEPT_CD
AND D.SGG_CD = SI.SGG_CD
AND D.SGG_CD = S.SGG_CD
AND D.USE_YN = 'Y'
LIMIT 1
) AS CVLCPT_PRCS_DEPT_NM /* 민원 처리 부서 명 */
@ -560,7 +560,7 @@ SELECT CC.CVLCPT_LINK_ID /* 민원 연계 ID */
FROM TB_CRDN_CVLCPT CC
INNER JOIN TB_ESB_INTERFACE EI ON (CC.CVLCPT_LINK_ID = EI.INTERFACE_SEQ_N)
LEFT OUTER JOIN TB_USER U ON (CC.CVLCPT_PRCS_PIC = U.USER_ID)
LEFT OUTER JOIN TB_SGG_INFO SI ON (U.NSTT_CD = SI.INST_CD)
LEFT OUTER JOIN TB_SGG S ON (U.NSTT_CD = S.INST_CD)
WHERE CC.CVLCPT_LINK_ID = #{cvlcptLinkId}
</select>
@ -577,7 +577,7 @@ SELECT CC.CVLCPT_LINK_ID /* 민원 연계 ID */
, CRDN_STDG_NM = #{crdn.crdnStdgNm} /* 단속 법정동 명 */
, CRDN_PLC = #{crdn.crdnPlc} /* 단속 장소 */
, VLTN_ID = (SELECT A.VLTN_ID
FROM TB_VLTN_INFO A
FROM TB_VLTN A
WHERE A.SGG_CD = #{crdn.sggCd}
AND A.TASK_SE_CD = #{crdn.taskSeCd}
AND A.VLTN_CD = #{crdn.vltnCd}) /* 위반 ID */

@ -743,7 +743,7 @@ UPDATE TB_EPOST_RCPT_DTL SET
ELSE S.SGG_NM
END AS INST_CHIEF_NM <!-- 기관 장 명 -->
FROM TB_DEPT D
INNER JOIN TB_SGG_INFO S ON (DI.SGG_CD = SI.SGG_CD AND DI.INST_CD = SI.INST_CD)
INNER JOIN TB_SGG S ON (D.SGG_CD = S.SGG_CD AND D.INST_CD = S.INST_CD)
WHERE D.DEPT_CD = #{deptCd}
AND D.USE_YN = 'Y'
</select>

@ -236,7 +236,7 @@
, C.CRDN_ROAD_NM
, C.CRDN_PLC
, C.VLTN_ID
, (SELECT VLTN_CD FROM TB_VLTN_INFO X WHERE X.VLTN_ID=C.VLTN_ID AND X.SGG_CD=C.SGG_CD AND X.TASK_SE_CD=C.TASK_SE_CD) AS VLTN_CD
, (SELECT VLTN_CD FROM TB_VLTN X WHERE X.VLTN_ID=C.VLTN_ID AND X.SGG_CD=C.SGG_CD AND X.TASK_SE_CD=C.TASK_SE_CD) AS VLTN_CD
, C.GPS_X
, C.GPS_Y
, C.ATCH_FILE_CNT

@ -68,9 +68,9 @@
, (SELECT GET_CODE_NM('FIM002', CA.CRDN_SE_CD) FROM DUAL) AS CRDN_SE_NM /* 단속 구분 명 */
, (SELECT GET_CODE_NM('FIM007', CA.CRDN_SPAREA_CD) FROM DUAL) AS CRDN_SPAREA_NM /* 단속 특별구역 명 */
, (SELECT GET_CODE_NM('FIM034', CA.PARKNG_PSBLTY_RSLT_CD) FROM DUAL) AS PARKNG_PSBLTY_RSLT_NM /* 주차 가능 결과 명 */
, VI.VLTN_ID /* 위반 ID */
, VI.VLTN_CD /* 위반 코드 */
, VI.VLTN_ARTCL /* 위반 항목 */
, V.VLTN_ID /* 위반 ID */
, V.VLTN_CD /* 위반 코드 */
, V.VLTN_ARTCL /* 위반 항목 */
, P.RTPYR_ID /* 납부자 ID */
, P.RTPYR_SE_CD /* 납부자 구분 코드 */
, P.RTPYR_NO /* 납부자 번호 */
@ -88,11 +88,11 @@
, CC.CVLCPT_PRCS_CMPTN_DT /* 민원 처리 완료 일시 */
, (SELECT GET_CODE_NM('FIM017', CC.CVLCPT_PRCS_CD) FROM DUAL) AS CVLCPT_PRCS_NM /* 민원 처리 명 */
FROM TB_LEVY_EXCL LE
INNER JOIN TB_CRDN C ON (LE.CRDN_ID = C.CRDN_ID)
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
INNER JOIN TB_VLTN_INFO VI ON (C.VLTN_ID = VI.VLTN_ID)
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
INNER JOIN TB_CRDN C ON (LE.CRDN_ID = C.CRDN_ID)
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID)
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
</sql>
<select id="selectLevyExclList" parameterType="map" resultType="dataobject">/* 부과제외 대장 목록 조회(levyExclMapper.selectLevyExclList) */

@ -121,7 +121,7 @@
, R.RDUCT_RSN_CD <!-- 감경 사유 코드 -->
, R.ETC_CN AS RDUCT_ETC_CN <!-- 기타 내용 -->
, (CASE WHEN R.RDUCT_AMT IS NOT NULL THEN R.RDUCT_AMT
ELSE (SELECT C.FFNLG_CRDN_AMT*TI.WKSN_RDUCT_RT/100 FROM TB_TASK_INFO TI WHERE C.SGG_CD=TI.SGG_CD AND C.TASK_SE_CD=TI.TASK_SE_CD AND TI.USE_YN='Y')
ELSE (SELECT C.FFNLG_CRDN_AMT*T.WKSN_RDUCT_RT/100 FROM TB_TASK T WHERE C.SGG_CD=T.SGG_CD AND C.TASK_SE_CD=T.TASK_SE_CD AND T.USE_YN='Y')
END ) AS RDUCT_AMT <!-- 감경 금액 -->
FROM TB_OPNN_SBMSN OS
INNER JOIN TB_CRDN C ON (OS.CRDN_ID = C.CRDN_ID)
@ -294,10 +294,10 @@
, (CONCAT(OS.ANS_YMD, OS.ANS_TM)) AS ANS_YMD_TM <!-- 답변 일시 -->
, (SELECT C.FFNLG_CRDN_AMT*TI.WKSN_RDUCT_RT/100
FROM TB_TASK_INFO TI
WHERE C.SGG_CD = TI.SGG_CD AND C.TASK_SE_CD = TI.TASK_SE_CD
AND TI.USE_YN = 'Y') AS RDUCT_AMT <!-- 감경 금액 -->
, (SELECT C.FFNLG_CRDN_AMT*T.WKSN_RDUCT_RT/100
FROM TB_TASK T
WHERE C.SGG_CD = T.SGG_CD AND C.TASK_SE_CD = T.TASK_SE_CD
AND T.USE_YN = 'Y') AS RDUCT_AMT <!-- 감경 금액 -->
FROM TB_CRDN C
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_OPNN_SBMSN OS ON (C.CRDN_ID = OS.CRDN_ID AND OS.DEL_YN = 'N')

@ -121,9 +121,9 @@
, (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM /* 단속 상태 명 */
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = C.RGTR) AS RGTR_NM /* 등록자 명 */
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = C.MDFR) AS MDFR_NM /* 수정자 명 */
, VI.VLTN_ID /* 위반 ID */
, VI.VLTN_CD /* 위반 코드 */
, VI.VLTN_ARTCL /* 위반 항목 */
, V.VLTN_ID /* 위반 ID */
, V.VLTN_CD /* 위반 코드 */
, V.VLTN_ARTCL /* 위반 항목 */
, CC.CVLCPT_LINK_ID /* 민원 연계 ID */
, CC.CVLCPT_RCPT_YMD /* 민원 접수 일자 */
, CC.CVLCPT_APLY_NO /* 민원 신청 번호 */
@ -144,10 +144,10 @@
, P.DTL_ADDR /* 상세 주소 */
, L.LEVY_ID /* 부과 ID */
FROM TB_CRDN C
INNER JOIN TB_VLTN_INFO VI ON (C.VLTN_ID = VI.VLTN_ID)
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N')
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID)
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N')
WHERE C.SGG_CD = #{sggCd} /* 시군구 코드 */
AND C.TASK_SE_CD = #{taskSeCd} /* 업무 구분 코드 */
AND C.CRDN_STTS_CD BETWEEN '21' AND '31' /* 단속 상태 코드 */
@ -210,7 +210,7 @@
<when test="by == 'vhrno'"> C.VHRNO </when>
<when test="by == 'crdnStdgNm'"> C.CRDN_STDG_NM </when>
<when test="by == 'crdnPlc'"> C.CRDN_PLC </when>
<when test="by == 'vltnArtcl'"> VI.VLTN_ARTCL </when>
<when test="by == 'vltnArtcl'"> V.VLTN_ARTCL </when>
<when test="by == 'ffnlgCrdnAmt'"> C.FFNLG_CRDN_AMT </when>
<when test="by == 'ffnlgAmt'"> C.FFNLG_AMT </when>
<when test="by == 'advntceAmt'"> C.ADVNTCE_AMT </when>
@ -546,25 +546,25 @@
, C.MINUS_AMT
, C.RCVMT_AMT
, C.BFR_CRDN_ID
, VI.VLTN_CD /* 위반 코드 */
, VI.VLTN_ARTCL /* 위반 항목 */
, VI.VLTN_LAW_NM /* 위반 법 명 */
, VI.VLTN_LAW1 /* 위반 법1 */
, VI.VLTN_LAW2 /* 위반 법2 */
, VI.VLTN_LAW_ETC /* 위반 법 기타 */
, VI.ACNTG_SE_CD /* 회계 구분 코드 */
, VI.TXITM_CD /* 세목 코드 */
, VI.OPER_ITEM_CD /* 운영 항목 코드 */
, VI.SPCL_BIZ_CD /* 특별회계 사업 코드 */
, V.VLTN_CD /* 위반 코드 */
, V.VLTN_ARTCL /* 위반 항목 */
, V.VLTN_LAW_NM /* 위반 법 명 */
, V.VLTN_LAW1 /* 위반 법1 */
, V.VLTN_LAW2 /* 위반 법2 */
, V.VLTN_LAW_ETC /* 위반 법 기타 */
, V.ACNTG_SE_CD /* 회계 구분 코드 */
, V.TXITM_CD /* 세목 코드 */
, V.OPER_ITEM_CD /* 운영 항목 코드 */
, V.SPCL_BIZ_CD /* 특별회계 사업 코드 */
, L.LEVY_ID /* 부과 ID */
, <include refid="utility.today" /> AS TODAY /* 오늘 일자 */
, (SELECT GET_MASK_DATETIME(C.CRDN_YMD, '-', C.CRDN_TM, ':') FROM DUAL) AS CRDN_YMD_TM_MASK /* 단속 일시 마스크 */
, (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM /* 단속 상태 명 */
FROM TB_CRDN C
INNER JOIN TB_VLTN_INFO VI ON (C.VLTN_ID = VI.VLTN_ID AND C.SGG_CD = VI.SGG_CD AND C.TASK_SE_CD = VI.TASK_SE_CD AND VI.USE_YN = 'Y')
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N')
WHERE C.CRDN_ID = #{crdnId} /* 단속 ID */
AND C.DEL_YN = 'N' /* 삭제 여부 */
FROM TB_CRDN C
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID AND C.SGG_CD = V.SGG_CD AND C.TASK_SE_CD = V.TASK_SE_CD AND V.USE_YN = 'Y')
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N')
WHERE C.CRDN_ID = #{crdnId} /* 단속 ID */
AND C.DEL_YN = 'N' /* 삭제 여부 */
</select>
<select id="selectMaxLevyNo" parameterType="map" resultType="String">/* 고지번호 가져오기(levyMapper.selectMaxLevyNo) */

@ -255,8 +255,8 @@
, C.FFNLG_RDUCT_RT /* 과태료 감경 율 */
, C.FFNLG_AMT /* 과태료 금액 */
, C.CRDN_STTS_CD /* 단속 상태 코드 */
, TI.WKSN_RDUCT_RT /* 사회적약자 감경 율 */
, TI.ADVNTCE_RDUCT_RT /* 사전통지 감경 율 */
, T.WKSN_RDUCT_RT /* 사회적약자 감경 율 */
, T.ADVNTCE_RDUCT_RT /* 사전통지 감경 율 */
, P.RTPYR_ID /* 납부자 ID */
, P.RTPYR_NO /* 납부자 번호 */
, P.RTPYR_NM /* 납부자 명 */
@ -273,11 +273,11 @@
, <include refid="utility.today" /> AS TODAY /* 오늘 일자 */
, C.FFNLG_CRDN_AMT * TI.WKSN_RDUCT_RT / 100 AS CALC_RDUCT_AMT /* 감경 금액 */
, (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM /* 단속 상태 명 */
FROM TB_CRDN C
INNER JOIN TB_TASK_INFO TI ON (C.SGG_CD = TI.SGG_CD AND C.TASK_SE_CD = TI.TASK_SE_CD AND TI.USE_YN = 'Y')
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N')
LEFT OUTER JOIN TB_RDUCT R ON (C.CRDN_ID = R.CRDN_ID AND R.DEL_YN = 'N')
FROM TB_CRDN C
INNER JOIN TB_TASK T ON (C.SGG_CD = T.SGG_CD AND C.TASK_SE_CD = T.TASK_SE_CD AND T.USE_YN = 'Y')
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N')
LEFT OUTER JOIN TB_RDUCT R ON (C.CRDN_ID = R.CRDN_ID AND R.DEL_YN = 'N')
<where>
<if test="rductId != null">
AND R.RDUCT_ID = #{rductId} /* 감경 ID */

@ -139,9 +139,9 @@
, CA.CRDN_SE_CD <!-- 단속 구분 코드 -->
, CA.CRDN_SPAREA_CD <!-- 단속 특별구역 코드 -->
, CA.PARKNG_PSBLTY_RSLT_CD <!-- 주차 가능 결과 코드 -->
, VI.VLTN_ID <!-- 위반 ID -->
, VI.VLTN_CD <!-- 위반 코드 -->
, VI.VLTN_ARTCL <!-- 위반 항목 -->
, V.VLTN_ID <!-- 위반 ID -->
, V.VLTN_CD <!-- 위반 코드 -->
, V.VLTN_ARTCL <!-- 위반 항목 -->
, P.RTPYR_ID <!-- 납부자 ID -->
, P.RTPYR_SE_CD <!-- 납부자 구분 코드 -->
, P.RTPYR_NO <!-- 납부자 번호 -->
@ -179,10 +179,10 @@
, (L.LEVY_PCPTAX - L.RCVMT_PCPTAX - L.RDCAMT_PCPTAX) AS PCPTAX <!-- 본세 -->
, (L.LEVY_ADAMT - L.RCVMT_ADAMT - L.RDCAMT_ADAMT) AS ADAMT <!-- 가산금 -->
FROM TB_CRDN C
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
INNER JOIN TB_VLTN_INFO VI ON (C.VLTN_ID = VI.VLTN_ID)
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N')
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID)
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N')
WHERE C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
AND C.DEL_YN = 'N'
</select>

@ -211,7 +211,7 @@
<when test="by == 'vhrno'"> C.VHRNO </when>
<when test="by == 'crdnStdgNm'"> C.CRDN_STDG_NM </when>
<when test="by == 'crdnPlc'"> C.CRDN_PLC </when>
<when test="by == 'vltnArtcl'"> VI.VLTN_ARTCL </when>
<when test="by == 'vltnArtcl'"> V.VLTN_ARTCL </when>
<when test="by == 'ffnlgCrdnAmt'"> C.FFNLG_CRDN_AMT </when>
<when test="by == 'ffnlgAmt'"> C.FFNLG_AMT </when>
<when test="by == 'advntceAmt'"> C.ADVNTCE_AMT </when>

@ -144,9 +144,9 @@
, CA.PARKNG_PSBLTY_RSLT_CD /* 주차 가능 결과 코드 */
, CA.VLTN_NMTM /* 위반 횟수 */
, CA.OVTIME_YN /* 시간외 여부 */
, VI.VLTN_ID /* 위반 ID */
, VI.VLTN_CD /* 위반 코드 */
, VI.VLTN_ARTCL /* 위반 항목 */
, V.VLTN_ID /* 위반 ID */
, V.VLTN_CD /* 위반 코드 */
, V.VLTN_ARTCL /* 위반 항목 */
, CC.CVLCPT_LINK_ID /* 민원 연계 ID */
, CC.CVLCPT_RCPT_YMD /* 민원 접수 일자 */
, CC.CVLCPT_APLY_NO /* 민원 신청 번호 */
@ -184,7 +184,7 @@
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = C.MDFR) AS MDFR_NM /* 수정자 명 */
FROM TB_CRDN C
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
INNER JOIN TB_VLTN_INFO VI ON (C.VLTN_ID = VI.VLTN_ID)
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID)
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
@ -310,7 +310,7 @@
<when test="by == 'parkngPsbltyRsltCd'"> CA.PARKNG_PSBLTY_RSLT_CD </when>
<when test="by == 'vltnNmtm'"> CA.VLTN_NMTM </when>
<when test="by == 'ovtimeYn'"> CA.OVTIME_YN </when>
<when test="by == 'vltnArtcl'"> VI.VLTN_ARTCL </when>
<when test="by == 'vltnArtcl'"> V.VLTN_ARTCL </when>
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
<when test="by == 'rtpyrBrdt'"> P.RTPYR_BRDT </when>
@ -353,9 +353,9 @@
, S.TASK_SE_CD /* 업무 구분 코드 */
, S.SNDNG_REG_SE_CD /* 발송 등록 구분 코드 */
, S.SNDNG_SE_CD /* 발송 구분 코드 */
, VI.VLTN_ID /* 위반 ID */
, VI.VLTN_CD /* 위반 코드 */
, VI.VLTN_ARTCL /* 위반 항목 */
, V.VLTN_ID /* 위반 ID */
, V.VLTN_CD /* 위반 코드 */
, V.VLTN_ARTCL /* 위반 항목 */
, S.LEVY_BGNG_YMD /* 부과 시작 일자 */
, S.LEVY_END_YMD /* 부과 종료 일자 */
, S.SNDNG_YMD /* 발송 일자 */
@ -383,15 +383,15 @@
, (SELECT GET_CODE_NM('FIM049', S.SNDNG_STTS_CD) FROM DUAL) AS SNDNG_STTS_NM /* 발송 상태 명 */
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = S.RGTR) AS RGTR_NM /* 등록자 명 */
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = S.MDFR) AS MDFR_NM /* 수정자 명 */
FROM TB_SNDNG S
LEFT OUTER JOIN TB_VLTN_INFO VI ON (S.VLTN_ID = VI.VLTN_ID AND S.SGG_CD = VI.SGG_CD AND S.TASK_SE_CD = VI.TASK_SE_CD)
FROM TB_SNDNG S
LEFT OUTER JOIN TB_VLTN V ON (S.VLTN_ID = V.VLTN_ID AND S.SGG_CD = V.SGG_CD AND S.TASK_SE_CD = V.TASK_SE_CD)
</sql>
<select id="selectSndngList" parameterType="map" resultType="dataobject">/* 발송 대장 목록 조회(sndngMapper.selectSndngList) */
<include refid="utility.paging-prefix" />
<include refid="selectSndng" />
WHERE S.SGG_CD = #{sggCd} /* 시군구 코드 */
AND S.TASK_SE_CD = #{taskSeCd} /* 업무 구분 코드 */
WHERE S.SGG_CD = #{sggCd} /* 시군구 코드 */
AND S.TASK_SE_CD = #{taskSeCd} /* 업무 구분 코드 */
<if test="schSndngYmdFrom != null">
AND S.SNDNG_YMD <![CDATA[>=]]> #{schSndngYmdFrom} /* 발송 일자 시작 */
</if>
@ -399,7 +399,7 @@
AND S.SNDNG_YMD <![CDATA[<=]]> #{schSndngYmdTo} /* 발송 일자 종료 */
</if>
<if test="sndngSeCd != null">
AND S.SNDNG_SE_CD = #{sndngSeCd} /* 발송 구분 코드 */
AND S.SNDNG_SE_CD = #{sndngSeCd} /* 발송 구분 코드 */
</if>
<if test="sndngSeCdFrom != null">
AND S.SNDNG_SE_CD <![CDATA[ >= ]]> #{sndngSeCdFrom} /* 발송 구분 코드 시작 */
@ -430,12 +430,12 @@
<choose>
<when test="schDetailRgtrOpt == 'rgtr'">
<if test="schDetailRgtrCd != null">
AND S.RGTR = #{schDetailRgtrCd} /* 등록자 코드 */
AND S.RGTR = #{schDetailRgtrCd} /* 등록자 코드 */
</if>
</when>
<when test="schDetailRgtrOpt == 'mdfr'">
<if test="schDetailRgtrCd != null">
AND S.MDFR = #{schDetailRgtrCd} /* 수정자 코드 */
AND S.MDFR = #{schDetailRgtrCd} /* 수정자 코드 */
</if>
</when>
<otherwise>
@ -443,10 +443,10 @@
</choose>
<choose>
<when test="delYn != null">
AND S.DEL_YN = #{delYn} /* 삭제 여부 */
AND S.DEL_YN = #{delYn} /* 삭제 여부 */
</when>
<otherwise>
AND S.DEL_YN = 'N' /* 삭제 여부 */
AND S.DEL_YN = 'N' /* 삭제 여부 */
</otherwise>
</choose>
<if test="by != null and by != '' and term != null">
@ -667,9 +667,9 @@
, CA.PARKNG_PSBLTY_RSLT_CD /* 주차 가능 결과 코드 */
, CA.VLTN_NMTM /* 위반 횟수 */
, CA.OVTIME_YN /* 시간외 여부 */
, VI.VLTN_ID /* 위반 ID */
, VI.VLTN_CD /* 위반 코드 */
, VI.VLTN_ARTCL /* 위반 항목 */
, V.VLTN_ID /* 위반 ID */
, V.VLTN_CD /* 위반 코드 */
, V.VLTN_ARTCL /* 위반 항목 */
, CC.CVLCPT_LINK_ID /* 민원 연계 ID */
, CC.CVLCPT_RCPT_YMD /* 민원 접수 일자 */
, CC.CVLCPT_APLY_NO /* 민원 신청 번호 */
@ -699,10 +699,10 @@
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = C.RGTR) AS RGTR_NM /* 등록자 명 */
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = C.MDFR) AS MDFR_NM /* 수정자 명 */
FROM TB_CRDN C
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
INNER JOIN TB_VLTN_INFO VI ON (C.VLTN_ID = VI.VLTN_ID AND C.SGG_CD = VI.SGG_CD AND C.TASK_SE_CD = VI.TASK_SE_CD)
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID AND C.SGG_CD = V.SGG_CD AND C.TASK_SE_CD = V.TASK_SE_CD)
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
WHERE C.SGG_CD = #{sggCd} /* 시군구 코드 */
AND C.TASK_SE_CD = #{taskSeCd} /* 업무 구분 코드 */
AND (CC.CVLCPT_PRCS_CD IS NULL OR CC.CVLCPT_PRCS_CD <![CDATA[ <> ]]> '00') /* 민원 처리 코드 */
@ -729,7 +729,7 @@
AND C.CRDN_YMD <![CDATA[<=]]> #{schCrdnYmdTo} /* 단속 일자 종료 */
</if>
<if test="schVltnCd != null">
AND VI.VLTN_CD = #{schVltnCd} /* 위반 코드 */
AND V.VLTN_CD = #{schVltnCd} /* 위반 코드 */
</if>
<if test="schVhrno != null">
AND C.VHRNO = #{schVhrno} /* 차량번호 */
@ -796,7 +796,7 @@
<when test="by == 'parkngPsbltyRsltCd'"> CA.PARKNG_PSBLTY_RSLT_CD </when>
<when test="by == 'vltnNmtm'"> CA.VLTN_NMTM </when>
<when test="by == 'ovtimeYn'"> CA.OVTIME_YN </when>
<when test="by == 'vltnArtcl'"> VI.VLTN_ARTCL </when>
<when test="by == 'vltnArtcl'"> V.VLTN_ARTCL </when>
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
<when test="by == 'rtpyrBrdt'"> P.RTPYR_BRDT </when>
@ -854,12 +854,12 @@
, CA.CRDN_SE_CD /* 단속 구분 코드 */
, CA.CRDN_SPAREA_CD /* 단속 특별구역 코드 */
, CA.PARKNG_PSBLTY_RSLT_CD /* 주차 가능 결과 코드 */
, VI.VLTN_ID /* 위반 ID */
, VI.VLTN_CD /* 위반 코드 */
, VI.VLTN_ARTCL /* 위반 항목 */
, VI.ACNTG_SE_NM /* 회계 구분 명 */
, VI.TXITM_NM /* 세목 명 */
, VI.OPER_ITEM_NM /* 운영 항목 명 */
, V.VLTN_ID /* 위반 ID */
, V.VLTN_CD /* 위반 코드 */
, V.VLTN_ARTCL /* 위반 항목 */
, V.ACNTG_SE_NM /* 회계 구분 명 */
, V.TXITM_NM /* 세목 명 */
, V.OPER_ITEM_NM /* 운영 항목 명 */
, CC.CVLCPT_LINK_ID /* 민원 연계 ID */
, CC.CVLCPT_RCPT_YMD /* 민원 접수 일자 */
, CC.CVLCPT_APLY_NO /* 민원 신청 번호 */
@ -946,7 +946,7 @@
, (SELECT GET_CODE_NM('FIM034', CA.PARKNG_PSBLTY_RSLT_CD) FROM DUAL) AS PARKNG_PSBLTY_RSLT_NM /* 주차 가능 결과 명 */
FROM TB_CRDN C
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
INNER JOIN TB_VLTN_INFO VI ON (C.VLTN_ID = VI.VLTN_ID)
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID)
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N')
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
@ -1100,11 +1100,10 @@
, #{sndng.deptCd} /* 부서 코드 */
, #{sndng.sndngRegSeCd} /* 발송 등록 구분 코드 */
, #{sndng.sndngSeCd} /* 발송 구분 코드 */
, (SELECT VLTN_ID
FROM TB_VLTN_INFO
WHERE SGG_CD = #{sndng.sggCd}
, (SELECT VLTN_ID FROM TB_VLTN
WHERE SGG_CD = #{sndng.sggCd}
AND TASK_SE_CD = #{sndng.taskSeCd}
AND VLTN_CD = #{sndng.vltnCd}) /* 위반 ID */
AND VLTN_CD = #{sndng.vltnCd}) /* 위반 ID */
, #{sndng.levyBgngYmd} /* 부과 시작 일자 */
, #{sndng.levyEndYmd} /* 부과 종료 일자 */
, #{sndng.sndngYmd} /* 발송 일자 */

@ -6,7 +6,7 @@
/* 통합 자료 목록 조회(integrationSearchMapper.selectIntegrationDataList) */
SELECT C.CRDN_ID /* 단속 ID */
, C.SGG_CD /* 시군구 코드 */
, (SELECT SGG_NM FROM TB_SGG_INFO WHERE SGG_CD = C.SGG_CD) AS SGG_NM /* 시군구 명 */
, (SELECT SGG_NM FROM TB_SGG WHERE SGG_CD = C.SGG_CD) AS SGG_NM /* 시군구 명 */
, C.TASK_SE_CD /* 업무 구분 코드 */
, (SELECT GET_CODE_NM('FIM054', C.TASK_SE_CD) FROM DUAL) AS TASK_SE_NM /* 업무 구분 코드 명 */
, C.CRDN_INPT_SE_CD /* 단속 입력 구분 코드 */
@ -56,8 +56,8 @@
, C.CRDN_PLC /* 단속 장소 */
, CA.DTL_CRDN_PLC /* 상세 단속 장소 */
, C.VLTN_ID /* 위반 ID */
, VI.VLTN_ARTCL /* 위반 항목 */
, VI.VLTN_LAW_NM /* 위반 법 명 */
, V.VLTN_ARTCL /* 위반 항목 */
, V.VLTN_LAW_NM /* 위반 법 명 */
, IFNULL(CA.TOWNG_YN,'N') AS TOWNG_YN /* 견인 여부 */
, (SELECT GET_CODE_NM('CMM006', IFNULL(CA.TOWNG_YN,'N')) FROM DUAL) AS TOWNG_YN_NM /* 견인 여부 명 */
, C.CRDN_STTS_CHG_DT /* 단속 상태 변경 일시 */
@ -105,13 +105,13 @@
, L.VR_ACTNO /* 가상계좌번호 */
, L.SZR_YMD /* 압류 일자 */
, L.SZR_RMV_YMD /* 압류 해제 일자 */
, VI.TXITM_NM /* 세목 명 */
, (CASE
, V.TXITM_NM /* 세목 명 */
, (CASE
WHEN (R.RCVMT_ID IS NOT NULL) OR (C.CRDN_STTS_CD IN ('81','82','83','84','85','86','87','88'))
THEN 'Y'
ELSE 'N'
END) AS RCVMT_ETC_YN /* 수납,기타 여부 */
, (CASE
, (CASE
WHEN (R.RCVMT_ID IS NOT NULL) OR (C.CRDN_STTS_CD IN ('81','82','83','84','85','86','87','88'))
THEN
CASE
@ -151,16 +151,16 @@
, C.DLTR /* 삭제자 */
, (SELECT USER_NM FROM TB_USER X WHERE X.USER_ID = C.DLTR) AS DLTR_NM /* 삭제자 명 */
, C.DEL_RSN /* 삭제 사유 */
FROM TB_CRDN C /* 단속 대장 */
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID) /* 단속 부가 정보 */
INNER JOIN TB_VLTN_INFO VI ON (C.VLTN_ID = VI.VLTN_ID) /* 위반 정보 */
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) /* 단속 민원 대장 */
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N') /* 부과 제외 대장 */
LEFT OUTER JOIN TB_ESB_INTERFACE EI ON (CC.CVLCPT_LINK_ID = EI.INTERFACE_SEQ_N) /* 국민신문고 민원 연계 */
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID) /* 납부자 대장 */
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N') /* 부과 대장 */
LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N') /* 수납 대장 */
WHERE C.DEL_YN = 'N'
FROM TB_CRDN C /* 단속 대장 */
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID) /* 단속 부가 정보 */
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID) /* 위반 정보 */
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID) /* 단속 민원 대장 */
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N') /* 부과 제외 대장 */
LEFT OUTER JOIN TB_ESB_INTERFACE EI ON (CC.CVLCPT_LINK_ID = EI.INTERFACE_SEQ_N) /* 국민신문고 민원 연계 */
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID) /* 납부자 대장 */
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N') /* 부과 대장 */
LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N') /* 수납 대장 */
WHERE C.DEL_YN = 'N'
<if test='crdnIDs != null'>
AND C.CRDN_ID IN (<foreach collection="crdnIDs" item="CRDN_ID" separator=",">#{CRDN_ID}</foreach>)
</if>
@ -243,7 +243,7 @@ LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N
AND L.EPAYNO = #{item.value}
</when>
<when test="item.name == 'vltnCd'">
AND VI.VLTN_CD = #{item.value}
AND V.VLTN_CD = #{item.value}
</when>
<when test="item.name == 'crdnSttsCd'">
AND C.CRDN_STTS_CD = #{item.value}
@ -266,7 +266,7 @@ LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N
<when test="item.name == 'celNoV'">
AND EI.CEL_NO_V = #{item.value}
</when>
</choose>
</foreach>
</if>
@ -279,7 +279,7 @@ LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N
<when test="item == 'minap'">
AND L.LEVY_ID IS NULL
</when>
</choose>
</foreach>
</if>
@ -287,7 +287,7 @@ LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N
<!-- 특정자료 제외 -->
<if test="ischExclDataSet != null">
<foreach collection="ischExclDataSet" item="item">
</foreach>
</if>
@ -344,7 +344,7 @@ LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
</when>
<otherwise>
<if test="by == 'sggCd'"> AND (SELECT COUNT(*) FROM TB_SGG_INFO WHERE SGG_NM = #{term}) = 1 </if>
<if test="by == 'sggCd'"> AND (SELECT COUNT(*) FROM TB_SGG WHERE SGG_NM = #{term}) = 1 </if>
</otherwise>
</choose>
</if>

@ -100,8 +100,8 @@
, (SELECT GET_CODE_NM('FIM006', CA.OVTIME_YN) FROM DUAL) AS OVTIME_YN_NM <!-- 시간외 여부 명 -->
, CA.OVTIME_PRTTN_YN <!-- 시간외 분할 여부 -->
, (SELECT GET_CODE_NM('FIM006', CA.OVTIME_PRTTN_YN) FROM DUAL) AS OVTIME_PRTTN_YN_NM <!-- 시간외 분할 여부 명 -->
, VI.TXITM_NM <!-- 세목 명 -->
, VI.OPER_ITEM_NM <!-- 운영 항목 명 -->
, V.TXITM_NM <!-- 세목 명 -->
, V.OPER_ITEM_NM <!-- 운영 항목 명 -->
, P.RTPYR_ID <!-- 납부자 ID -->
, P.RTPYR_INPT_SE_CD <!-- 납부자 입력 구분 코드 -->
, (SELECT GET_CODE_NM('FIM015', P.RTPYR_INPT_SE_CD) FROM DUAL) AS RTPYR_INPT_SE_NM <!-- 납부자 입력 구분 명 -->
@ -163,7 +163,7 @@
, L.SUM_AMT <!-- 합계 금액 -->
FROM TB_CRDN C
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
INNER JOIN TB_VLTN_INFO VI ON (C.VLTN_ID = VI.VLTN_ID)
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID)
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N') <!-- 단속 민원 대장 대장 -->
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N')

@ -5,14 +5,14 @@
<select id="selectVltnById" parameterType="string" resultType="dataobject">
SELECT VLTN_ID
, VLTN_NM AS NAME
FROM TB_VLTN_INFO
FROM TB_VLTN
WHERE VLTN_ID = #{vltnId}
</select>
<select id="selectSggByCode" parameterType="string" resultType="dataobject">
SELECT SGG_CD
, SGG_NM AS NAME
FROM TB_SGG_INFO
FROM TB_SGG
WHERE SGG_CD = #{sggCd}
</select>
@ -33,7 +33,7 @@ WHERE USER_ID = #{userId}
<select id="selectTeamById" parameterType="string" resultType="dataobject">
SELECT TEAM_ID
, TEAM_NM AS NAME
FROM TB_TEAM_INFO
FROM TB_TEAM
WHERE TEAM_ID = #{teamId}
</select>

@ -60,7 +60,7 @@ const dateFormat = {
default: return "";
}
},
parse(value) {
return isEmpty(value) ? "" : value.replace(/-/gi, "");
}
@ -90,7 +90,7 @@ const timeFormat = {
default: return "";
}
},
parse(value) {
return isEmpty(value) ? "" : value.replace(/:/gi, "");
}
@ -110,7 +110,7 @@ const datetimeFormat = {
default: return "";
}
},
parse(value) {
return isEmpty(value) ? "" : timeFormat.parse(dateFormat.parse(value)).replace(/ /gi, "");
}
@ -1287,7 +1287,7 @@ class DatasetControl {
}
});
}
download(type) {
this.query.download = type || "xls";
let query = toQuery(this.query);

Loading…
Cancel
Save