zj
2024-06-03 4afe73cb84c5a609662b8b4ee20693de9b86b9a3
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
package com.nq.dao;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nq.pojo.StockSubscribe;
import com.nq.pojo.User;
 
import java.math.BigDecimal;
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
 
public interface UserMapper extends BaseMapper<User> {
 
    int deleteByPrimaryKey(Integer paramInteger);
 
    int insert(User paramUser);
 
    int insertSelective(User paramUser);
 
    User selectByPrimaryKey(Integer paramInteger);
 
    int updateByPrimaryKeySelective(User paramUser);
 
    int updateByPrimaryKey(User paramUser);
 
    User findByPhone(String paramString);
 
    User login(@Param("phone") String paramString1, @Param("userPwd") String paramString2);
 
    List listByAgent(@Param("realName") String paramString1, @Param("phone") String paramString2, @Param("searchId") Integer paramInteger1, @Param("accountType") Integer paramInteger2);
 
    List listByAdmin(@Param("realName") String paramString1, @Param("phone") String paramString2, @Param("searchId") Integer paramInteger1, @Param("accountType") Integer paramInteger2);
 
    int CountUserSize(Integer paramInteger);
 
    BigDecimal CountUserAmt(Integer paramInteger);
 
    BigDecimal CountEnableAmt(Integer paramInteger);
 
    @Select("select with_pwd from `user` where with_pwd=#{with_pwd}")
    String findWithPwd(String with_pwd);
 
    @Select("select with_pwd from `user` where phone=#{phone}")
    String findIdWithPwd(String phone);
 
    @Update("update `user` set with_pwd=#{with_pwd} where phone=#{phone}")
    int updateWithPwd(@Param("with_pwd") String paramString1, @Param("phone") String paramString2);
 
//    @Update("update `user` set user_amt = user_amt + #{user_amt} where id = #{user_id}")
    int updateUserAmt(@Param("user_amt") Double user_amt, @Param("user_id") Integer user_id);
 
    int querySumTodayRegCount();
 
    int querySumTodayRegCount(Integer id);
 
 
    int queryAgintSumTodayRegCount(Integer id);
 
}