단속팀 목록 조회 쿼리 추가
parent
49d7883769
commit
7fb3172a81
@ -0,0 +1,19 @@
|
||||
package cokr.xit.fims.crdn.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
|
||||
|
||||
import cokr.xit.fims.crdn.CrdnQuery;
|
||||
import cokr.xit.foundation.component.AbstractMapper;
|
||||
import cokr.xit.foundation.data.DataObject;
|
||||
|
||||
@Mapper("crdnTeamMapper")
|
||||
public interface CrdnTeamMapper extends AbstractMapper {
|
||||
|
||||
/**단속팀 목록을 조회한다.<br />
|
||||
* @param query 단속팀 목록 조회 조건
|
||||
* @return 단속팀 목록
|
||||
*/
|
||||
List<DataObject> selectTeamList(CrdnQuery query);
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cokr.xit.fims.crdn.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cokr.xit.fims.crdn.CrdnQuery;
|
||||
import cokr.xit.foundation.data.DataObject;
|
||||
|
||||
public interface CrdnStngService {
|
||||
|
||||
/** 단속팀 목록을 조회한다.
|
||||
* @param query 단속팀 목록 조회 조건
|
||||
* @return 단속팀 목록
|
||||
*/
|
||||
List<DataObject> getTeamList(CrdnQuery query);
|
||||
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package cokr.xit.fims.crdn.service.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import cokr.xit.fims.crdn.CrdnQuery;
|
||||
import cokr.xit.fims.crdn.dao.CrdnTeamMapper;
|
||||
import cokr.xit.foundation.AbstractComponent;
|
||||
import cokr.xit.foundation.data.DataObject;
|
||||
|
||||
/** 단속 설정 Bean
|
||||
* @author leebj
|
||||
*/
|
||||
@Component("crdnStngBean")
|
||||
public class CrdnStngBean extends AbstractComponent {
|
||||
|
||||
@Resource(name = "crdnTeamMapper")
|
||||
private CrdnTeamMapper crdnTeamMapper;
|
||||
|
||||
/**단속팀 목록을 조회한다.
|
||||
* @param query 단속팀 목록 조회조건
|
||||
* @return 단속팀 목록
|
||||
*/
|
||||
public List<DataObject> selectTeamList(CrdnQuery query){
|
||||
return crdnTeamMapper.selectTeamList(query);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package cokr.xit.fims.crdn.service.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import cokr.xit.fims.crdn.CrdnQuery;
|
||||
import cokr.xit.fims.crdn.service.CrdnStngService;
|
||||
import cokr.xit.foundation.component.AbstractServiceBean;
|
||||
import cokr.xit.foundation.data.DataObject;
|
||||
|
||||
@Service("crdnStngService")
|
||||
public class CrdnStngServiceBean extends AbstractServiceBean implements CrdnStngService {
|
||||
|
||||
@Resource(name="crdnStngBean")
|
||||
protected CrdnStngBean crdnStngBean;
|
||||
|
||||
@Override
|
||||
public List<DataObject> getTeamList(CrdnQuery query) {
|
||||
return crdnStngBean.selectTeamList(query);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
<?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.crdn.dao.CrdnTeamMapper">
|
||||
|
||||
<select id="selectTeamList" parameterType="cokr.xit.fims.crdn.CrdnQuery" resultType="dataobject">
|
||||
/* 단속팀 목록 조회(crdnTeamMapper.selectTeamList) */
|
||||
SELECT TEAM_ID
|
||||
, TEAM_NM
|
||||
, TEAMER_1
|
||||
, TEAMER_2
|
||||
, TEAMER_3
|
||||
, TEAMER_4
|
||||
FROM TB_TEAM_INFO
|
||||
WHERE SGG_CD = #{sggCd}
|
||||
AND TASK_SE_CD = #{taskSeCd}
|
||||
</select>
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue