| | |
| | | package com.java110.store.dao.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.common.constant.ResponseConstant; |
| | | import com.java110.common.exception.DAOException; |
| | | import com.java110.common.util.DateUtil; |
| | | import com.java110.utils.constant.ResponseConstant; |
| | | import com.java110.utils.exception.DAOException; |
| | | import com.java110.utils.util.DateUtil; |
| | | import com.java110.core.base.dao.BaseServiceDao; |
| | | import com.java110.store.dao.IStoreServiceDao; |
| | | import org.slf4j.Logger; |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询商户数量 |
| | | * @param info 商户信息 |
| | | * @return 商户数量 |
| | | */ |
| | | @Override |
| | | public int queryStoresCount(Map info) { |
| | | logger.debug("查询商户数据 入参 info : {}",info); |
| | | |
| | | List<Map> businessStoreInfos = sqlSessionTemplate.selectList("storeServiceDaoImpl.queryStoresCount", info); |
| | | if (businessStoreInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessStoreInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | } |