FAICS/src/main/java/kcg/faics/arrest/service/impl/ArrestServiceImpl.java

248 lines
6.3 KiB
Java
Raw Normal View History

2022-03-17 02:42:45 +00:00
/**
* CommonService.java
* @author
* @since 2016. 10. 13.
*
*
* ------------- -------- ---------------------------
* 2016. 10. 13.
*
*/
package kcg.faics.arrest.service.impl;
import java.util.HashMap;
import java.util.List;
import javax.annotation.Resource;
import kcg.faics.arrest.service.ArrestService;
import kcg.faics.arrest.vo.ArrestCountVO;
import kcg.faics.arrest.vo.ArrestSearchVO;
import kcg.faics.arrest.vo.ArrestVO;
import kcg.faics.cmmn.vo.CodeVO;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* ArrestServiceImpl.java
* @author
* @since 2016. 3. 17.
*
*
* ------------- -------- ---------------------------
* 2017. 3. 17.
*
*/
@Service("arrestService")
public class ArrestServiceImpl implements ArrestService {
/**
* ArrestMapper.
*/
@Resource(name = "arrestMapper")
private ArrestMapper arrestMapper;
/**
* .
*
* @param String area
* @param String area
* @return List<CodeVO>
* @exception Exception
*/
@Override
public List<CodeVO> getAddressAreaList(String area) throws Exception {
List<CodeVO> codeVOList = arrestMapper.getAddressAreaList(area);
return codeVOList;
}
/**
* .
*
* @param dataVO
* @param fileMap
* @return HashMap/ seq : , result : - 1, - 0
* @exception Exception
*/
@Override
@Transactional
public HashMap<String, Object> insert(final ArrestVO arrestVO) throws Exception {
HashMap<String, Object> result = new HashMap<String, Object>();
//
if(!arrestVO.getShipProcType().equals("01")){
arrestVO.setCommissionCost("");
}
if(arrestVO.getMarginPaymentYn().equals("N")){
arrestVO.setMarginPaymentDate("");
}
result = arrestMapper.insertArrest(arrestVO);
return result;
}
/**
* .
*
* @param dataVO
* @param fileMap
* @return HashMap/ seq : , result : - 1, - 0
* @exception Exception
*/
@Override
@Transactional
public HashMap<String, Object> update(final ArrestVO arrestVO) throws Exception {
HashMap<String, Object> result = new HashMap<String, Object>();
if(!arrestVO.getShipProcType().equals("01")){
arrestVO.setCommissionCost("");
}
if(arrestVO.getMarginPaymentYn().equals("N")){
arrestVO.setMarginPaymentDate("");
}
result = arrestMapper.updateArrest(arrestVO);
return result;
}
/**
* .
*
* @param dataVO
* @param fileMap
* @return HashMap/ seq : , result : - 1, - 0
* @exception Exception
*/
@Override
@Transactional
public HashMap<String, Object> delete(final ArrestVO arrestVO) throws Exception {
HashMap<String, Object> result = new HashMap<String, Object>();
result = arrestMapper.deleteArrest(arrestVO);
return result;
}
/**
*
*
* @param dataVO userid
* @return
* @throws Exception
*/
@Override
public ArrestVO select(final ArrestVO dataVO) throws Exception {
ArrestVO result = arrestMapper.getArrest(dataVO);
return result;
}
/**
*
*
* @param dataVO userid
* @return
* @throws Exception
*/
@Override
public List<ArrestVO> getArrestListAll(final ArrestSearchVO arrestSearchVO) throws Exception {
return arrestMapper.getArrestListAll(arrestSearchVO);
}
/**
*
*
* @param dataVO userid
* @return
* @throws Exception
*/
@Override
public ArrestCountVO getArrestListAllCount(final ArrestSearchVO arrestSearchVO) throws Exception {
return arrestMapper.getArrestListAllCount(arrestSearchVO);
}
/**
*
*
* @param dataVO arrestSearchVO
* @return
* @throws Exception
*/
@Override
public List<ArrestVO> getArrestList(final ArrestSearchVO arrestSearchVO) throws Exception {
return arrestMapper.getArrestList(arrestSearchVO);
}
/**
* ()
*
* @param dataVO arrestSearchVO
* @return
* @throws Exception
*/
@Override
public List<ArrestVO> getArrestListExcel(final ArrestSearchVO arrestSearchVO) throws Exception {
return arrestMapper.getArrestListExcel(arrestSearchVO);
}
/**
*
*
* @param dataVO userid
* @return
* @throws Exception
*/
@Override
public ArrestVO getArrestListCount(final ArrestSearchVO arrestSearchVO) throws Exception {
return arrestMapper.getArrestListCount(arrestSearchVO);
}
/**
*
*
* @param dataVO arrestSearchVO
* @return
* @throws Exception
*/
@Override
public ArrestVO getArrestListCountExcel(final ArrestSearchVO arrestSearchVO)
throws Exception {
return arrestMapper.getArrestListCountExcel(arrestSearchVO);
}
/**
* ()
*
* @param dataVO arrestSearchVO
* @return
* @throws Exception
*/
@Override
public List<HashMap<String, Object>> getArrestListExcelHashMap(final ArrestSearchVO arrestSearchVO) throws Exception {
return arrestMapper.getArrestListExcelHashMap(arrestSearchVO);
}
}