From 7e7f901b2172281dc294dfbc67e6ad00625f09f4 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期一, 04 三月 2024 10:11:21 +0800 Subject: [PATCH] 合并代码 --- cloud-server-other/src/main/resources/mapper/StoreMapper.xml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 50 insertions(+), 2 deletions(-) diff --git a/cloud-server-other/src/main/resources/mapper/StoreMapper.xml b/cloud-server-other/src/main/resources/mapper/StoreMapper.xml index b47a6b1..d34fe54 100644 --- a/cloud-server-other/src/main/resources/mapper/StoreMapper.xml +++ b/cloud-server-other/src/main/resources/mapper/StoreMapper.xml @@ -2,7 +2,55 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.dsh.other.mapper.StoreMapper"> - <!-- 开启二级缓存 --> - <cache type="org.mybatis.caches.ehcache.LoggingEhcache"/> + <select id="queryProvince" resultType="com.dsh.other.model.ProvinceAndCityVo"> + select province as name, provinceCode as code from t_store where state = 1 group by province, provinceCode + </select> + + + <select id="queryCity" resultType="com.dsh.other.model.ProvinceAndCityVo"> + select city as name, cityCode as code from t_store where state = 1 + <if test="null != pcode and '' != pcode"> + and provinceCode = #{pcode} + </if> + group by city, cityCode + </select> + + <select id="queryStoreByCityCode" resultType="com.dsh.other.model.BaseVo"> + 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 operatorId = #{id} + </select> + <select id="getStoreByStoreStaffId" resultType="com.dsh.other.entity.Store"> + 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="game" resultType="java.util.Map"> + select time,money from t_game_record where userId =#{appUserId} and payType =3 + </select> + <select id="queryByStoreId" resultType="com.dsh.other.entity.OperatorUser"> + + + + SELECT * from t_operator_user WHERE operatorId = + + (SELECT ts.operatorId + from t_store ts + WHERE ts.id = #{id}) + + + </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> -- Gitblit v1.7.1