mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package com.panzhihua.service_community.dao;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.model.vos.community.VolunteerMerchantVO;
import com.panzhihua.common.model.vos.community.VolunteerTypeVO;
import com.panzhihua.service_community.entity.SysUser;
import com.panzhihua.service_community.entity.VolunteerMerchant;
import com.panzhihua.service_community.entity.VolunteerType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
@Mapper
public interface VolunteerMerchantDao extends BaseMapper<VolunteerMerchant>
{
 
 
    VolunteerMerchant getById(@Param("id") String id);
 
 
    /**
     * 分页查询
     * @param
     * @return
     */
    IPage<VolunteerMerchant> getList(Page page,
                                     @Param("merchantState") String merchantState,
                                     @Param("merchantType") String merchantType,
                                     @Param("name") String name,
                                     @Param("communityId") String communityId);
 
    /**
     * 新增
     * @param
     * @return
     */
    int insertData(@Param("vtvo") VolunteerMerchantVO vtvo);
 
 
    int Update(@Param("vtvo") VolunteerMerchantVO vtvo);
 
 
    int delete(@Param("id") String id);
 
    /**
     * 判断是否是商家
     * @return
     */
    String isMerchant(@Param("userId") String userId);
 
    /**
     * 根据电话号码  或者姓名查询用户
     * @param
     * @return
     */
    List<SysUser> getUser(@Param("communityId") String communityId,
                          @Param("userName") String userName,
                          @Param("userPhone") String userPhone);
 
 
 
 
 
 
}