부과고지및납부실적 집계 수정

main
이범준 3 weeks ago
parent 1eddb35f9f
commit 0e373d4ccd

@ -239,7 +239,7 @@ scwin.btn_prt_onclick = function(e) {
</xf:item>
<xf:item>
<xf:label><![CDATA[압류촉탁]]></xf:label>
<xf:value><![CDATA[5]]></xf:value>
<xf:value><![CDATA[7]]></xf:value>
</xf:item>
</xf:choices>
</xf:select1>
@ -533,7 +533,7 @@ scwin.btn_prt_onclick = function(e) {
</w2:footer>
</w2:gridView>
</xf:group>
<w2:span label="※ 미납건수 = 고지건수 - 납부건수 - 고지취소건수 - 결손건수. ※ 납부건수는 전체건수에서 이중 수납건수를 뺀 수량/금액입니다." style="color:#804040;" id="spa_span12"></w2:span>
<w2:span label="※ 미납건수 = 고지건수 - 납부건수" style="color:#804040;" id="spa_span12"></w2:span>
</xf:group>
</body>
</html>

@ -72,10 +72,6 @@ public interface FinePmDao {
public void FineupdateSec(FinePmVO finePmVO);
public List<FinePmVO> findFinePenCompare(FinePmVO finePmVO);
public List<FinePmVO> findAddiCon(FinePmVO finePmVO);
public List<FinePmVO> findNonpayCompl(FinePmVO finePmVO);
}

File diff suppressed because it is too large Load Diff

@ -69,11 +69,7 @@ import cfs.fine.vo.FinePmVO;
public void FineupdateSec(FinePmVO finePmVO) throws Exception;
public List<FinePmVO> findFinePenCompare(FinePmVO finePmVO) throws Exception;
public List<FinePmVO> findAddiCon(FinePmVO finePmVO) throws Exception;
public List<FinePmVO> findNonpayCompl(FinePmVO finePmVO) throws Exception;
}

@ -218,59 +218,10 @@ public class FinePmServiceImpl implements FinePmService {
FinePmDao.mergeRollCancelPopDel(finePmVO);
}
@Override
public List<FinePmVO> findFinePenCompare(FinePmVO finePmVO) throws Exception {
List<FinePmVO> result = FinePmDao.findFinePenCompare(finePmVO);
for(FinePmVO setData : result){
if(setData.getFareOfficeInfo().equals("01")){
setData.setFareOfficeInfo("제1요금소");
}else{
setData.setFareOfficeInfo("제3요금소");
}
}
return result;
}
@Override
public List<FinePmVO> findAddiCon(FinePmVO finePmVO) throws Exception {
List<FinePmVO> result = FinePmDao.findAddiCon(finePmVO);
for(FinePmVO setData : result){
if(setData.getFareOfficeInfo().equals("01")){
setData.setFareOfficeInfo("제1호터널");
}else{
setData.setFareOfficeInfo("제3호터널");
}
if(setData.getGroupCode().substring(4, 6).equals("01")){
setData.setGroupCode(setData.getGroupCode().substring(0,4)+"년 제1호터널");
}else{
setData.setGroupCode(setData.getGroupCode().substring(0,4)+"년 제3호터널");
}
double elapDt = Double.parseDouble(setData.getElapsedDate())*30;
double payRate = Double.parseDouble(setData.getPaymentRate());
int mon = (int)elapDt/30;
int day = (int)(elapDt*-1);
setData.setElapsedDate(mon+"개월"+day+"일");
if(elapDt>0){
setData.setMotionNm((int)elapDt+"개월"+(int)(payRate*100*elapDt));
}else if(elapDt==0){
setData.setMotionNm("00개월");
}else{
if(elapDt==-9){
setData.setMotionNm("사전통지기간");
}else{
setData.setMotionNm("1차고지기간");
}
}
}
return result;
}
@Override
public List<FinePmVO> findNonpayCompl(FinePmVO finePmVO) throws Exception {
List<FinePmVO> result = FinePmDao.findNonpayCompl(finePmVO);
return result;
}
}

@ -55,7 +55,7 @@ public class FinePmController {
result.setData("result", statList);
result.setMsg(Result.STATUS_SUCESS, "정상적으로 조회가 완료되었습니다.");
download(param, request, response, null, "템플릿");
}catch(RuntimeException e) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
}catch (Exception ex) {
@ -64,35 +64,7 @@ public class FinePmController {
return result.getResult();
}
/**
*
* ,
* @author cfs02
* @task [FN53]
* @param param
* @return
*
*/
public void download(@RequestBody ParamBean<FinePmVO> param,HttpServletRequest request, HttpServletResponse response, Map<String , Object> beans, String filename) throws InvalidFormatException {
FinePmVO finePmVO = param.getParam();
Result result = new Result();
try {
List<FinePmVO> list= FinePmService.findFinePmList(finePmVO);
/*String tempPath = request.getSession().getServletContext().getRealPath("/resources/excel/template");
InputStream is = new BufferedInputStream(new FileInputStream("C:\\dev\\workspace\\test.jxls\\object_collection_template.xlsx"));
OutputStream os = new FileOutputStream("C:\\dev\\workspace\\test.jxls\\test_output.xlsx");
Context context = new Context();
context.putVar("employees", list);
JxlsHelper.getInstance().processTemplate(is, os, context);*/
}catch(RuntimeException e) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
}catch (Exception ex) {
result.setErrorMsg(Result.STATUS_ERROR, Result.STATUS_ERROR_MESSAGE);
}
}
/**
* , Cnt,
* @author cfs02
@ -716,89 +688,11 @@ public class FinePmController {
}
}
/**
*
*
* @author cfs02
* @task [FN69]
* @param param
* @return
*
*/
@RequestMapping(value="/cfs/fine/findFinePenCompare.do", method=RequestMethod.POST)
public @ResponseBody Map<String, Object> findFinePenCompare(@RequestBody ParamBean<FinePmVO> param, HttpServletRequest request) {
FinePmVO finePmVO = param.getParam();
Result result = new Result();
List<FinePmVO> statList = null;
try {
statList = FinePmService.findFinePenCompare(finePmVO);
result.setData("result", statList);
result.setMsg(Result.STATUS_SUCESS, "정상적으로 조회가 완료되었습니다.");
}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();
}
/**
*
*
* @author cfs02
* @task [FN70]
* @param param
* @return
*
*/
@RequestMapping(value="/cfs/fine/findAddiCon.do", method=RequestMethod.POST)
public @ResponseBody Map<String, Object> findAddiCon(@RequestBody ParamBean<FinePmVO> param, HttpServletRequest request) {
FinePmVO finePmVO = param.getParam();
Result result = new Result();
List<FinePmVO> statList = null;
try {
statList = FinePmService.findAddiCon(finePmVO);
result.setData("result", statList);
result.setMsg(Result.STATUS_SUCESS, "정상적으로 조회가 완료되었습니다.");
}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();
}
/**
*
*
* @author cfs02
* @task [FN71]
* @param param
* @return
*
*/
@RequestMapping(value="/cfs/fine/findNonpayCompl.do", method=RequestMethod.POST)
public @ResponseBody Map<String, Object> findNonpayCompl(@RequestBody ParamBean<FinePmVO> param, HttpServletRequest request) {
FinePmVO finePmVO = param.getParam();
Result result = new Result();
List<FinePmVO> statList = null;
try {
statList = FinePmService.findNonpayCompl(finePmVO);
result.setData("result", statList);
result.setMsg(Result.STATUS_SUCESS, "정상적으로 조회가 완료되었습니다.");
}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