| | |
| | | |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| | | import com.java110.dto.PageDto; |
| | | import com.java110.dto.payFeeDetailMonth.PayFeeDetailMonthDto; |
| | | import com.java110.dto.fee.FeeDetailDto; |
| | | import com.java110.dto.payFee.PayFeeDetailMonthDto; |
| | | import com.java110.fee.dao.IPayFeeDetailMonthServiceDao; |
| | | import com.java110.intf.fee.IPayFeeDetailMonthInnerServiceSMO; |
| | | import com.java110.po.payFeeDetailMonth.PayFeeDetailMonthPo; |
| | | import com.java110.po.payFee.PayFeeDetailMonthPo; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | @Override |
| | | public int savePayFeeDetailMonths(@RequestBody List<PayFeeDetailMonthPo> payFeeDetailMonthPos) { |
| | | int saveFlag = 1; |
| | | if (payFeeDetailMonthPos == null || payFeeDetailMonthPos.size() < 1) { |
| | | return saveFlag; |
| | | } |
| | | |
| | | Map info = new HashMap(); |
| | | info.put("payFeeDetailMonthPos",payFeeDetailMonthPos); |
| | | info.put("payFeeDetailMonthPos", payFeeDetailMonthPos); |
| | | payFeeDetailMonthServiceDaoImpl.savePayFeeDetailMonthInfos(info); |
| | | return saveFlag; |
| | | } |
| | |
| | | @Override |
| | | public int deletePayFeeDetailMonth(@RequestBody PayFeeDetailMonthPo payFeeDetailMonthPo) { |
| | | int saveFlag = 1; |
| | | payFeeDetailMonthPo.setStatusCd("1"); |
| | | payFeeDetailMonthServiceDaoImpl.updatePayFeeDetailMonthInfo(BeanConvertUtil.beanCovertMap(payFeeDetailMonthPo)); |
| | | payFeeDetailMonthServiceDaoImpl.deletePayFeeDetailMonthInfo(BeanConvertUtil.beanCovertMap(payFeeDetailMonthPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | |
| | | return payFeeDetailMonthServiceDaoImpl.queryPayFeeDetailMonthsCount(BeanConvertUtil.beanCovertMap(payFeeDetailMonthDto)); |
| | | } |
| | | |
| | | @Override |
| | | public List<PayFeeDetailMonthDto> queryPayFeeDetailMaxMonths(@RequestBody PayFeeDetailMonthDto payFeeDetailMonthDto) { |
| | | int page = payFeeDetailMonthDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | payFeeDetailMonthDto.setPage((page - 1) * payFeeDetailMonthDto.getRow()); |
| | | } |
| | | |
| | | List<PayFeeDetailMonthDto> payFeeDetailMonths = BeanConvertUtil.covertBeanList(payFeeDetailMonthServiceDaoImpl.queryPayFeeDetailMaxMonths(BeanConvertUtil.beanCovertMap(payFeeDetailMonthDto)), PayFeeDetailMonthDto.class); |
| | | |
| | | return payFeeDetailMonths; |
| | | } |
| | | |
| | | /** |
| | | * 查询需要离散的 缴费记录 |
| | | * |
| | | * @param payFeeDetailMonthDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<FeeDetailDto> getWaitDispersedFeeDetail(@RequestBody PayFeeDetailMonthDto payFeeDetailMonthDto) { |
| | | List<FeeDetailDto> payFeeDetailMonths = BeanConvertUtil.covertBeanList(payFeeDetailMonthServiceDaoImpl.getWaitDispersedFeeDetail(BeanConvertUtil.beanCovertMap(payFeeDetailMonthDto)), FeeDetailDto.class); |
| | | |
| | | return payFeeDetailMonths; |
| | | } |
| | | |
| | | /** |
| | | * 专门给页面使用 主要为了查询出费用相关的一些信息 |
| | | * @param payFeeDetailMonthDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<PayFeeDetailMonthDto> queryPagePayFeeDetailMonths(@RequestBody PayFeeDetailMonthDto payFeeDetailMonthDto) { |
| | | List<PayFeeDetailMonthDto> payFeeDetailMonths = BeanConvertUtil.covertBeanList(payFeeDetailMonthServiceDaoImpl.queryPagePayFeeDetailMonths(BeanConvertUtil.beanCovertMap(payFeeDetailMonthDto)), PayFeeDetailMonthDto.class); |
| | | |
| | | return payFeeDetailMonths; |
| | | } |
| | | |
| | | @Override |
| | | public int queryPagePayFeeDetailMonthsCount(@RequestBody PayFeeDetailMonthDto payFeeDetailMonthDto) { |
| | | |
| | | int page = payFeeDetailMonthDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | payFeeDetailMonthDto.setPage((page - 1) * payFeeDetailMonthDto.getRow()); |
| | | } |
| | | return payFeeDetailMonthServiceDaoImpl.queryPagePayFeeDetailMonthsCount(BeanConvertUtil.beanCovertMap(payFeeDetailMonthDto)); |
| | | } |
| | | |
| | | public IPayFeeDetailMonthServiceDao getPayFeeDetailMonthServiceDaoImpl() { |
| | | return payFeeDetailMonthServiceDaoImpl; |
| | | } |