| | |
| | | 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; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | |
| | | return propertyUsers; |
| | | } |
| | | |
| | | public int getStoreCount(Map info) throws DAOException{ |
| | | List<Map> stores = sqlSessionTemplate.selectList("storeServiceDaoImpl.getStoreCount", info); |
| | | if (stores.size() < 1) { |
| | | return 0; |
| | | } |
| | | return Integer.parseInt(stores.get(0).get("count").toString()); |
| | | } |
| | | } |