| | |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, mealCount,createTime |
| | | id, mealCount,createTime,shopId |
| | | </sql> |
| | | <select id="getList" resultType="com.ruoyi.system.vo.TFoundationPersonVO"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from t_foundation_person |
| | | ORDER BY createTime DESC |
| | | tfp.id, tfp.mealCount,tfp.createTime,tfp.shopId,ts.shopName |
| | | from t_foundation_person tfp |
| | | left join t_shop ts on ts.id = tfp.shopId |
| | | <where> |
| | | <if test="query.shopName != null and query.shopName != ''"> |
| | | and ts.shopName like concat('%', #{query.shopName}, '%') |
| | | </if> |
| | | </where> |
| | | ORDER BY tfp.createTime DESC |
| | | </select> |
| | | |
| | | </mapper> |