| | |
| | | </select> |
| | | |
| | | <select id="queryStoreByCityCode" resultType="com.dsh.other.model.BaseVo"> |
| | | select id, name from t_store where state = 1 and cityCode = #{cityCode} |
| | | select id, name from t_store where state = 1 |
| | | and provinceCode = #{provinceCode} |
| | | <if test="cityCode !=null and cityCode !='' "> |
| | | and cityCode = #{cityCode} |
| | | </if> |
| | | |
| | | </select> |
| | | <select id="getStoreByCityManagerId" resultType="com.dsh.other.entity.Store"> |
| | | select * from t_store where cityManagerId = #{id} |
| | | select * from t_store where operatorId = #{id} |
| | | </select> |
| | | <select id="getStoreByStoreStaffId" resultType="com.dsh.other.entity.Store"> |
| | | select * from t_store where storeStaffId = #{id} |
| | | select * from t_store where id = #{id} |
| | | </select> |
| | | <select id="getOName" resultType="java.lang.String"> |
| | | select name from t_operator where id =#{operatorId} |
| | |
| | | |
| | | |
| | | </select> |
| | | <select id="getStoreInfo" resultType="com.dsh.other.model.dto.siteDto.StoreInfoDto"> |
| | | select CONCAT(t2.name,"-",t2.phone) as info |
| | | from sys_user t2 |
| | | where id = #{id} |
| | | </select> |
| | | </mapper> |