| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.hrt.system.mapper.shop.ShopMapper"> |
| | | |
| | | <select id="pageShop" resultType="com.hrt.system.domain.vo.MgtShopPageVo"> |
| | | SELECT |
| | | ts.shop_id shopId, |
| | | ts.sign_time signTime, |
| | | ts.shop_name shopName, |
| | | ts.shop_number shopNumber, |
| | | ts.shop_tags shopTags, |
| | | sus.nick_name signUser, |
| | | null firstWithdraw, |
| | | sub.nick_name belongUser, |
| | | sd.dept_name belongDept, |
| | | ts.shop_source shopSource, |
| | | ts.sign_area_name signAreaName, |
| | | CONCAT(ts.cooperation_start_time,'-',ts.cooperation_end_time) cooperationTime, |
| | | CONCAT(ts.shop_area_name,ts.shop_address) shopAddress, |
| | | ts.shopowner_name shopownerName, |
| | | ts.shopowner_phone shopownerPhone, |
| | | ts.shop_status shopStatus, |
| | | tsm.shop_marketing_total shopActivityCount, |
| | | ts.shop_custom_status shopCustomStatus |
| | | FROM t_shop ts |
| | | LEFT JOIN sys_user sus ON sus.user_id = ts.sign_user_id |
| | | LEFT JOIN sys_user sub ON sub.user_id = ts.belong_user_id |
| | | LEFT JOIN sys_dept sd ON sub.dept_id = sd.dept_id |
| | | LEFT JOIN t_shop_marketing tsm ON tsm.shop_id = ts.shop_id |
| | | |
| | | </select> |
| | | |
| | | </mapper> |