| | |
| | | import com.java110.fee.dao.IFeeDetailServiceDao; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | |
| | | |
| | | logger.debug("查询费用明细信息 入参 info : {}",info); |
| | | |
| | | List<Map> businessFeeDetailInfos = sqlSessionTemplate.selectList("feeDetailServiceDaoImpl.getBusinessFeeDetailInfo",info); |
| | | List<Map> infos = sqlSessionTemplate.selectList("feeDetailServiceDaoImpl.getBusinessFeeDetailInfo",info); |
| | | |
| | | return businessFeeDetailInfos; |
| | | return infos; |
| | | } |
| | | |
| | | |
| | |
| | | public List<Map> getFeeDetailInfo(Map info) throws DAOException { |
| | | logger.debug("查询费用明细信息 入参 info : {}",info); |
| | | |
| | | List<Map> businessFeeDetailInfos = sqlSessionTemplate.selectList("feeDetailServiceDaoImpl.getFeeDetailInfo",info); |
| | | List<Map> infos = sqlSessionTemplate.selectList("feeDetailServiceDaoImpl.getFeeDetailInfo",info); |
| | | |
| | | return businessFeeDetailInfos; |
| | | return infos; |
| | | } |
| | | |
| | | |
| | |
| | | public int queryFeeDetailsCount(Map info) { |
| | | logger.debug("查询费用明细数据 入参 info : {}",info); |
| | | |
| | | List<Map> businessFeeDetailInfos = sqlSessionTemplate.selectList("feeDetailServiceDaoImpl.queryFeeDetailsCount", info); |
| | | if (businessFeeDetailInfos.size() < 1) { |
| | | List<Map> infos = sqlSessionTemplate.selectList("feeDetailServiceDaoImpl.queryFeeDetailsCount", info); |
| | | if (infos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessFeeDetailInfos.get(0).get("count").toString()); |
| | | return Integer.parseInt(infos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | @Override |
| | |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存明细 数据失败:"+ JSONObject.toJSONString(feeDetail)); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |