Helius
2021-08-05 c1b462af63ae1d293bf967d3c3da07d9348f8e76
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package com.xzx.gc.user.mapper;
 
import com.xzx.gc.entity.OtherUserInfo;
import com.xzx.gc.entity.UserInfo;
import com.xzx.gc.model.admin.CollectorModel;
import com.xzx.gc.model.admin.PromoterModel;
import com.xzx.gc.model.admin.StorageModel;
import com.xzx.gc.model.admin.UserModel;
import com.xzx.gc.model.user.AccountReq;
import com.xzx.gc.model.user.AccountVo;
import com.xzx.gc.model.user.UserInfoVo;
import com.xzx.gc.model.user.UserReq;
import com.xzx.gc.util.GcMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
 
import java.util.List;
import java.util.Map;
 
@Repository
public interface OtherUserMapper extends GcMapper<OtherUserInfo> {
 
    List<String> queryRKOrderIds(@Param("limitPrice") String limitPrice, @Param("type") String type);
 
    int UpdateUserApiByOtherUserId(@Param("flag") boolean flag, @Param("userId") String userId, @Param("userType") String userType);
 
    List<UserModel> queryPromoterApiList(@Param("phone") String phone, @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("isProhibit") String isProhibit, @Param("partnerIds") List<String> partnerIds);
 
    List<CollectorModel> queryCollectorApiList(CollectorModel collectorModel);
 
    void updateOtherUserByPhone(@Param("phone") String phone, @Param("password") String password,@Param("salt") String salt);
 
    int updateOtherUserName(@Param("userId") String userId, @Param("name") String name, @Param("mobile") String mobile);
 
    List<Map<String, Object>> queryCuserByPhoneRedisDelList(@Param("phone") String phone);
 
    UserModel queryUserByUsertype1(@Param("phone") String phone, @Param("userType") String userType, @Param("delFlag") String delFlag, @Param("normal") String normal, @Param("nickName") String nickName);
 
    int updateDelflag(@Param("phone") String phone, @Param("userType") String userType, @Param("roleId") String roleId, @Param("name") String name, @Param("password") String password, @Param("salt") String salt, @Param("area") String area, @Param("partnerId") String partnerId, @Param("cityId") String cityId, @Param("storageId") String storageId,@Param("provinceId") String provinceId,@Param("townshipId") String townshipId,@Param("province") String province,@Param("city")String city,@Param("township")String township);
 
    int addCuserRole(@Param("id") String id, @Param("mobilephone") String mobilephone, @Param("password") String password, @Param("userType") String userType, @Param("area") String area, @Param("partnerId") String partnerId, @Param("name") String name, @Param("salt") String salt, @Param("roleId") String roleId, @Param("cityId") String cityId, @Param("storageId") String storageId,@Param("provinceId") String provinceId,@Param("townshipId") String townshipId,@Param("province") String province,@Param("city")String city,@Param("township")String township);
 
    List<UserModel> checkOtherUserByType(@Param("userType") String userType, @Param("mobilePhone") String mobilePhone);
 
    List<PromoterModel> queryQromoterLeven(PromoterModel promoterModel);
 
    List<String> queryCollectorNum(@Param("partnerIds") List<String> partnerIds);
 
    List<UserModel> queryCollectorPageList(PromoterModel promoterModel);
 
    List<StorageModel> queryStorageByUserId(StorageModel storageModel);
 
    List<Map<String, Object>> queryStorageList(UserModel userModel);
 
    List<Map<String, Object>> queryStorageList1(UserModel userModel);
 
    int queryPackageStorageNum(@Param("townIds") List<String> townIds);
 
    List<Map<String, Object>> queryStorageObjectList(StorageModel storageModel);
 
    List<UserModel> queryOtherUserByPid(@Param("pid") String pid, @Param("userName") String userName, @Param("roleType") String roleType, @Param("packageStationList") List<String> packageStationList);
 
    List<UserModel> queryCityPartnerForOtherUser(@Param("partnerIds") List<String> partnerIds, @Param("userType") String userType);
 
    UserModel queryUserOtherById(@Param("userId") String userId);
 
    UserModel queryUserModelbyPartnerId(@Param("partnerId") List<String> partnerId, @Param("userType") String userType, @Param("userId") String userId, @Param("orderId") String orderId);
 
    int deleteUserByPartnerId(String id);
 
    UserModel queryUserOtherByIdC(@Param("userId") String userId);
 
    int insertUserOtherInfo(UserModel model);
 
    void updateOtherUserById1(@Param("partnerId") String partnerId);
 
    List<OtherUserInfo> findOfferByPartnerId(@Param("partnerId") String partnerId, @Param("paperWasteItemType") String paperWasteItemType);
    List<OtherUserInfo> findOfferByFenceId(@Param("fenceId") String fenceId, @Param("paperWasteItemType") String paperWasteItemType);
 
    List<OtherUserInfo> findAllOfferByPartnerId(@Param("partnerId") String partnerId, @Param("paperWasteItemType") String paperWasteItemType);
    List<OtherUserInfo> findAllOfferByFenceId(@Param("fenceId") String fenceId, @Param("paperWasteItemType") String paperWasteItemType);
 
 
    OtherUserInfo findNearestByLocationAndPartnerId(@Param("partnerId")String partnerId, @Param("lon") String lon, @Param("lat") String lat);
 
    OtherUserInfo findNearestByLocationAndFenceId(@Param("fenceId")String fenceId, @Param("lon") String lon, @Param("lat") String lat);
 
    List<OtherUserInfo> findByUserTypeAndFenceIdForNotLeave(@Param("fenceId")String fenceId);
 
    List<OtherUserInfo> findByUserTypeAndPartnerIdForNotLeave(@Param("partnerId")String partnerId);
}