소스정리(미사용 java파일 삭제)

main
이범준 3 months ago
parent 0d51554f7a
commit c6a72fa169

@ -1,19 +0,0 @@
package cfs.fine.dao;
import java.util.List;
import org.springframework.stereotype.Repository;
import cfs.fine.vo.FinePostHistVO;
@Repository("finePostHistDao")
public interface FinePostHistDao {
/**
* >
*
* @param param
* @return
*/
public List<FinePostHistVO> findPostHistList(FinePostHistVO param);
}

@ -1,67 +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="cfs.fine.dao.FinePostHistDao">
<resultMap type="cfs.fine.vo.FinePostHistVO" id="findPostHistList-result">
<result property="fareOfficeFullName" column="fare_office_full_name"/>
<result property="owner" column="owner"/>
<result property="postNo" column="post_no"/>
<result property="motionId" column="motion_id"/>
<result property="addressName" column="address_name"/>
<result property="penaltySeqno" column="penalty_seqno"/>
<result property="accountWo" column="account_wo"/>
<result property="accountHa" column="account_ha"/>
<result property="accountSh" column="account_sh"/>
</resultMap>
<select id="findPostHistList" parameterType="cfs.fine.vo.FinePostHistVO" resultMap="findPostHistList-result">
SELECT SUBSTR(A.penalty_manage_year,3,2) || '-' || A.penalty_seqno AS penalty_seqno,
A.motion_id,
(SELECT fare_office_full_name FROM FARE_OFFICE_CODE_INFO WHERE fare_office_id = A.fare_office_id) AS fare_office_full_name,
B.owner,
CASE
WHEN LENGTH(B.post_no1 || B.post_no2) = 5 THEN B.post_no1 || B.post_no2
WHEN LENGTH(B.post_no1 || B.post_no2) = 6 THEN B.post_no1 || '-' || B.post_no2
END AS post_no,
B.address_name || ' ' || B.address_number AS address_name,
(SELECT SUBSTR(ACCOUNTNOW,1,3) || '-' || SUBSTR(ACCOUNTNOW,4,6) || '-' || SUBSTR(ACCOUNTNOW,10,2) || '-' || SUBSTR(ACCOUNTNOW,12,3)
FROM TB_VIRTUALACCOUNT
WHERE USEDTAG = '1'
AND PENALTY_MANAGE_YEAR = A.penalty_manage_year
AND PENALTY_SEQNO = A.penalty_seqno) AS ACCOUNT_WO,
(SELECT SUBSTR(ACCOUNTNOS,1,3) || '-' || SUBSTR(ACCOUNTNOS,4,3) || '-' || SUBSTR(ACCOUNTNOS,7,8)
FROM TB_VIRTUALACCOUNT
WHERE USEDTAG = '1'
AND PENALTY_MANAGE_YEAR = A.penalty_manage_year
AND PENALTY_SEQNO = A.penalty_seqno) AS ACCOUNT_SH,
(SELECT SUBSTR(ACCOUNTNOH,1,3) || '-' || SUBSTR(ACCOUNTNOH,4,6) || '-' || SUBSTR(ACCOUNTNOH,10,5)
FROM TB_VIRTUALACCOUNT
WHERE USEDTAG = '1'
AND PENALTY_MANAGE_YEAR = A.penalty_manage_year
AND PENALTY_SEQNO = A.penalty_seqno) AS ACCOUNT_HA
FROM PENALTY_HEAD_INFO_DAMO B, PENALTY_DETAIL_INFO_DAMO A, SEND_INFO C
WHERE B.car_no = A.car_no
AND B.ENC_RESIDENT_NO = A.ENC_RESIDENT_NO
AND A.penalty_manage_year = C.penalty_manage_year
AND A.penalty_seqno = C.penalty_seqno
AND C.return_kbn = '1'
AND A.rent_kbn = '0'
AND C.send_no = (SELECT MAX(send_no) from SEND_INFO X
WHERE X.penalty_manage_year = C.penalty_manage_year
AND X.penalty_seqno = C.penalty_seqno
AND X.motion_id = C.motion_id)
<if test="motionId != null and motionId != ''">
AND A.motion_id LIKE #{motionId}
</if>
<if test='postDiv == "1"'>
AND B.post_no1 LIKE '1%'
</if>
<if test='postDiv == "2"'>
AND B.post_no1 NOT LIKE '1%'
</if>
<if test="dateFrom != null and dateFrom != ''">
AND A.year || A.month || A.day <![CDATA[>=]]> #{dateFrom}
</if>
<if test="dateTo != null and dateTo != ''">
AND A.year || A.month || A.day <![CDATA[<=]]> #{dateTo}
</if>
</select>
</mapper>

@ -1,17 +0,0 @@
package cfs.fine.service;
import java.util.List;
import cfs.fine.vo.FinePostHistVO;
public interface FinePostHistService {
/**
* >
*
* @param param
* @return
* @throws Exception
*/
public List<FinePostHistVO> findPostHistList(FinePostHistVO param) throws Exception;
}

@ -1,32 +0,0 @@
package cfs.fine.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import cfs.fine.dao.FinePostHistDao;
import cfs.fine.service.FinePostHistService;
import cfs.fine.vo.FinePostHistVO;
@Service("finePostHistService")
public class FinePostHistServiceImpl implements FinePostHistService {
@Resource(name="finePostHistDao")
FinePostHistDao finePostHistDao;
@Override
public List<FinePostHistVO> findPostHistList(FinePostHistVO param) throws Exception {
String noticeId = param.getMotionId();
if("0".equals(noticeId) || "7".equals(noticeId)) {
param.setMotionId("2%");
} else if("1".equals(noticeId) || "5".equals(noticeId)) {
param.setMotionId("3%");
} else {
param.setMotionId("4%");
}
return finePostHistDao.findPostHistList(param);
}
}

@ -1,46 +0,0 @@
package cfs.fine.web;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import cfs.common.util.Result;
import cfs.common.vo.ParamBean;
import cfs.fine.service.FinePostHistService;
import cfs.fine.vo.FinePostHistVO;
@Controller
public class FinePostHistController {
@Autowired
FinePostHistService finePostHistService;
/**
* >
*
* @param param
* @return
* @throws Exception
*/
@RequestMapping(value="/cfs/fine/findPostHistList.do", method=RequestMethod.POST)
public @ResponseBody Map<String, Object> findPostHistList(@RequestBody ParamBean<FinePostHistVO> param) throws Exception {
Result result = new Result();
try {
FinePostHistVO fParam = param.getParam();
result.setMsg(Result.STATUS_SUCESS, "조회가 완료되었습니다.");
result.setData("searchResultList", finePostHistService.findPostHistList(fParam));
}catch(RuntimeException e) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
}catch (Exception ex) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
}
return result.getResult();
}
}
Loading…
Cancel
Save