| | |
| | | import com.java110.core.base.dao.BaseServiceDao; |
| | | import com.java110.store.dao.IContractServiceDao; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | // ===================== 新增:广告信息 保存或更新 ===================== |
| | | @Override |
| | | public void saveOrUpdateAdContractInfo(Map info) throws DAOException { |
| | | logger.debug("保存或更新广告信息 入参 info : {}", info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("contractServiceDaoImpl.saveOrUpdateAdContractInfo", info); |
| | | |
| | | if (saveFlag < 1) { |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "保存或更新广告信息失败:" + JSONObject.toJSONString(info)); |
| | | } |
| | | } |
| | | |
| | | // ===================== 新增:合同金额明细 保存或更新 ===================== |
| | | @Override |
| | | public void saveOrUpdateContractAmountDetail(Map info) throws DAOException { |
| | | logger.debug("保存或更新合同金额明细 入参 info : {}", info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("contractServiceDaoImpl.saveOrUpdateContractAmountDetail", info); |
| | | |
| | | if (saveFlag < 1) { |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "保存或更新合同金额明细失败:" + JSONObject.toJSONString(info)); |
| | | } |
| | | } |
| | | |
| | | // ===================== 新增:合同管理分成 保存或更新 ===================== |
| | | @Override |
| | | public void saveOrUpdateContractManagementShare(Map info) throws DAOException { |
| | | logger.debug("保存或更新合同管理分成 入参 info : {}", info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("contractServiceDaoImpl.saveOrUpdateContractManagementShare", info); |
| | | |
| | | if (saveFlag < 1) { |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "保存或更新合同管理分成失败:" + JSONObject.toJSONString(info)); |
| | | } |
| | | } |
| | | |
| | | // ===================== 新增:合同缴费状态 保存或更新 ===================== |
| | | @Override |
| | | public void saveOrUpdateContractPaymentStatus(Map info) throws DAOException { |
| | | logger.debug("保存或更新合同缴费状态 入参 info : {}", info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("contractServiceDaoImpl.saveOrUpdateContractPaymentStatus", info); |
| | | |
| | | if (saveFlag < 1) { |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "保存或更新合同缴费状态失败:" + JSONObject.toJSONString(info)); |
| | | } |
| | | } |
| | | /** |
| | | * 查询合同管理数量 |
| | | * @param info 合同管理信息 |
| | |
| | | return Integer.parseInt(businessContractInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map> queryContractsByOwnerIds(Map info) { |
| | | logger.debug("查询合同管理数据 入参 info : {}",info); |
| | | |
| | | List<Map> result = sqlSessionTemplate.selectList("contractServiceDaoImpl.queryContractsByOwnerIds", info); |
| | | return result; |
| | | } |
| | | |
| | | |
| | | } |