Browse Source

夜市功能接口

qmj 2 days ago
parent
commit
12e3013ee1

+ 1 - 15
ruoyi-admin/src/main/java/com/ruoyi/app/stall/StallController.java

@@ -6,11 +6,9 @@ import com.ruoyi.common.core.controller.BaseController;
 import com.ruoyi.common.core.domain.AjaxResult;
 import com.ruoyi.common.utils.MessageUtils;
 import com.ruoyi.system.domain.InfoUser;
-import com.ruoyi.system.domain.NightMarket;
 import com.ruoyi.system.domain.PosStore;
 import com.ruoyi.system.mapper.InfoUserMapper;
 import com.ruoyi.system.service.IInfoUserService;
-import com.ruoyi.system.service.INightMarketService;
 import com.ruoyi.system.service.IPosStoreService;
 import com.ruoyi.system.service.IUserWalletService;
 import com.ruoyi.system.utils.Auth;
@@ -31,9 +29,6 @@ public class StallController extends BaseController {
     @Autowired
     private IPosStoreService posStoreService;
 
-    @Autowired
-    private INightMarketService nightMarketService;
-
     @Autowired
     private IInfoUserService infoUserService;
 
@@ -85,15 +80,7 @@ public class StallController extends BaseController {
         String userId = jwtUtil.getusid(token);
         posStore.setUserId(Long.valueOf(userId));
         posStore.setIsStall(1);
-        // 从 night_market 表获取当前夜市用户关联的夜市ID
-        if (posStore.getNightMarketId() == null) {
-            NightMarket nightMarket = nightMarketService.lambdaQuery()
-                    .eq(NightMarket::getUserId, Long.valueOf(userId))
-                    .last("limit 1").one();
-            if (nightMarket != null) {
-                posStore.setNightMarketId(nightMarket.getId());
-            }
-        }
+        posStore.setNightMarketId(Long.valueOf(userId));
         posStoreService.insertPosStore(posStore);
         // 创建摊位钱包
         userWalletService.createStallWallet(Long.valueOf(posStore.getId()));
@@ -110,7 +97,6 @@ public class StallController extends BaseController {
     public AjaxResult addStallOwner(@RequestHeader String token, @RequestBody InfoUser stallOwner) {
         JwtUtil jwtUtil = new JwtUtil();
         String userId = jwtUtil.getusid(token);
-
         // 校验摊位属于当前夜市用户
         if (stallOwner.getStoreId() == null) {
             return error("请指定摊位ID");

+ 0 - 104
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/NightMarketController.java

@@ -1,104 +0,0 @@
-package com.ruoyi.web.controller.system;
-
-import java.util.List;
-import jakarta.servlet.http.HttpServletResponse;
-import org.springframework.security.access.prepost.PreAuthorize;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.PutMapping;
-import org.springframework.web.bind.annotation.DeleteMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-import com.ruoyi.common.annotation.Log;
-import com.ruoyi.common.core.controller.BaseController;
-import com.ruoyi.common.core.domain.AjaxResult;
-import com.ruoyi.common.enums.BusinessType;
-import com.ruoyi.system.domain.NightMarket;
-import com.ruoyi.system.service.INightMarketService;
-import com.ruoyi.common.utils.poi.ExcelUtil;
-import com.ruoyi.common.core.page.TableDataInfo;
-
-/**
- * 夜市Controller
- *
- * @author ruoyi
- * @date 2025-09-02
- */
-@RestController
-@RequestMapping("/system/market")
-public class NightMarketController extends BaseController
-{
-    @Autowired
-    private INightMarketService nightMarketService;
-
-    /**
-     * 查询夜市列表
-     */
-    @PreAuthorize("@ss.hasPermi('system:market:list')")
-    @GetMapping("/list")
-    public TableDataInfo list(NightMarket nightMarket)
-    {
-        startPage();
-        List<NightMarket> list = nightMarketService.selectNightMarketList(nightMarket);
-        return getDataTable(list);
-    }
-
-    /**
-     * 导出夜市列表
-     */
-    @PreAuthorize("@ss.hasPermi('system:market:export')")
-    @Log(title = "夜市", businessType = BusinessType.EXPORT)
-    @PostMapping("/export")
-    public void export(HttpServletResponse response, NightMarket nightMarket)
-    {
-        List<NightMarket> list = nightMarketService.selectNightMarketList(nightMarket);
-        ExcelUtil<NightMarket> util = new ExcelUtil<NightMarket>(NightMarket.class);
-        util.exportExcel(response, list, "夜市数据");
-    }
-
-    /**
-     * 获取夜市详细信息
-     */
-    @PreAuthorize("@ss.hasPermi('system:market:query')")
-    @GetMapping(value = "/{id}")
-    public AjaxResult getInfo(@PathVariable("id") Long id)
-    {
-        return success(nightMarketService.selectNightMarketById(id));
-    }
-
-    /**
-     * 新增夜市
-     */
-    @PreAuthorize("@ss.hasPermi('system:market:add')")
-    @Log(title = "夜市", businessType = BusinessType.INSERT)
-    @PostMapping
-    public AjaxResult add(@RequestBody NightMarket nightMarket)
-    {
-        return toAjax(nightMarketService.insertNightMarket(nightMarket));
-    }
-
-    /**
-     * 修改夜市
-     */
-    @PreAuthorize("@ss.hasPermi('system:market:edit')")
-    @Log(title = "夜市", businessType = BusinessType.UPDATE)
-    @PutMapping
-    public AjaxResult edit(@RequestBody NightMarket nightMarket)
-    {
-        return toAjax(nightMarketService.updateNightMarket(nightMarket));
-    }
-
-    /**
-     * 删除夜市
-     */
-    @PreAuthorize("@ss.hasPermi('system:market:remove')")
-    @Log(title = "夜市", businessType = BusinessType.DELETE)
-    @DeleteMapping("/{ids}")
-    public AjaxResult remove(@PathVariable Long[] ids)
-    {
-        return toAjax(nightMarketService.deleteNightMarketByIds(ids));
-    }
-}

+ 0 - 281
ruoyi-system/src/main/java/com/ruoyi/system/domain/NightMarket.java

@@ -1,281 +0,0 @@
-package com.ruoyi.system.domain;
-
-import java.math.BigDecimal;
-import java.util.Date;
-import com.fasterxml.jackson.annotation.JsonFormat;
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import org.apache.commons.lang3.builder.ToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
-import com.ruoyi.common.annotation.Excel;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-
-import javax.persistence.GeneratedValue;
-import com.ruoyi.common.core.domain.BaseEntity;
-
-/**
- * 夜市对象 night_market
- *
- * @author ruoyi
- * @date 2025-09-02
- */
-@Data
-@TableName(value = "night_market")
-@EqualsAndHashCode(callSuper = false)
-public class NightMarket
-{
-    private static final long serialVersionUID = 1L;
-
-    @TableId(type = IdType.AUTO)
-    @GeneratedValue
-    /** $column.columnComment */
-    private Long id;
-
-    /** 夜市名称 */
-    @Excel(name = "夜市名称")
-    private String name;
-
-    /** 夜市封面 */
-    @Excel(name = "夜市封面")
-    private String image;
-
-    /** 所在地区 */
-    @Excel(name = "所在地区")
-    private String area;
-
-    /** 详细地址 */
-    @Excel(name = "详细地址")
-    private String address;
-
-    /** 经度 */
-    @Excel(name = "经度")
-    private BigDecimal longitude;
-
-    /** 纬度 */
-    @Excel(name = "纬度")
-    private BigDecimal latitude;
-
-    /** 简介 */
-    @Excel(name = "简介")
-    private String briefIntroduction;
-
-    /** 开始营业 */
-    @Excel(name = "开始营业")
-    private String openBusiness;
-
-    /** 结束营业 */
-    @Excel(name = "结束营业")
-    private String windingUp;
-
-    /** 分类 */
-    @Excel(name = "分类")
-    private Long sort;
-
-    /** 所属用户id */
-    @Excel(name = "所属用户id")
-    private Long userId;
-
-    /** 创建时间 */
-    @JsonFormat(pattern = "yyyy-MM-dd")
-    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
-    private Date cretim;
-
-    /** 状态(0营业,1打烊) */
-    @Excel(name = "状态", readConverterExp = "0=营业,1打烊")
-    private Long state;
-
-    /** 客服电话 */
-    @Excel(name = "客服电话")
-    private String telephone;
-
-    /** 用户名 */
-    @Excel(name = "用户名")
-    private String userName;
-
-    /** logo */
-    @Excel(name = "logo")
-    private String logo;
-
-    /** 下架 */
-    @Excel(name = "下架")
-    private String offShelf;
-
-    /** 证件上传 */
-    @Excel(name = "证件上传")
-    private String hygieneLicence;
-
-    public void setId(Long id)
-    {
-        this.id = id;
-    }
-
-    public Long getId()
-    {
-        return id;
-    }
-    public void setName(String name)
-    {
-        this.name = name;
-    }
-
-    public String getName()
-    {
-        return name;
-    }
-    public void setImage(String image)
-    {
-        this.image = image;
-    }
-
-    public String getImage()
-    {
-        return image;
-    }
-    public void setArea(String area)
-    {
-        this.area = area;
-    }
-
-    public String getArea()
-    {
-        return area;
-    }
-    public void setAddress(String address)
-    {
-        this.address = address;
-    }
-
-    public String getAddress()
-    {
-        return address;
-    }
-    public void setLongitude(BigDecimal longitude)
-    {
-        this.longitude = longitude;
-    }
-
-    public BigDecimal getLongitude()
-    {
-        return longitude;
-    }
-    public void setLatitude(BigDecimal latitude)
-    {
-        this.latitude = latitude;
-    }
-
-    public BigDecimal getLatitude()
-    {
-        return latitude;
-    }
-    public void setBriefIntroduction(String briefIntroduction)
-    {
-        this.briefIntroduction = briefIntroduction;
-    }
-
-    public String getBriefIntroduction()
-    {
-        return briefIntroduction;
-    }
-    public void setOpenBusiness(String openBusiness)
-    {
-        this.openBusiness = openBusiness;
-    }
-
-    public String getOpenBusiness()
-    {
-        return openBusiness;
-    }
-    public void setWindingUp(String windingUp)
-    {
-        this.windingUp = windingUp;
-    }
-
-    public String getWindingUp()
-    {
-        return windingUp;
-    }
-    public void setSort(Long sort)
-    {
-        this.sort = sort;
-    }
-
-    public Long getSort()
-    {
-        return sort;
-    }
-    public void setUserId(Long userId)
-    {
-        this.userId = userId;
-    }
-
-    public Long getUserId()
-    {
-        return userId;
-    }
-    public void setCretim(Date cretim)
-    {
-        this.cretim = cretim;
-    }
-
-    public Date getCretim()
-    {
-        return cretim;
-    }
-    public void setState(Long state)
-    {
-        this.state = state;
-    }
-
-    public Long getState()
-    {
-        return state;
-    }
-    public void setTelephone(String telephone)
-    {
-        this.telephone = telephone;
-    }
-
-    public String getTelephone()
-    {
-        return telephone;
-    }
-    public void setUserName(String userName)
-    {
-        this.userName = userName;
-    }
-
-    public String getUserName()
-    {
-        return userName;
-    }
-    public void setLogo(String logo)
-    {
-        this.logo = logo;
-    }
-
-    public String getLogo()
-    {
-        return logo;
-    }
-    public void setOffShelf(String offShelf)
-    {
-        this.offShelf = offShelf;
-    }
-
-    public String getOffShelf()
-    {
-        return offShelf;
-    }
-    public void setHygieneLicence(String hygieneLicence)
-    {
-        this.hygieneLicence = hygieneLicence;
-    }
-
-    public String getHygieneLicence()
-    {
-        return hygieneLicence;
-    }
-
-}

+ 0 - 62
ruoyi-system/src/main/java/com/ruoyi/system/mapper/NightMarketMapper.java

@@ -1,62 +0,0 @@
-package com.ruoyi.system.mapper;
-
-import java.util.List;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.ruoyi.system.domain.NightMarket;
-
-/**
- * 夜市Mapper接口
- *
- * @author ruoyi
- * @date 2025-09-02
- */
-public interface NightMarketMapper  extends BaseMapper<NightMarket>
-{
-    /**
-     * 查询夜市
-     *
-     * @param id 夜市主键
-     * @return 夜市
-     */
-    public NightMarket selectNightMarketById(Long id);
-
-    /**
-     * 查询夜市列表
-     *
-     * @param nightMarket 夜市
-     * @return 夜市集合
-     */
-    public List<NightMarket> selectNightMarketList(NightMarket nightMarket);
-
-    /**
-     * 新增夜市
-     *
-     * @param nightMarket 夜市
-     * @return 结果
-     */
-    public int insertNightMarket(NightMarket nightMarket);
-
-    /**
-     * 修改夜市
-     *
-     * @param nightMarket 夜市
-     * @return 结果
-     */
-    public int updateNightMarket(NightMarket nightMarket);
-
-    /**
-     * 删除夜市
-     *
-     * @param id 夜市主键
-     * @return 结果
-     */
-    public int deleteNightMarketById(Long id);
-
-    /**
-     * 批量删除夜市
-     *
-     * @param ids 需要删除的数据主键集合
-     * @return 结果
-     */
-    public int deleteNightMarketByIds(Long[] ids);
-}

+ 0 - 62
ruoyi-system/src/main/java/com/ruoyi/system/service/INightMarketService.java

@@ -1,62 +0,0 @@
-package com.ruoyi.system.service;
-
-import java.util.List;
-import com.baomidou.mybatisplus.extension.service.IService;
-import com.ruoyi.system.domain.NightMarket;
-
-/**
- * 夜市Service接口
- *
- * @author ruoyi
- * @date 2025-09-02
- */
-public interface INightMarketService extends IService<NightMarket>
-{
-    /**
-     * 查询夜市
-     *
-     * @param id 夜市主键
-     * @return 夜市
-     */
-    public NightMarket selectNightMarketById(Long id);
-
-    /**
-     * 查询夜市列表
-     *
-     * @param nightMarket 夜市
-     * @return 夜市集合
-     */
-    public List<NightMarket> selectNightMarketList(NightMarket nightMarket);
-
-    /**
-     * 新增夜市
-     *
-     * @param nightMarket 夜市
-     * @return 结果
-     */
-    public int insertNightMarket(NightMarket nightMarket);
-
-    /**
-     * 修改夜市
-     *
-     * @param nightMarket 夜市
-     * @return 结果
-     */
-    public int updateNightMarket(NightMarket nightMarket);
-
-    /**
-     * 批量删除夜市
-     *
-     * @param ids 需要删除的夜市主键集合
-     * @return 结果
-     */
-    public int deleteNightMarketByIds(Long[] ids);
-
-    /**
-     * 删除夜市信息
-     *
-     * @param id 夜市主键
-     * @return 结果
-     */
-    public int deleteNightMarketById(Long id);
-}

+ 0 - 95
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/NightMarketServiceImpl.java

@@ -1,95 +0,0 @@
-package com.ruoyi.system.service.impl;
-
-import java.util.List;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import com.ruoyi.system.mapper.NightMarketMapper;
-import com.ruoyi.system.domain.NightMarket;
-import com.ruoyi.system.service.INightMarketService;
-
-/**
- * 夜市Service业务层处理
- *
- * @author ruoyi
- * @date 2025-09-02
- */
-@Service
-public class NightMarketServiceImpl extends ServiceImpl<BaseMapper<NightMarket>,NightMarket> implements INightMarketService
-{
-    @Autowired
-    private NightMarketMapper nightMarketMapper;
-
-    /**
-     * 查询夜市
-     *
-     * @param id 夜市主键
-     * @return 夜市
-     */
-    @Override
-    public NightMarket selectNightMarketById(Long id)
-    {
-        return nightMarketMapper.selectNightMarketById(id);
-    }
-
-    /**
-     * 查询夜市列表
-     *
-     * @param nightMarket 夜市
-     * @return 夜市
-     */
-    @Override
-    public List<NightMarket> selectNightMarketList(NightMarket nightMarket)
-    {
-        return nightMarketMapper.selectNightMarketList(nightMarket);
-    }
-
-    /**
-     * 新增夜市
-     *
-     * @param nightMarket 夜市
-     * @return 结果
-     */
-    @Override
-    public int insertNightMarket(NightMarket nightMarket)
-    {
-        return nightMarketMapper.insertNightMarket(nightMarket);
-    }
-
-    /**
-     * 修改夜市
-     *
-     * @param nightMarket 夜市
-     * @return 结果
-     */
-    @Override
-    public int updateNightMarket(NightMarket nightMarket)
-    {
-        return nightMarketMapper.updateNightMarket(nightMarket);
-    }
-
-    /**
-     * 批量删除夜市
-     *
-     * @param ids 需要删除的夜市主键
-     * @return 结果
-     */
-    @Override
-    public int deleteNightMarketByIds(Long[] ids)
-    {
-        return nightMarketMapper.deleteNightMarketByIds(ids);
-    }
-
-    /**
-     * 删除夜市信息
-     *
-     * @param id 夜市主键
-     * @return 结果
-     */
-    @Override
-    public int deleteNightMarketById(Long id)
-    {
-        return nightMarketMapper.deleteNightMarketById(id);
-    }
-}

+ 0 - 141
ruoyi-system/src/main/resources/mapper/system/NightMarketMapper.xml

@@ -1,141 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE mapper
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.ruoyi.system.mapper.NightMarketMapper">
-
-    <resultMap type="NightMarket" id="NightMarketResult">
-        <result property="id"    column="id"    />
-        <result property="name"    column="name"    />
-        <result property="image"    column="image"    />
-        <result property="area"    column="area"    />
-        <result property="address"    column="address"    />
-        <result property="longitude"    column="longitude"    />
-        <result property="latitude"    column="latitude"    />
-        <result property="briefIntroduction"    column="brief_introduction"    />
-        <result property="openBusiness"    column="open_business"    />
-        <result property="windingUp"    column="winding_up"    />
-        <result property="sort"    column="sort"    />
-        <result property="userId"    column="user_id"    />
-        <result property="cretim"    column="cretim"    />
-        <result property="state"    column="state"    />
-        <result property="telephone"    column="telephone"    />
-        <result property="userName"    column="user_name"    />
-        <result property="logo"    column="logo"    />
-        <result property="offShelf"    column="off_shelf"    />
-        <result property="hygieneLicence"    column="hygiene_licence"    />
-    </resultMap>
-
-    <sql id="selectNightMarketVo">
-        select id, name, image, area, address, longitude, latitude, brief_introduction, open_business, winding_up, sort, user_id, cretim, state, telephone, user_name, logo, off_shelf, hygiene_licence from night_market
-    </sql>
-
-    <select id="selectNightMarketList" parameterType="NightMarket" resultMap="NightMarketResult">
-        <include refid="selectNightMarketVo"/>
-        <where>
-            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
-            <if test="image != null  and image != ''"> and image = #{image}</if>
-            <if test="area != null  and area != ''"> and area = #{area}</if>
-            <if test="address != null  and address != ''"> and address = #{address}</if>
-            <if test="longitude != null "> and longitude = #{longitude}</if>
-            <if test="latitude != null "> and latitude = #{latitude}</if>
-            <if test="briefIntroduction != null  and briefIntroduction != ''"> and brief_introduction = #{briefIntroduction}</if>
-            <if test="openBusiness != null  and openBusiness != ''"> and open_business = #{openBusiness}</if>
-            <if test="windingUp != null  and windingUp != ''"> and winding_up = #{windingUp}</if>
-            <if test="sort != null "> and sort = #{sort}</if>
-            <if test="userId != null "> and user_id = #{userId}</if>
-            <if test="cretim != null "> and cretim = #{cretim}</if>
-            <if test="state != null "> and state = #{state}</if>
-            <if test="telephone != null  and telephone != ''"> and telephone = #{telephone}</if>
-            <if test="userName != null  and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
-            <if test="logo != null  and logo != ''"> and logo = #{logo}</if>
-            <if test="offShelf != null  and offShelf != ''"> and off_shelf = #{offShelf}</if>
-            <if test="hygieneLicence != null  and hygieneLicence != ''"> and hygiene_licence = #{hygieneLicence}</if>
-        </where>
-    </select>
-
-    <select id="selectNightMarketById" parameterType="Long" resultMap="NightMarketResult">
-        <include refid="selectNightMarketVo"/>
-        where id = #{id}
-    </select>
-
-    <insert id="insertNightMarket" parameterType="NightMarket" useGeneratedKeys="true" keyProperty="id">
-        insert into night_market
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="name != null">name,</if>
-            <if test="image != null">image,</if>
-            <if test="area != null">area,</if>
-            <if test="address != null">address,</if>
-            <if test="longitude != null">longitude,</if>
-            <if test="latitude != null">latitude,</if>
-            <if test="briefIntroduction != null">brief_introduction,</if>
-            <if test="openBusiness != null">open_business,</if>
-            <if test="windingUp != null">winding_up,</if>
-            <if test="sort != null">sort,</if>
-            <if test="userId != null">user_id,</if>
-            <if test="cretim != null">cretim,</if>
-            <if test="state != null">state,</if>
-            <if test="telephone != null">telephone,</if>
-            <if test="userName != null">user_name,</if>
-            <if test="logo != null">logo,</if>
-            <if test="offShelf != null">off_shelf,</if>
-            <if test="hygieneLicence != null">hygiene_licence,</if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="name != null">#{name},</if>
-            <if test="image != null">#{image},</if>
-            <if test="area != null">#{area},</if>
-            <if test="address != null">#{address},</if>
-            <if test="longitude != null">#{longitude},</if>
-            <if test="latitude != null">#{latitude},</if>
-            <if test="briefIntroduction != null">#{briefIntroduction},</if>
-            <if test="openBusiness != null">#{openBusiness},</if>
-            <if test="windingUp != null">#{windingUp},</if>
-            <if test="sort != null">#{sort},</if>
-            <if test="userId != null">#{userId},</if>
-            <if test="cretim != null">#{cretim},</if>
-            <if test="state != null">#{state},</if>
-            <if test="telephone != null">#{telephone},</if>
-            <if test="userName != null">#{userName},</if>
-            <if test="logo != null">#{logo},</if>
-            <if test="offShelf != null">#{offShelf},</if>
-            <if test="hygieneLicence != null">#{hygieneLicence},</if>
-        </trim>
-    </insert>
-
-    <update id="updateNightMarket" parameterType="NightMarket">
-        update night_market
-        <trim prefix="SET" suffixOverrides=",">
-            <if test="name != null">name = #{name},</if>
-            <if test="image != null">image = #{image},</if>
-            <if test="area != null">area = #{area},</if>
-            <if test="address != null">address = #{address},</if>
-            <if test="longitude != null">longitude = #{longitude},</if>
-            <if test="latitude != null">latitude = #{latitude},</if>
-            <if test="briefIntroduction != null">brief_introduction = #{briefIntroduction},</if>
-            <if test="openBusiness != null">open_business = #{openBusiness},</if>
-            <if test="windingUp != null">winding_up = #{windingUp},</if>
-            <if test="sort != null">sort = #{sort},</if>
-            <if test="userId != null">user_id = #{userId},</if>
-            <if test="cretim != null">cretim = #{cretim},</if>
-            <if test="state != null">state = #{state},</if>
-            <if test="telephone != null">telephone = #{telephone},</if>
-            <if test="userName != null">user_name = #{userName},</if>
-            <if test="logo != null">logo = #{logo},</if>
-            <if test="offShelf != null">off_shelf = #{offShelf},</if>
-            <if test="hygieneLicence != null">hygiene_licence = #{hygieneLicence},</if>
-        </trim>
-        where id = #{id}
-    </update>
-
-    <delete id="deleteNightMarketById" parameterType="Long">
-        delete from night_market where id = #{id}
-    </delete>
-
-    <delete id="deleteNightMarketByIds" parameterType="String">
-        delete from night_market where id in
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
-        </foreach>
-    </delete>
-</mapper>

+ 1 - 0
sql/user_wallet_add_store_id.sql

@@ -1 +1,2 @@
 ALTER TABLE user_wallet ADD COLUMN store_id BIGINT DEFAULT NULL COMMENT '关联摊位id,非摊位钱包为NULL';
+ALTER TABLE user_wallet MODIFY COLUMN user_id BIGINT DEFAULT NULL COMMENT '用户id,摊位钱包为NULL';