1
zj
2024-05-17 219f37458e6145163c247bcdc29a5321d48e422a
1
8 files modified
35 ■■■■■ changed files
src/main/java/com/nq/controller/backend/AdminUserController.java 11 ●●●● patch | view | raw | blame | history
src/main/java/com/nq/dao/UserMapper.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/nq/service/IUserService.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/nq/service/impl/UserServiceImpl.java 4 ●●●● patch | view | raw | blame | history
src/main/java/com/nq/service/impl/UserStockSubscribeServiceImpl.java 2 ●●● patch | view | raw | blame | history
src/main/resources/application.properties 8 ●●●●● patch | view | raw | blame | history
src/main/resources/mapper/UserMapper.xml 3 ●●●●● patch | view | raw | blame | history
target/classes/mapper/UserMapper.xml 3 ●●●●● patch | view | raw | blame | history
src/main/java/com/nq/controller/backend/AdminUserController.java
@@ -30,8 +30,15 @@
    //分页查询所有用户列表信息 及模糊查询用户信息
    @RequestMapping({"list.do"})
    @ResponseBody
    public ServerResponse list(@RequestParam(value = "realName", required = false) String realName, @RequestParam(value = "phone", required = false) String phone, @RequestParam(value = "agentId", required = false) Integer agentId, @RequestParam(value = "accountType", required = false) Integer accountType, @RequestParam(value = "pageNum", defaultValue = "1") int pageNum, @RequestParam(value = "pageSize", defaultValue = "10") int pageSize, HttpServletRequest request) {
        return this.iUserService.listByAdmin(realName, phone, agentId, accountType, pageNum, pageSize, request);
    public ServerResponse list(@RequestParam(value = "realName", required = false) String realName,
                               @RequestParam(value = "phone", required = false) String phone,
                               @RequestParam(value = "agentId", required = false) Integer agentId,
                               @RequestParam(value = "accountType", required = false) Integer accountType,
                               @RequestParam(value = "pageNum", defaultValue = "1") int pageNum,
                               @RequestParam(value = "pageSize", defaultValue = "10") int pageSize,
                               @RequestParam(value = "id", required = false) String id,
                               HttpServletRequest request) {
        return this.iUserService.listByAdmin(realName, phone, agentId, accountType, pageNum, pageSize,id, request);
    }
    //查询用户信息是否存在
src/main/java/com/nq/dao/UserMapper.java
@@ -24,7 +24,7 @@
    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);
    List listByAdmin(@Param("realName") String paramString1, @Param("phone") String paramString2, @Param("searchId") Integer paramInteger1, @Param("accountType") Integer paramInteger2,@Param("id") String id);
    int CountUserSize(Integer paramInteger);
src/main/java/com/nq/service/IUserService.java
@@ -62,7 +62,7 @@
  ServerResponse addSimulatedAccount(Integer paramInteger1, String paramString1, String paramString2, Integer paramInteger2, HttpServletRequest paramHttpServletRequest);
  ServerResponse listByAdmin(String paramString1, String paramString2, Integer paramInteger1, Integer paramInteger2, int paramInt1, int paramInt2, HttpServletRequest paramHttpServletRequest);
  ServerResponse listByAdmin(String paramString1, String paramString2, Integer paramInteger1, Integer paramInteger2, int paramInt1, int paramInt2,String id, HttpServletRequest paramHttpServletRequest);
  ServerResponse findByUserId(Integer paramInteger);
src/main/java/com/nq/service/impl/UserServiceImpl.java
@@ -808,10 +808,10 @@
    }
    public ServerResponse listByAdmin(String realName, String phone, Integer agentId, Integer accountType, int pageNum, int pageSize, HttpServletRequest request) {
    public ServerResponse listByAdmin(String realName, String phone, Integer agentId, Integer accountType, int pageNum, int pageSize, String id,HttpServletRequest request) {
        PageHelper.startPage(pageNum, pageSize);
        List<User> users = this.userMapper.listByAdmin(realName, phone, agentId, accountType);
        List<User> users = this.userMapper.listByAdmin(realName, phone, agentId, accountType,id);
        PageInfo pageInfo = new PageInfo(users);
src/main/java/com/nq/service/impl/UserStockSubscribeServiceImpl.java
@@ -264,7 +264,7 @@
        if(model!=null){
            //所有人发站内信
            if(model.getUserId() == 0){
                List<User> users = this.userMapper.listByAdmin(null, null, null, null);
                List<User> users = this.userMapper.listByAdmin(null, null, null, null,null);
                for(int k=0;k<users.size();k++){
                    User user = users.get(k);
                    SiteMessage siteMessage = new SiteMessage();
src/main/resources/application.properties
@@ -175,20 +175,18 @@
spring.mail.host=smtp.gmail.com
# ????????
spring.mail.port=465
# ????????????
spring.mail.username=barclays5510@gmail.com
# ????????????????????????????
spring.mail.password=nppwibbarixvbnqk
# ??TLS??
spring.mail.properties.mail.smtp.starttls.enable=true
# ??????????
spring.mail.properties.mail.smtp.auth=true
# ??????
spring.mail.properties.mail.transport.protocol=smtp
spring.mail.protocol=smtp
spring.mail.properties.mail.smtp.ssl.enable=true
spring.mail.properties.mail.smtp.socketFactory.port=465
spring.mail.properties.mail.transport.protocol=smtp
spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
spring.mail.properties.mail.smtp.socketFactory.port=465
src/main/resources/mapper/UserMapper.xml
@@ -82,6 +82,9 @@
        <include refid="Base_Column_List"/>
        FROM user
        <where>
            <if test="id != null and id != '' ">
                and id = #{id}
            </if>
            <if test="searchId != null ">
                and agent_id = #{searchId}
            </if>
target/classes/mapper/UserMapper.xml
@@ -82,6 +82,9 @@
        <include refid="Base_Column_List"/>
        FROM user
        <where>
            <if test="id != null and id != '' ">
                and id = #{id}
            </if>
            <if test="searchId != null ">
                and agent_id = #{searchId}
            </if>