作者 钟来

流水鱼登陆合并整理

正在显示 22 个修改的文件 包含 119 行增加80 行删除
1 package com.zhonglai.luhui.user.domain; 1 package com.zhonglai.luhui.user.domain;
2 2
  3 +import com.ruoyi.common.utils.DateUtils;
3 import org.apache.commons.lang3.builder.ToStringBuilder; 4 import org.apache.commons.lang3.builder.ToStringBuilder;
4 import org.apache.commons.lang3.builder.ToStringStyle; 5 import org.apache.commons.lang3.builder.ToStringStyle;
5 import io.swagger.annotations.ApiModel; 6 import io.swagger.annotations.ApiModel;
6 import io.swagger.annotations.ApiModelProperty; 7 import io.swagger.annotations.ApiModelProperty;
7 import com.ruoyi.common.tool.BaseEntity; 8 import com.ruoyi.common.tool.BaseEntity;
8 9
  10 +import java.util.Date;
  11 +
9 /** 12 /**
10 * 基础用户信息对象 user_base_info 13 * 基础用户信息对象 user_base_info
11 * 14 *
@@ -48,7 +51,15 @@ public class UserBaseInfo extends BaseEntity @@ -48,7 +51,15 @@ public class UserBaseInfo extends BaseEntity
48 @ApiModelProperty(value="头像地址") 51 @ApiModelProperty(value="头像地址")
49 private String imgUrl; 52 private String imgUrl;
50 53
51 - public void setId(Integer id) 54 + public void setCreateTime(Integer createTime)
  55 + {
  56 + if (null != createTime)
  57 + {
  58 + setCreateTime(new Date(createTime*1000l));
  59 + }
  60 + }
  61 +
  62 + public void setId(Integer id)
52 { 63 {
53 this.id = id; 64 this.id = id;
54 } 65 }
@@ -29,7 +29,7 @@ public class UserExtraInfo extends BaseEntity @@ -29,7 +29,7 @@ public class UserExtraInfo extends BaseEntity
29 private String describe; 29 private String describe;
30 30
31 /** 用户类型(0普通用户,1管理员,2客服) */ 31 /** 用户类型(0普通用户,1管理员,2客服) */
32 - @ApiModelProperty(value="用户类型",allowableValues="0=普通用户,1管理员,2客服") 32 + @ApiModelProperty(value="用户类型(0=普通用户,1管理员,2客服)")
33 private Integer userType; 33 private Integer userType;
34 34
35 /** 是否失效 */ 35 /** 是否失效 */
@@ -21,7 +21,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -21,7 +21,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
21 21
22 <select id="selectUserAccountInfoList" parameterType="UserAccountInfo" resultMap="UserAccountInfoResult"> 22 <select id="selectUserAccountInfoList" parameterType="UserAccountInfo" resultMap="UserAccountInfoResult">
23 <include refid="selectUserAccountInfoVo"/> 23 <include refid="selectUserAccountInfoVo"/>
24 - <where> 24 + <where>
  25 + <if test="id != null "> and id = #{id}</if>
25 <if test="integral != null "> and integral = #{integral}</if> 26 <if test="integral != null "> and integral = #{integral}</if>
26 <if test="balance != null "> and balance = #{balance}</if> 27 <if test="balance != null "> and balance = #{balance}</if>
27 <if test="level != null "> and level = #{level}</if> 28 <if test="level != null "> and level = #{level}</if>
@@ -22,7 +22,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -22,7 +22,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
22 22
23 <select id="selectUserAddressInfoList" parameterType="UserAddressInfo" resultMap="UserAddressInfoResult"> 23 <select id="selectUserAddressInfoList" parameterType="UserAddressInfo" resultMap="UserAddressInfoResult">
24 <include refid="selectUserAddressInfoVo"/> 24 <include refid="selectUserAddressInfoVo"/>
25 - <where> 25 + <where>
  26 + <if test="id != null "> and id = #{id}</if>
26 <if test="provinceId != null and provinceId != ''"> and province_id = #{provinceId}</if> 27 <if test="provinceId != null and provinceId != ''"> and province_id = #{provinceId}</if>
27 <if test="cityId != null and cityId != ''"> and city_id = #{cityId}</if> 28 <if test="cityId != null and cityId != ''"> and city_id = #{cityId}</if>
28 <if test="countyId != null and countyId != ''"> and county_id = #{countyId}</if> 29 <if test="countyId != null and countyId != ''"> and county_id = #{countyId}</if>
@@ -25,7 +25,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -25,7 +25,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
25 25
26 <select id="selectUserAuthInfoList" parameterType="UserAuthInfo" resultMap="UserAuthInfoResult"> 26 <select id="selectUserAuthInfoList" parameterType="UserAuthInfo" resultMap="UserAuthInfoResult">
27 <include refid="selectUserAuthInfoVo"/> 27 <include refid="selectUserAuthInfoVo"/>
28 - <where> 28 + <where>
  29 + <if test="id != null "> and id = #{id}</if>
29 <if test="nameAuthentication != null "> and name_authentication = #{nameAuthentication}</if> 30 <if test="nameAuthentication != null "> and name_authentication = #{nameAuthentication}</if>
30 <if test="personalAuthenticationState != null "> and personal_authentication_state = #{personalAuthenticationState}</if> 31 <if test="personalAuthenticationState != null "> and personal_authentication_state = #{personalAuthenticationState}</if>
31 <if test="enterpriseAuthenticationState != null "> and enterprise_authentication_state = #{enterpriseAuthenticationState}</if> 32 <if test="enterpriseAuthenticationState != null "> and enterprise_authentication_state = #{enterpriseAuthenticationState}</if>
@@ -16,12 +16,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -16,12 +16,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
16 </resultMap> 16 </resultMap>
17 17
18 <sql id="selectUserBaseInfoVo"> 18 <sql id="selectUserBaseInfoVo">
19 - select id, name, nickname, gender, phone, email, img_url, create_time from user_base_info 19 + select id, name, nickname, gender, phone, email, img_url, FROM_UNIXTIME(create_time) AS create_time from user_base_info
20 </sql> 20 </sql>
21 21
22 <select id="selectUserBaseInfoList" parameterType="UserBaseInfo" resultMap="UserBaseInfoResult"> 22 <select id="selectUserBaseInfoList" parameterType="UserBaseInfo" resultMap="UserBaseInfoResult">
23 <include refid="selectUserBaseInfoVo"/> 23 <include refid="selectUserBaseInfoVo"/>
24 - <where> 24 + <where>
  25 + <if test="id != null "> and id = #{id}</if>
25 <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> 26 <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
26 <if test="nickname != null and nickname != ''"> and nickname like concat('%', #{nickname}, '%')</if> 27 <if test="nickname != null and nickname != ''"> and nickname like concat('%', #{nickname}, '%')</if>
27 <if test="gender != null "> and gender = #{gender}</if> 28 <if test="gender != null "> and gender = #{gender}</if>
@@ -21,7 +21,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -21,7 +21,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
21 21
22 <select id="selectUserExtraInfoList" parameterType="UserExtraInfo" resultMap="UserExtraInfoResult"> 22 <select id="selectUserExtraInfoList" parameterType="UserExtraInfo" resultMap="UserExtraInfoResult">
23 <include refid="selectUserExtraInfoVo"/> 23 <include refid="selectUserExtraInfoVo"/>
24 - <where> 24 + <where>
  25 + <if test="id != null "> and id = #{id}</if>
25 <if test="describeImgUrl != null and describeImgUrl != ''"> and describe_img_url = #{describeImgUrl}</if> 26 <if test="describeImgUrl != null and describeImgUrl != ''"> and describe_img_url = #{describeImgUrl}</if>
26 <if test="describe != null and describe != ''"> and `describe` = #{describe}</if> 27 <if test="describe != null and describe != ''"> and `describe` = #{describe}</if>
27 <if test="userType != null "> and user_type = #{userType}</if> 28 <if test="userType != null "> and user_type = #{userType}</if>
@@ -20,7 +20,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -20,7 +20,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
20 20
21 <select id="selectUserLoginInfoList" parameterType="UserLoginInfo" resultMap="UserLoginInfoResult"> 21 <select id="selectUserLoginInfoList" parameterType="UserLoginInfo" resultMap="UserLoginInfoResult">
22 <include refid="selectUserLoginInfoVo"/> 22 <include refid="selectUserLoginInfoVo"/>
23 - <where> 23 + <where>
  24 + <if test="id != null "> and id = #{id}</if>
24 <if test="onlineState != null "> and online_state = #{onlineState}</if> 25 <if test="onlineState != null "> and online_state = #{onlineState}</if>
25 <if test="lastLoginTime != null "> and last_login_time = #{lastLoginTime}</if> 26 <if test="lastLoginTime != null "> and last_login_time = #{lastLoginTime}</if>
26 <if test="lastLoginIp != null and lastLoginIp != ''"> and last_login_ip = #{lastLoginIp}</if> 27 <if test="lastLoginIp != null and lastLoginIp != ''"> and last_login_ip = #{lastLoginIp}</if>
@@ -18,7 +18,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -18,7 +18,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
18 18
19 <select id="selectUserLoginList" parameterType="UserLogin" resultMap="UserLoginResult"> 19 <select id="selectUserLoginList" parameterType="UserLogin" resultMap="UserLoginResult">
20 <include refid="selectUserLoginVo"/> 20 <include refid="selectUserLoginVo"/>
21 - <where> 21 + <where>
  22 + <if test="id != null "> and id = #{id}</if>
22 <if test="userId != null "> and user_id = #{userId}</if> 23 <if test="userId != null "> and user_id = #{userId}</if>
23 <if test="loginName != null and loginName != ''"> and login_name like concat('%', #{loginName}, '%')</if> 24 <if test="loginName != null and loginName != ''"> and login_name like concat('%', #{loginName}, '%')</if>
24 <if test="loginPass != null and loginPass != ''"> and login_pass = #{loginPass}</if> 25 <if test="loginPass != null and loginPass != ''"> and login_pass = #{loginPass}</if>
@@ -20,7 +20,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -20,7 +20,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
20 20
21 <select id="selectUserOfficialInfoList" parameterType="UserOfficialInfo" resultMap="UserOfficialInfoResult"> 21 <select id="selectUserOfficialInfoList" parameterType="UserOfficialInfo" resultMap="UserOfficialInfoResult">
22 <include refid="selectUserOfficialInfoVo"/> 22 <include refid="selectUserOfficialInfoVo"/>
23 - <where> 23 + <where>
  24 + <if test="id != null "> and id = #{id}</if>
24 <if test="guarantee != null "> and guarantee = #{guarantee}</if> 25 <if test="guarantee != null "> and guarantee = #{guarantee}</if>
25 <if test="guaranteeDescribe != null and guaranteeDescribe != ''"> and guarantee_describe = #{guaranteeDescribe}</if> 26 <if test="guaranteeDescribe != null and guaranteeDescribe != ''"> and guarantee_describe = #{guaranteeDescribe}</if>
26 <if test="alarmAgreement != null "> and alarm_agreement = #{alarmAgreement}</if> 27 <if test="alarmAgreement != null "> and alarm_agreement = #{alarmAgreement}</if>
@@ -21,7 +21,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -21,7 +21,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
21 21
22 <select id="selectUserSocialInfoList" parameterType="UserSocialInfo" resultMap="UserSocialInfoResult"> 22 <select id="selectUserSocialInfoList" parameterType="UserSocialInfo" resultMap="UserSocialInfoResult">
23 <include refid="selectUserSocialInfoVo"/> 23 <include refid="selectUserSocialInfoVo"/>
24 - <where> 24 + <where>
  25 + <if test="id != null "> and id = #{id}</if>
25 <if test="qq != null and qq != ''"> and qq = #{qq}</if> 26 <if test="qq != null and qq != ''"> and qq = #{qq}</if>
26 <if test="weixin != null and weixin != ''"> and weixin = #{weixin}</if> 27 <if test="weixin != null and weixin != ''"> and weixin = #{weixin}</if>
27 <if test="openId != null "> and open_id = #{openId}</if> 28 <if test="openId != null "> and open_id = #{openId}</if>
@@ -22,6 +22,7 @@ import org.springframework.context.annotation.ComponentScan; @@ -22,6 +22,7 @@ import org.springframework.context.annotation.ComponentScan;
22 "com.zhonglai.luhui.rocketmq", 22 "com.zhonglai.luhui.rocketmq",
23 "com.zhonglai.luhui.firewall", 23 "com.zhonglai.luhui.firewall",
24 "com.zhonglai.luhui.admin", 24 "com.zhonglai.luhui.admin",
  25 + "com.zhonglai.luhui.user",
25 }) 26 })
26 @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) 27 @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
27 public class AdminApplication { 28 public class AdminApplication {
@@ -4,6 +4,8 @@ import java.util.List; @@ -4,6 +4,8 @@ import java.util.List;
4 import com.zhonglai.luhui.datasource.enums.DataSource; 4 import com.zhonglai.luhui.datasource.enums.DataSource;
5 import com.zhonglai.luhui.datasource.enums.DataSourceType; 5 import com.zhonglai.luhui.datasource.enums.DataSourceType;
6 import javax.servlet.http.HttpServletResponse; 6 import javax.servlet.http.HttpServletResponse;
  7 +
  8 +import com.zhonglai.luhui.user.service.IUserAccountInfoService;
7 import io.swagger.annotations.Api; 9 import io.swagger.annotations.Api;
8 import io.swagger.annotations.ApiOperation; 10 import io.swagger.annotations.ApiOperation;
9 import org.springframework.security.access.prepost.PreAuthorize; 11 import org.springframework.security.access.prepost.PreAuthorize;
@@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo; @@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
38 public class UserAccountInfoController extends BaseController 40 public class UserAccountInfoController extends BaseController
39 { 41 {
40 @Autowired 42 @Autowired
41 - private PublicTemplateService publicTemplateService; 43 + private IUserAccountInfoService publicTemplateService;
42 44
43 @ApiOperation(value ="查询用户账户信息列表",notes="\n" + 45 @ApiOperation(value ="查询用户账户信息列表",notes="\n" +
44 "公共参数描述:\n" + 46 "公共参数描述:\n" +
@@ -57,7 +59,7 @@ public class UserAccountInfoController extends BaseController @@ -57,7 +59,7 @@ public class UserAccountInfoController extends BaseController
57 public TableDataInfo list(UserAccountInfo userAccountInfo) 59 public TableDataInfo list(UserAccountInfo userAccountInfo)
58 { 60 {
59 startPage(); 61 startPage();
60 - List<UserAccountInfo> list = publicTemplateService.selectTList(userAccountInfo); 62 + List<UserAccountInfo> list = publicTemplateService.selectUserAccountInfoList(userAccountInfo);
61 return getDataTable(list); 63 return getDataTable(list);
62 } 64 }
63 65
@@ -68,7 +70,7 @@ public class UserAccountInfoController extends BaseController @@ -68,7 +70,7 @@ public class UserAccountInfoController extends BaseController
68 @PostMapping("/export") 70 @PostMapping("/export")
69 public void export(HttpServletResponse response, UserAccountInfo userAccountInfo) 71 public void export(HttpServletResponse response, UserAccountInfo userAccountInfo)
70 { 72 {
71 - List<UserAccountInfo> list = publicTemplateService.selectTList(userAccountInfo); 73 + List<UserAccountInfo> list = publicTemplateService.selectUserAccountInfoList(userAccountInfo);
72 ExcelUtil<UserAccountInfo> util = new ExcelUtil<UserAccountInfo>(UserAccountInfo.class); 74 ExcelUtil<UserAccountInfo> util = new ExcelUtil<UserAccountInfo>(UserAccountInfo.class);
73 util.exportExcel(response, list, "用户账户信息数据"); 75 util.exportExcel(response, list, "用户账户信息数据");
74 } 76 }
@@ -79,7 +81,7 @@ public class UserAccountInfoController extends BaseController @@ -79,7 +81,7 @@ public class UserAccountInfoController extends BaseController
79 @GetMapping(value = "/{id}") 81 @GetMapping(value = "/{id}")
80 public AjaxResult getInfo(@PathVariable("id") Integer id) 82 public AjaxResult getInfo(@PathVariable("id") Integer id)
81 { 83 {
82 - return success(publicTemplateService.getTById(id, UserAccountInfo.class)); 84 + return success(publicTemplateService.selectUserAccountInfoById(id));
83 } 85 }
84 86
85 @ApiOperation("新增用户账户信息") 87 @ApiOperation("新增用户账户信息")
@@ -89,7 +91,7 @@ public class UserAccountInfoController extends BaseController @@ -89,7 +91,7 @@ public class UserAccountInfoController extends BaseController
89 @PostMapping 91 @PostMapping
90 public AjaxResult add(@RequestBody UserAccountInfo userAccountInfo) 92 public AjaxResult add(@RequestBody UserAccountInfo userAccountInfo)
91 { 93 {
92 - return toAjax(publicTemplateService.add(userAccountInfo)); 94 + return toAjax(publicTemplateService.insertUserAccountInfo(userAccountInfo));
93 } 95 }
94 96
95 @ApiOperation("修改用户账户信息") 97 @ApiOperation("修改用户账户信息")
@@ -99,7 +101,7 @@ public class UserAccountInfoController extends BaseController @@ -99,7 +101,7 @@ public class UserAccountInfoController extends BaseController
99 @PutMapping 101 @PutMapping
100 public AjaxResult edit(@RequestBody UserAccountInfo userAccountInfo) 102 public AjaxResult edit(@RequestBody UserAccountInfo userAccountInfo)
101 { 103 {
102 - return toAjax(publicTemplateService.edit((userAccountInfo))); 104 + return toAjax(publicTemplateService.updateUserAccountInfo((userAccountInfo)));
103 } 105 }
104 106
105 @ApiOperation("删除用户账户信息") 107 @ApiOperation("删除用户账户信息")
@@ -109,6 +111,6 @@ public class UserAccountInfoController extends BaseController @@ -109,6 +111,6 @@ public class UserAccountInfoController extends BaseController
109 @DeleteMapping("/{ids}") 111 @DeleteMapping("/{ids}")
110 public AjaxResult remove(@PathVariable Integer[] ids) 112 public AjaxResult remove(@PathVariable Integer[] ids)
111 { 113 {
112 - return toAjax(publicTemplateService.removeByIds(UserAccountInfo.class,ids)); 114 + return toAjax(publicTemplateService.deleteUserAccountInfoByIds(ids));
113 } 115 }
114 } 116 }
@@ -4,6 +4,8 @@ import java.util.List; @@ -4,6 +4,8 @@ import java.util.List;
4 import com.zhonglai.luhui.datasource.enums.DataSource; 4 import com.zhonglai.luhui.datasource.enums.DataSource;
5 import com.zhonglai.luhui.datasource.enums.DataSourceType; 5 import com.zhonglai.luhui.datasource.enums.DataSourceType;
6 import javax.servlet.http.HttpServletResponse; 6 import javax.servlet.http.HttpServletResponse;
  7 +
  8 +import com.zhonglai.luhui.user.service.IUserAddressInfoService;
7 import io.swagger.annotations.Api; 9 import io.swagger.annotations.Api;
8 import io.swagger.annotations.ApiOperation; 10 import io.swagger.annotations.ApiOperation;
9 import org.springframework.security.access.prepost.PreAuthorize; 11 import org.springframework.security.access.prepost.PreAuthorize;
@@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo; @@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
38 public class UserAddressInfoController extends BaseController 40 public class UserAddressInfoController extends BaseController
39 { 41 {
40 @Autowired 42 @Autowired
41 - private PublicTemplateService publicTemplateService; 43 + private IUserAddressInfoService publicTemplateService;
42 44
43 @ApiOperation(value ="查询用户地理信息列表",notes="\n" + 45 @ApiOperation(value ="查询用户地理信息列表",notes="\n" +
44 "公共参数描述:\n" + 46 "公共参数描述:\n" +
@@ -57,7 +59,7 @@ public class UserAddressInfoController extends BaseController @@ -57,7 +59,7 @@ public class UserAddressInfoController extends BaseController
57 public TableDataInfo list(UserAddressInfo userAddressInfo) 59 public TableDataInfo list(UserAddressInfo userAddressInfo)
58 { 60 {
59 startPage(); 61 startPage();
60 - List<UserAddressInfo> list = publicTemplateService.selectTList(userAddressInfo); 62 + List<UserAddressInfo> list = publicTemplateService.selectUserAddressInfoList(userAddressInfo);
61 return getDataTable(list); 63 return getDataTable(list);
62 } 64 }
63 65
@@ -68,7 +70,7 @@ public class UserAddressInfoController extends BaseController @@ -68,7 +70,7 @@ public class UserAddressInfoController extends BaseController
68 @PostMapping("/export") 70 @PostMapping("/export")
69 public void export(HttpServletResponse response, UserAddressInfo userAddressInfo) 71 public void export(HttpServletResponse response, UserAddressInfo userAddressInfo)
70 { 72 {
71 - List<UserAddressInfo> list = publicTemplateService.selectTList(userAddressInfo); 73 + List<UserAddressInfo> list = publicTemplateService.selectUserAddressInfoList(userAddressInfo);
72 ExcelUtil<UserAddressInfo> util = new ExcelUtil<UserAddressInfo>(UserAddressInfo.class); 74 ExcelUtil<UserAddressInfo> util = new ExcelUtil<UserAddressInfo>(UserAddressInfo.class);
73 util.exportExcel(response, list, "用户地理信息数据"); 75 util.exportExcel(response, list, "用户地理信息数据");
74 } 76 }
@@ -79,7 +81,7 @@ public class UserAddressInfoController extends BaseController @@ -79,7 +81,7 @@ public class UserAddressInfoController extends BaseController
79 @GetMapping(value = "/{id}") 81 @GetMapping(value = "/{id}")
80 public AjaxResult getInfo(@PathVariable("id") Integer id) 82 public AjaxResult getInfo(@PathVariable("id") Integer id)
81 { 83 {
82 - return success(publicTemplateService.getTById(id, UserAddressInfo.class)); 84 + return success(publicTemplateService.selectUserAddressInfoById(id));
83 } 85 }
84 86
85 @ApiOperation("新增用户地理信息") 87 @ApiOperation("新增用户地理信息")
@@ -89,7 +91,7 @@ public class UserAddressInfoController extends BaseController @@ -89,7 +91,7 @@ public class UserAddressInfoController extends BaseController
89 @PostMapping 91 @PostMapping
90 public AjaxResult add(@RequestBody UserAddressInfo userAddressInfo) 92 public AjaxResult add(@RequestBody UserAddressInfo userAddressInfo)
91 { 93 {
92 - return toAjax(publicTemplateService.add(userAddressInfo)); 94 + return toAjax(publicTemplateService.insertUserAddressInfo(userAddressInfo));
93 } 95 }
94 96
95 @ApiOperation("修改用户地理信息") 97 @ApiOperation("修改用户地理信息")
@@ -99,7 +101,7 @@ public class UserAddressInfoController extends BaseController @@ -99,7 +101,7 @@ public class UserAddressInfoController extends BaseController
99 @PutMapping 101 @PutMapping
100 public AjaxResult edit(@RequestBody UserAddressInfo userAddressInfo) 102 public AjaxResult edit(@RequestBody UserAddressInfo userAddressInfo)
101 { 103 {
102 - return toAjax(publicTemplateService.edit((userAddressInfo))); 104 + return toAjax(publicTemplateService.updateUserAddressInfo((userAddressInfo)));
103 } 105 }
104 106
105 @ApiOperation("删除用户地理信息") 107 @ApiOperation("删除用户地理信息")
@@ -109,6 +111,6 @@ public class UserAddressInfoController extends BaseController @@ -109,6 +111,6 @@ public class UserAddressInfoController extends BaseController
109 @DeleteMapping("/{ids}") 111 @DeleteMapping("/{ids}")
110 public AjaxResult remove(@PathVariable Integer[] ids) 112 public AjaxResult remove(@PathVariable Integer[] ids)
111 { 113 {
112 - return toAjax(publicTemplateService.removeByIds(UserAddressInfo.class,ids)); 114 + return toAjax(publicTemplateService.deleteUserAddressInfoByIds(ids));
113 } 115 }
114 } 116 }
@@ -4,6 +4,8 @@ import java.util.List; @@ -4,6 +4,8 @@ import java.util.List;
4 import com.zhonglai.luhui.datasource.enums.DataSource; 4 import com.zhonglai.luhui.datasource.enums.DataSource;
5 import com.zhonglai.luhui.datasource.enums.DataSourceType; 5 import com.zhonglai.luhui.datasource.enums.DataSourceType;
6 import javax.servlet.http.HttpServletResponse; 6 import javax.servlet.http.HttpServletResponse;
  7 +
  8 +import com.zhonglai.luhui.user.service.IUserAuthInfoService;
7 import io.swagger.annotations.Api; 9 import io.swagger.annotations.Api;
8 import io.swagger.annotations.ApiOperation; 10 import io.swagger.annotations.ApiOperation;
9 import org.springframework.security.access.prepost.PreAuthorize; 11 import org.springframework.security.access.prepost.PreAuthorize;
@@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo; @@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
38 public class UserAuthInfoController extends BaseController 40 public class UserAuthInfoController extends BaseController
39 { 41 {
40 @Autowired 42 @Autowired
41 - private PublicTemplateService publicTemplateService; 43 + private IUserAuthInfoService publicTemplateService;
42 44
43 @ApiOperation(value ="查询用户认证信息列表",notes="\n" + 45 @ApiOperation(value ="查询用户认证信息列表",notes="\n" +
44 "公共参数描述:\n" + 46 "公共参数描述:\n" +
@@ -57,7 +59,7 @@ public class UserAuthInfoController extends BaseController @@ -57,7 +59,7 @@ public class UserAuthInfoController extends BaseController
57 public TableDataInfo list(UserAuthInfo userAuthInfo) 59 public TableDataInfo list(UserAuthInfo userAuthInfo)
58 { 60 {
59 startPage(); 61 startPage();
60 - List<UserAuthInfo> list = publicTemplateService.selectTList(userAuthInfo); 62 + List<UserAuthInfo> list = publicTemplateService.selectUserAuthInfoList(userAuthInfo);
61 return getDataTable(list); 63 return getDataTable(list);
62 } 64 }
63 65
@@ -68,7 +70,7 @@ public class UserAuthInfoController extends BaseController @@ -68,7 +70,7 @@ public class UserAuthInfoController extends BaseController
68 @PostMapping("/export") 70 @PostMapping("/export")
69 public void export(HttpServletResponse response, UserAuthInfo userAuthInfo) 71 public void export(HttpServletResponse response, UserAuthInfo userAuthInfo)
70 { 72 {
71 - List<UserAuthInfo> list = publicTemplateService.selectTList(userAuthInfo); 73 + List<UserAuthInfo> list = publicTemplateService.selectUserAuthInfoList(userAuthInfo);
72 ExcelUtil<UserAuthInfo> util = new ExcelUtil<UserAuthInfo>(UserAuthInfo.class); 74 ExcelUtil<UserAuthInfo> util = new ExcelUtil<UserAuthInfo>(UserAuthInfo.class);
73 util.exportExcel(response, list, "用户认证信息数据"); 75 util.exportExcel(response, list, "用户认证信息数据");
74 } 76 }
@@ -79,7 +81,7 @@ public class UserAuthInfoController extends BaseController @@ -79,7 +81,7 @@ public class UserAuthInfoController extends BaseController
79 @GetMapping(value = "/{id}") 81 @GetMapping(value = "/{id}")
80 public AjaxResult getInfo(@PathVariable("id") Integer id) 82 public AjaxResult getInfo(@PathVariable("id") Integer id)
81 { 83 {
82 - return success(publicTemplateService.getTById(id, UserAuthInfo.class)); 84 + return success(publicTemplateService.selectUserAuthInfoById(id));
83 } 85 }
84 86
85 @ApiOperation("新增用户认证信息") 87 @ApiOperation("新增用户认证信息")
@@ -89,7 +91,7 @@ public class UserAuthInfoController extends BaseController @@ -89,7 +91,7 @@ public class UserAuthInfoController extends BaseController
89 @PostMapping 91 @PostMapping
90 public AjaxResult add(@RequestBody UserAuthInfo userAuthInfo) 92 public AjaxResult add(@RequestBody UserAuthInfo userAuthInfo)
91 { 93 {
92 - return toAjax(publicTemplateService.add(userAuthInfo)); 94 + return toAjax(publicTemplateService.insertUserAuthInfo(userAuthInfo));
93 } 95 }
94 96
95 @ApiOperation("修改用户认证信息") 97 @ApiOperation("修改用户认证信息")
@@ -99,7 +101,7 @@ public class UserAuthInfoController extends BaseController @@ -99,7 +101,7 @@ public class UserAuthInfoController extends BaseController
99 @PutMapping 101 @PutMapping
100 public AjaxResult edit(@RequestBody UserAuthInfo userAuthInfo) 102 public AjaxResult edit(@RequestBody UserAuthInfo userAuthInfo)
101 { 103 {
102 - return toAjax(publicTemplateService.edit((userAuthInfo))); 104 + return toAjax(publicTemplateService.updateUserAuthInfo((userAuthInfo)));
103 } 105 }
104 106
105 @ApiOperation("删除用户认证信息") 107 @ApiOperation("删除用户认证信息")
@@ -109,6 +111,6 @@ public class UserAuthInfoController extends BaseController @@ -109,6 +111,6 @@ public class UserAuthInfoController extends BaseController
109 @DeleteMapping("/{ids}") 111 @DeleteMapping("/{ids}")
110 public AjaxResult remove(@PathVariable Integer[] ids) 112 public AjaxResult remove(@PathVariable Integer[] ids)
111 { 113 {
112 - return toAjax(publicTemplateService.removeByIds(UserAuthInfo.class,ids)); 114 + return toAjax(publicTemplateService.deleteUserAuthInfoByIds(ids));
113 } 115 }
114 } 116 }
@@ -4,6 +4,8 @@ import java.util.List; @@ -4,6 +4,8 @@ import java.util.List;
4 import com.zhonglai.luhui.datasource.enums.DataSource; 4 import com.zhonglai.luhui.datasource.enums.DataSource;
5 import com.zhonglai.luhui.datasource.enums.DataSourceType; 5 import com.zhonglai.luhui.datasource.enums.DataSourceType;
6 import javax.servlet.http.HttpServletResponse; 6 import javax.servlet.http.HttpServletResponse;
  7 +
  8 +import com.zhonglai.luhui.user.service.IUserBaseInfoService;
7 import io.swagger.annotations.Api; 9 import io.swagger.annotations.Api;
8 import io.swagger.annotations.ApiOperation; 10 import io.swagger.annotations.ApiOperation;
9 import org.springframework.security.access.prepost.PreAuthorize; 11 import org.springframework.security.access.prepost.PreAuthorize;
@@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo; @@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
38 public class UserBaseInfoController extends BaseController 40 public class UserBaseInfoController extends BaseController
39 { 41 {
40 @Autowired 42 @Autowired
41 - private PublicTemplateService publicTemplateService; 43 + private IUserBaseInfoService publicTemplateService;
42 44
43 @ApiOperation(value ="查询基础用户信息列表",notes="\n" + 45 @ApiOperation(value ="查询基础用户信息列表",notes="\n" +
44 "公共参数描述:\n" + 46 "公共参数描述:\n" +
@@ -57,7 +59,7 @@ public class UserBaseInfoController extends BaseController @@ -57,7 +59,7 @@ public class UserBaseInfoController extends BaseController
57 public TableDataInfo list(UserBaseInfo userBaseInfo) 59 public TableDataInfo list(UserBaseInfo userBaseInfo)
58 { 60 {
59 startPage(); 61 startPage();
60 - List<UserBaseInfo> list = publicTemplateService.selectTList(userBaseInfo); 62 + List<UserBaseInfo> list = publicTemplateService.selectUserBaseInfoList(userBaseInfo);
61 return getDataTable(list); 63 return getDataTable(list);
62 } 64 }
63 65
@@ -68,7 +70,7 @@ public class UserBaseInfoController extends BaseController @@ -68,7 +70,7 @@ public class UserBaseInfoController extends BaseController
68 @PostMapping("/export") 70 @PostMapping("/export")
69 public void export(HttpServletResponse response, UserBaseInfo userBaseInfo) 71 public void export(HttpServletResponse response, UserBaseInfo userBaseInfo)
70 { 72 {
71 - List<UserBaseInfo> list = publicTemplateService.selectTList(userBaseInfo); 73 + List<UserBaseInfo> list = publicTemplateService.selectUserBaseInfoList(userBaseInfo);
72 ExcelUtil<UserBaseInfo> util = new ExcelUtil<UserBaseInfo>(UserBaseInfo.class); 74 ExcelUtil<UserBaseInfo> util = new ExcelUtil<UserBaseInfo>(UserBaseInfo.class);
73 util.exportExcel(response, list, "基础用户信息数据"); 75 util.exportExcel(response, list, "基础用户信息数据");
74 } 76 }
@@ -79,7 +81,7 @@ public class UserBaseInfoController extends BaseController @@ -79,7 +81,7 @@ public class UserBaseInfoController extends BaseController
79 @GetMapping(value = "/{id}") 81 @GetMapping(value = "/{id}")
80 public AjaxResult getInfo(@PathVariable("id") Integer id) 82 public AjaxResult getInfo(@PathVariable("id") Integer id)
81 { 83 {
82 - return success(publicTemplateService.getTById(id, UserBaseInfo.class)); 84 + return success(publicTemplateService.selectUserBaseInfoById(id));
83 } 85 }
84 86
85 @ApiOperation("新增基础用户信息") 87 @ApiOperation("新增基础用户信息")
@@ -89,7 +91,7 @@ public class UserBaseInfoController extends BaseController @@ -89,7 +91,7 @@ public class UserBaseInfoController extends BaseController
89 @PostMapping 91 @PostMapping
90 public AjaxResult add(@RequestBody UserBaseInfo userBaseInfo) 92 public AjaxResult add(@RequestBody UserBaseInfo userBaseInfo)
91 { 93 {
92 - return toAjax(publicTemplateService.add(userBaseInfo)); 94 + return toAjax(publicTemplateService.insertUserBaseInfo(userBaseInfo));
93 } 95 }
94 96
95 @ApiOperation("修改基础用户信息") 97 @ApiOperation("修改基础用户信息")
@@ -99,7 +101,7 @@ public class UserBaseInfoController extends BaseController @@ -99,7 +101,7 @@ public class UserBaseInfoController extends BaseController
99 @PutMapping 101 @PutMapping
100 public AjaxResult edit(@RequestBody UserBaseInfo userBaseInfo) 102 public AjaxResult edit(@RequestBody UserBaseInfo userBaseInfo)
101 { 103 {
102 - return toAjax(publicTemplateService.edit((userBaseInfo))); 104 + return toAjax(publicTemplateService.updateUserBaseInfo((userBaseInfo)));
103 } 105 }
104 106
105 @ApiOperation("删除基础用户信息") 107 @ApiOperation("删除基础用户信息")
@@ -109,6 +111,6 @@ public class UserBaseInfoController extends BaseController @@ -109,6 +111,6 @@ public class UserBaseInfoController extends BaseController
109 @DeleteMapping("/{ids}") 111 @DeleteMapping("/{ids}")
110 public AjaxResult remove(@PathVariable Integer[] ids) 112 public AjaxResult remove(@PathVariable Integer[] ids)
111 { 113 {
112 - return toAjax(publicTemplateService.removeByIds(UserBaseInfo.class,ids)); 114 + return toAjax(publicTemplateService.deleteUserBaseInfoByIds(ids));
113 } 115 }
114 } 116 }
@@ -4,6 +4,8 @@ import java.util.List; @@ -4,6 +4,8 @@ import java.util.List;
4 import com.zhonglai.luhui.datasource.enums.DataSource; 4 import com.zhonglai.luhui.datasource.enums.DataSource;
5 import com.zhonglai.luhui.datasource.enums.DataSourceType; 5 import com.zhonglai.luhui.datasource.enums.DataSourceType;
6 import javax.servlet.http.HttpServletResponse; 6 import javax.servlet.http.HttpServletResponse;
  7 +
  8 +import com.zhonglai.luhui.user.service.IUserExtraInfoService;
7 import io.swagger.annotations.Api; 9 import io.swagger.annotations.Api;
8 import io.swagger.annotations.ApiOperation; 10 import io.swagger.annotations.ApiOperation;
9 import org.springframework.security.access.prepost.PreAuthorize; 11 import org.springframework.security.access.prepost.PreAuthorize;
@@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo; @@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
38 public class UserExtraInfoController extends BaseController 40 public class UserExtraInfoController extends BaseController
39 { 41 {
40 @Autowired 42 @Autowired
41 - private PublicTemplateService publicTemplateService; 43 + private IUserExtraInfoService publicTemplateService;
42 44
43 @ApiOperation(value ="查询用户其他信息列表",notes="\n" + 45 @ApiOperation(value ="查询用户其他信息列表",notes="\n" +
44 "公共参数描述:\n" + 46 "公共参数描述:\n" +
@@ -57,7 +59,7 @@ public class UserExtraInfoController extends BaseController @@ -57,7 +59,7 @@ public class UserExtraInfoController extends BaseController
57 public TableDataInfo list(UserExtraInfo userExtraInfo) 59 public TableDataInfo list(UserExtraInfo userExtraInfo)
58 { 60 {
59 startPage(); 61 startPage();
60 - List<UserExtraInfo> list = publicTemplateService.selectTList(userExtraInfo); 62 + List<UserExtraInfo> list = publicTemplateService.selectUserExtraInfoList(userExtraInfo);
61 return getDataTable(list); 63 return getDataTable(list);
62 } 64 }
63 65
@@ -68,7 +70,7 @@ public class UserExtraInfoController extends BaseController @@ -68,7 +70,7 @@ public class UserExtraInfoController extends BaseController
68 @PostMapping("/export") 70 @PostMapping("/export")
69 public void export(HttpServletResponse response, UserExtraInfo userExtraInfo) 71 public void export(HttpServletResponse response, UserExtraInfo userExtraInfo)
70 { 72 {
71 - List<UserExtraInfo> list = publicTemplateService.selectTList(userExtraInfo); 73 + List<UserExtraInfo> list = publicTemplateService.selectUserExtraInfoList(userExtraInfo);
72 ExcelUtil<UserExtraInfo> util = new ExcelUtil<UserExtraInfo>(UserExtraInfo.class); 74 ExcelUtil<UserExtraInfo> util = new ExcelUtil<UserExtraInfo>(UserExtraInfo.class);
73 util.exportExcel(response, list, "用户其他信息数据"); 75 util.exportExcel(response, list, "用户其他信息数据");
74 } 76 }
@@ -79,7 +81,7 @@ public class UserExtraInfoController extends BaseController @@ -79,7 +81,7 @@ public class UserExtraInfoController extends BaseController
79 @GetMapping(value = "/{id}") 81 @GetMapping(value = "/{id}")
80 public AjaxResult getInfo(@PathVariable("id") Integer id) 82 public AjaxResult getInfo(@PathVariable("id") Integer id)
81 { 83 {
82 - return success(publicTemplateService.getTById(id, UserExtraInfo.class)); 84 + return success(publicTemplateService.selectUserExtraInfoById(id));
83 } 85 }
84 86
85 @ApiOperation("新增用户其他信息") 87 @ApiOperation("新增用户其他信息")
@@ -89,7 +91,7 @@ public class UserExtraInfoController extends BaseController @@ -89,7 +91,7 @@ public class UserExtraInfoController extends BaseController
89 @PostMapping 91 @PostMapping
90 public AjaxResult add(@RequestBody UserExtraInfo userExtraInfo) 92 public AjaxResult add(@RequestBody UserExtraInfo userExtraInfo)
91 { 93 {
92 - return toAjax(publicTemplateService.add(userExtraInfo)); 94 + return toAjax(publicTemplateService.insertUserExtraInfo(userExtraInfo));
93 } 95 }
94 96
95 @ApiOperation("修改用户其他信息") 97 @ApiOperation("修改用户其他信息")
@@ -99,7 +101,7 @@ public class UserExtraInfoController extends BaseController @@ -99,7 +101,7 @@ public class UserExtraInfoController extends BaseController
99 @PutMapping 101 @PutMapping
100 public AjaxResult edit(@RequestBody UserExtraInfo userExtraInfo) 102 public AjaxResult edit(@RequestBody UserExtraInfo userExtraInfo)
101 { 103 {
102 - return toAjax(publicTemplateService.edit((userExtraInfo))); 104 + return toAjax(publicTemplateService.updateUserExtraInfo((userExtraInfo)));
103 } 105 }
104 106
105 @ApiOperation("删除用户其他信息") 107 @ApiOperation("删除用户其他信息")
@@ -109,6 +111,6 @@ public class UserExtraInfoController extends BaseController @@ -109,6 +111,6 @@ public class UserExtraInfoController extends BaseController
109 @DeleteMapping("/{ids}") 111 @DeleteMapping("/{ids}")
110 public AjaxResult remove(@PathVariable Integer[] ids) 112 public AjaxResult remove(@PathVariable Integer[] ids)
111 { 113 {
112 - return toAjax(publicTemplateService.removeByIds(UserExtraInfo.class,ids)); 114 + return toAjax(publicTemplateService.deleteUserExtraInfoByIds(ids));
113 } 115 }
114 } 116 }
@@ -4,6 +4,8 @@ import java.util.List; @@ -4,6 +4,8 @@ import java.util.List;
4 import com.zhonglai.luhui.datasource.enums.DataSource; 4 import com.zhonglai.luhui.datasource.enums.DataSource;
5 import com.zhonglai.luhui.datasource.enums.DataSourceType; 5 import com.zhonglai.luhui.datasource.enums.DataSourceType;
6 import javax.servlet.http.HttpServletResponse; 6 import javax.servlet.http.HttpServletResponse;
  7 +
  8 +import com.zhonglai.luhui.user.service.IUserLoginService;
7 import io.swagger.annotations.Api; 9 import io.swagger.annotations.Api;
8 import io.swagger.annotations.ApiOperation; 10 import io.swagger.annotations.ApiOperation;
9 import org.springframework.security.access.prepost.PreAuthorize; 11 import org.springframework.security.access.prepost.PreAuthorize;
@@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo; @@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
38 public class UserLoginController extends BaseController 40 public class UserLoginController extends BaseController
39 { 41 {
40 @Autowired 42 @Autowired
41 - private PublicTemplateService publicTemplateService; 43 + private IUserLoginService publicTemplateService;
42 44
43 @ApiOperation(value ="查询用户登录列表",notes="\n" + 45 @ApiOperation(value ="查询用户登录列表",notes="\n" +
44 "公共参数描述:\n" + 46 "公共参数描述:\n" +
@@ -57,7 +59,7 @@ public class UserLoginController extends BaseController @@ -57,7 +59,7 @@ public class UserLoginController extends BaseController
57 public TableDataInfo list(UserLogin userLogin) 59 public TableDataInfo list(UserLogin userLogin)
58 { 60 {
59 startPage(); 61 startPage();
60 - List<UserLogin> list = publicTemplateService.selectTList(userLogin); 62 + List<UserLogin> list = publicTemplateService.selectUserLoginList(userLogin);
61 return getDataTable(list); 63 return getDataTable(list);
62 } 64 }
63 65
@@ -68,7 +70,7 @@ public class UserLoginController extends BaseController @@ -68,7 +70,7 @@ public class UserLoginController extends BaseController
68 @PostMapping("/export") 70 @PostMapping("/export")
69 public void export(HttpServletResponse response, UserLogin userLogin) 71 public void export(HttpServletResponse response, UserLogin userLogin)
70 { 72 {
71 - List<UserLogin> list = publicTemplateService.selectTList(userLogin); 73 + List<UserLogin> list = publicTemplateService.selectUserLoginList(userLogin);
72 ExcelUtil<UserLogin> util = new ExcelUtil<UserLogin>(UserLogin.class); 74 ExcelUtil<UserLogin> util = new ExcelUtil<UserLogin>(UserLogin.class);
73 util.exportExcel(response, list, "用户登录数据"); 75 util.exportExcel(response, list, "用户登录数据");
74 } 76 }
@@ -79,7 +81,7 @@ public class UserLoginController extends BaseController @@ -79,7 +81,7 @@ public class UserLoginController extends BaseController
79 @GetMapping(value = "/{id}") 81 @GetMapping(value = "/{id}")
80 public AjaxResult getInfo(@PathVariable("id") Integer id) 82 public AjaxResult getInfo(@PathVariable("id") Integer id)
81 { 83 {
82 - return success(publicTemplateService.getTById(id, UserLogin.class)); 84 + return success(publicTemplateService.selectUserLoginById(id));
83 } 85 }
84 86
85 @ApiOperation("新增用户登录") 87 @ApiOperation("新增用户登录")
@@ -89,7 +91,7 @@ public class UserLoginController extends BaseController @@ -89,7 +91,7 @@ public class UserLoginController extends BaseController
89 @PostMapping 91 @PostMapping
90 public AjaxResult add(@RequestBody UserLogin userLogin) 92 public AjaxResult add(@RequestBody UserLogin userLogin)
91 { 93 {
92 - return toAjax(publicTemplateService.add(userLogin)); 94 + return toAjax(publicTemplateService.insertUserLogin(userLogin));
93 } 95 }
94 96
95 @ApiOperation("修改用户登录") 97 @ApiOperation("修改用户登录")
@@ -99,7 +101,7 @@ public class UserLoginController extends BaseController @@ -99,7 +101,7 @@ public class UserLoginController extends BaseController
99 @PutMapping 101 @PutMapping
100 public AjaxResult edit(@RequestBody UserLogin userLogin) 102 public AjaxResult edit(@RequestBody UserLogin userLogin)
101 { 103 {
102 - return toAjax(publicTemplateService.edit((userLogin))); 104 + return toAjax(publicTemplateService.updateUserLogin((userLogin)));
103 } 105 }
104 106
105 @ApiOperation("删除用户登录") 107 @ApiOperation("删除用户登录")
@@ -109,6 +111,6 @@ public class UserLoginController extends BaseController @@ -109,6 +111,6 @@ public class UserLoginController extends BaseController
109 @DeleteMapping("/{ids}") 111 @DeleteMapping("/{ids}")
110 public AjaxResult remove(@PathVariable Integer[] ids) 112 public AjaxResult remove(@PathVariable Integer[] ids)
111 { 113 {
112 - return toAjax(publicTemplateService.removeByIds(UserLogin.class,ids)); 114 + return toAjax(publicTemplateService.deleteUserLoginByIds(ids));
113 } 115 }
114 } 116 }
@@ -4,6 +4,8 @@ import java.util.List; @@ -4,6 +4,8 @@ import java.util.List;
4 import com.zhonglai.luhui.datasource.enums.DataSource; 4 import com.zhonglai.luhui.datasource.enums.DataSource;
5 import com.zhonglai.luhui.datasource.enums.DataSourceType; 5 import com.zhonglai.luhui.datasource.enums.DataSourceType;
6 import javax.servlet.http.HttpServletResponse; 6 import javax.servlet.http.HttpServletResponse;
  7 +
  8 +import com.zhonglai.luhui.user.service.IUserLoginInfoService;
7 import io.swagger.annotations.Api; 9 import io.swagger.annotations.Api;
8 import io.swagger.annotations.ApiOperation; 10 import io.swagger.annotations.ApiOperation;
9 import org.springframework.security.access.prepost.PreAuthorize; 11 import org.springframework.security.access.prepost.PreAuthorize;
@@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo; @@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
38 public class UserLoginInfoController extends BaseController 40 public class UserLoginInfoController extends BaseController
39 { 41 {
40 @Autowired 42 @Autowired
41 - private PublicTemplateService publicTemplateService; 43 + private IUserLoginInfoService publicTemplateService;
42 44
43 @ApiOperation(value ="查询用户登录信息列表",notes="\n" + 45 @ApiOperation(value ="查询用户登录信息列表",notes="\n" +
44 "公共参数描述:\n" + 46 "公共参数描述:\n" +
@@ -57,7 +59,7 @@ public class UserLoginInfoController extends BaseController @@ -57,7 +59,7 @@ public class UserLoginInfoController extends BaseController
57 public TableDataInfo list(UserLoginInfo userLoginInfo) 59 public TableDataInfo list(UserLoginInfo userLoginInfo)
58 { 60 {
59 startPage(); 61 startPage();
60 - List<UserLoginInfo> list = publicTemplateService.selectTList(userLoginInfo); 62 + List<UserLoginInfo> list = publicTemplateService.selectUserLoginInfoList(userLoginInfo);
61 return getDataTable(list); 63 return getDataTable(list);
62 } 64 }
63 65
@@ -68,7 +70,7 @@ public class UserLoginInfoController extends BaseController @@ -68,7 +70,7 @@ public class UserLoginInfoController extends BaseController
68 @PostMapping("/export") 70 @PostMapping("/export")
69 public void export(HttpServletResponse response, UserLoginInfo userLoginInfo) 71 public void export(HttpServletResponse response, UserLoginInfo userLoginInfo)
70 { 72 {
71 - List<UserLoginInfo> list = publicTemplateService.selectTList(userLoginInfo); 73 + List<UserLoginInfo> list = publicTemplateService.selectUserLoginInfoList(userLoginInfo);
72 ExcelUtil<UserLoginInfo> util = new ExcelUtil<UserLoginInfo>(UserLoginInfo.class); 74 ExcelUtil<UserLoginInfo> util = new ExcelUtil<UserLoginInfo>(UserLoginInfo.class);
73 util.exportExcel(response, list, "用户登录信息数据"); 75 util.exportExcel(response, list, "用户登录信息数据");
74 } 76 }
@@ -79,7 +81,7 @@ public class UserLoginInfoController extends BaseController @@ -79,7 +81,7 @@ public class UserLoginInfoController extends BaseController
79 @GetMapping(value = "/{id}") 81 @GetMapping(value = "/{id}")
80 public AjaxResult getInfo(@PathVariable("id") Integer id) 82 public AjaxResult getInfo(@PathVariable("id") Integer id)
81 { 83 {
82 - return success(publicTemplateService.getTById(id, UserLoginInfo.class)); 84 + return success(publicTemplateService.selectUserLoginInfoById(id));
83 } 85 }
84 86
85 @ApiOperation("新增用户登录信息") 87 @ApiOperation("新增用户登录信息")
@@ -89,7 +91,7 @@ public class UserLoginInfoController extends BaseController @@ -89,7 +91,7 @@ public class UserLoginInfoController extends BaseController
89 @PostMapping 91 @PostMapping
90 public AjaxResult add(@RequestBody UserLoginInfo userLoginInfo) 92 public AjaxResult add(@RequestBody UserLoginInfo userLoginInfo)
91 { 93 {
92 - return toAjax(publicTemplateService.add(userLoginInfo)); 94 + return toAjax(publicTemplateService.insertUserLoginInfo(userLoginInfo));
93 } 95 }
94 96
95 @ApiOperation("修改用户登录信息") 97 @ApiOperation("修改用户登录信息")
@@ -99,7 +101,7 @@ public class UserLoginInfoController extends BaseController @@ -99,7 +101,7 @@ public class UserLoginInfoController extends BaseController
99 @PutMapping 101 @PutMapping
100 public AjaxResult edit(@RequestBody UserLoginInfo userLoginInfo) 102 public AjaxResult edit(@RequestBody UserLoginInfo userLoginInfo)
101 { 103 {
102 - return toAjax(publicTemplateService.edit((userLoginInfo))); 104 + return toAjax(publicTemplateService.updateUserLoginInfo((userLoginInfo)));
103 } 105 }
104 106
105 @ApiOperation("删除用户登录信息") 107 @ApiOperation("删除用户登录信息")
@@ -109,6 +111,6 @@ public class UserLoginInfoController extends BaseController @@ -109,6 +111,6 @@ public class UserLoginInfoController extends BaseController
109 @DeleteMapping("/{ids}") 111 @DeleteMapping("/{ids}")
110 public AjaxResult remove(@PathVariable Integer[] ids) 112 public AjaxResult remove(@PathVariable Integer[] ids)
111 { 113 {
112 - return toAjax(publicTemplateService.removeByIds(UserLoginInfo.class,ids)); 114 + return toAjax(publicTemplateService.deleteUserLoginInfoByIds(ids));
113 } 115 }
114 } 116 }
@@ -4,6 +4,8 @@ import java.util.List; @@ -4,6 +4,8 @@ import java.util.List;
4 import com.zhonglai.luhui.datasource.enums.DataSource; 4 import com.zhonglai.luhui.datasource.enums.DataSource;
5 import com.zhonglai.luhui.datasource.enums.DataSourceType; 5 import com.zhonglai.luhui.datasource.enums.DataSourceType;
6 import javax.servlet.http.HttpServletResponse; 6 import javax.servlet.http.HttpServletResponse;
  7 +
  8 +import com.zhonglai.luhui.user.service.IUserOfficialInfoService;
7 import io.swagger.annotations.Api; 9 import io.swagger.annotations.Api;
8 import io.swagger.annotations.ApiOperation; 10 import io.swagger.annotations.ApiOperation;
9 import org.springframework.security.access.prepost.PreAuthorize; 11 import org.springframework.security.access.prepost.PreAuthorize;
@@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo; @@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
38 public class UserOfficialInfoController extends BaseController 40 public class UserOfficialInfoController extends BaseController
39 { 41 {
40 @Autowired 42 @Autowired
41 - private PublicTemplateService publicTemplateService; 43 + private IUserOfficialInfoService publicTemplateService;
42 44
43 @ApiOperation(value ="查询用户官方及告警信息列表",notes="\n" + 45 @ApiOperation(value ="查询用户官方及告警信息列表",notes="\n" +
44 "公共参数描述:\n" + 46 "公共参数描述:\n" +
@@ -57,7 +59,7 @@ public class UserOfficialInfoController extends BaseController @@ -57,7 +59,7 @@ public class UserOfficialInfoController extends BaseController
57 public TableDataInfo list(UserOfficialInfo userOfficialInfo) 59 public TableDataInfo list(UserOfficialInfo userOfficialInfo)
58 { 60 {
59 startPage(); 61 startPage();
60 - List<UserOfficialInfo> list = publicTemplateService.selectTList(userOfficialInfo); 62 + List<UserOfficialInfo> list = publicTemplateService.selectUserOfficialInfoList(userOfficialInfo);
61 return getDataTable(list); 63 return getDataTable(list);
62 } 64 }
63 65
@@ -68,7 +70,7 @@ public class UserOfficialInfoController extends BaseController @@ -68,7 +70,7 @@ public class UserOfficialInfoController extends BaseController
68 @PostMapping("/export") 70 @PostMapping("/export")
69 public void export(HttpServletResponse response, UserOfficialInfo userOfficialInfo) 71 public void export(HttpServletResponse response, UserOfficialInfo userOfficialInfo)
70 { 72 {
71 - List<UserOfficialInfo> list = publicTemplateService.selectTList(userOfficialInfo); 73 + List<UserOfficialInfo> list = publicTemplateService.selectUserOfficialInfoList(userOfficialInfo);
72 ExcelUtil<UserOfficialInfo> util = new ExcelUtil<UserOfficialInfo>(UserOfficialInfo.class); 74 ExcelUtil<UserOfficialInfo> util = new ExcelUtil<UserOfficialInfo>(UserOfficialInfo.class);
73 util.exportExcel(response, list, "用户官方及告警信息数据"); 75 util.exportExcel(response, list, "用户官方及告警信息数据");
74 } 76 }
@@ -79,7 +81,7 @@ public class UserOfficialInfoController extends BaseController @@ -79,7 +81,7 @@ public class UserOfficialInfoController extends BaseController
79 @GetMapping(value = "/{id}") 81 @GetMapping(value = "/{id}")
80 public AjaxResult getInfo(@PathVariable("id") Integer id) 82 public AjaxResult getInfo(@PathVariable("id") Integer id)
81 { 83 {
82 - return success(publicTemplateService.getTById(id, UserOfficialInfo.class)); 84 + return success(publicTemplateService.selectUserOfficialInfoById(id));
83 } 85 }
84 86
85 @ApiOperation("新增用户官方及告警信息") 87 @ApiOperation("新增用户官方及告警信息")
@@ -89,7 +91,7 @@ public class UserOfficialInfoController extends BaseController @@ -89,7 +91,7 @@ public class UserOfficialInfoController extends BaseController
89 @PostMapping 91 @PostMapping
90 public AjaxResult add(@RequestBody UserOfficialInfo userOfficialInfo) 92 public AjaxResult add(@RequestBody UserOfficialInfo userOfficialInfo)
91 { 93 {
92 - return toAjax(publicTemplateService.add(userOfficialInfo)); 94 + return toAjax(publicTemplateService.insertUserOfficialInfo(userOfficialInfo));
93 } 95 }
94 96
95 @ApiOperation("修改用户官方及告警信息") 97 @ApiOperation("修改用户官方及告警信息")
@@ -99,7 +101,7 @@ public class UserOfficialInfoController extends BaseController @@ -99,7 +101,7 @@ public class UserOfficialInfoController extends BaseController
99 @PutMapping 101 @PutMapping
100 public AjaxResult edit(@RequestBody UserOfficialInfo userOfficialInfo) 102 public AjaxResult edit(@RequestBody UserOfficialInfo userOfficialInfo)
101 { 103 {
102 - return toAjax(publicTemplateService.edit((userOfficialInfo))); 104 + return toAjax(publicTemplateService.updateUserOfficialInfo((userOfficialInfo)));
103 } 105 }
104 106
105 @ApiOperation("删除用户官方及告警信息") 107 @ApiOperation("删除用户官方及告警信息")
@@ -109,6 +111,6 @@ public class UserOfficialInfoController extends BaseController @@ -109,6 +111,6 @@ public class UserOfficialInfoController extends BaseController
109 @DeleteMapping("/{ids}") 111 @DeleteMapping("/{ids}")
110 public AjaxResult remove(@PathVariable Integer[] ids) 112 public AjaxResult remove(@PathVariable Integer[] ids)
111 { 113 {
112 - return toAjax(publicTemplateService.removeByIds(UserOfficialInfo.class,ids)); 114 + return toAjax(publicTemplateService.deleteUserOfficialInfoByIds(ids));
113 } 115 }
114 } 116 }
@@ -4,6 +4,8 @@ import java.util.List; @@ -4,6 +4,8 @@ import java.util.List;
4 import com.zhonglai.luhui.datasource.enums.DataSource; 4 import com.zhonglai.luhui.datasource.enums.DataSource;
5 import com.zhonglai.luhui.datasource.enums.DataSourceType; 5 import com.zhonglai.luhui.datasource.enums.DataSourceType;
6 import javax.servlet.http.HttpServletResponse; 6 import javax.servlet.http.HttpServletResponse;
  7 +
  8 +import com.zhonglai.luhui.user.service.IUserSocialInfoService;
7 import io.swagger.annotations.Api; 9 import io.swagger.annotations.Api;
8 import io.swagger.annotations.ApiOperation; 10 import io.swagger.annotations.ApiOperation;
9 import org.springframework.security.access.prepost.PreAuthorize; 11 import org.springframework.security.access.prepost.PreAuthorize;
@@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo; @@ -38,7 +40,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
38 public class UserSocialInfoController extends BaseController 40 public class UserSocialInfoController extends BaseController
39 { 41 {
40 @Autowired 42 @Autowired
41 - private PublicTemplateService publicTemplateService; 43 + private IUserSocialInfoService publicTemplateService;
42 44
43 @ApiOperation(value ="查询用户社交信息列表",notes="\n" + 45 @ApiOperation(value ="查询用户社交信息列表",notes="\n" +
44 "公共参数描述:\n" + 46 "公共参数描述:\n" +
@@ -57,7 +59,7 @@ public class UserSocialInfoController extends BaseController @@ -57,7 +59,7 @@ public class UserSocialInfoController extends BaseController
57 public TableDataInfo list(UserSocialInfo userSocialInfo) 59 public TableDataInfo list(UserSocialInfo userSocialInfo)
58 { 60 {
59 startPage(); 61 startPage();
60 - List<UserSocialInfo> list = publicTemplateService.selectTList(userSocialInfo); 62 + List<UserSocialInfo> list = publicTemplateService.selectUserSocialInfoList(userSocialInfo);
61 return getDataTable(list); 63 return getDataTable(list);
62 } 64 }
63 65
@@ -68,7 +70,7 @@ public class UserSocialInfoController extends BaseController @@ -68,7 +70,7 @@ public class UserSocialInfoController extends BaseController
68 @PostMapping("/export") 70 @PostMapping("/export")
69 public void export(HttpServletResponse response, UserSocialInfo userSocialInfo) 71 public void export(HttpServletResponse response, UserSocialInfo userSocialInfo)
70 { 72 {
71 - List<UserSocialInfo> list = publicTemplateService.selectTList(userSocialInfo); 73 + List<UserSocialInfo> list = publicTemplateService.selectUserSocialInfoList(userSocialInfo);
72 ExcelUtil<UserSocialInfo> util = new ExcelUtil<UserSocialInfo>(UserSocialInfo.class); 74 ExcelUtil<UserSocialInfo> util = new ExcelUtil<UserSocialInfo>(UserSocialInfo.class);
73 util.exportExcel(response, list, "用户社交信息数据"); 75 util.exportExcel(response, list, "用户社交信息数据");
74 } 76 }
@@ -79,7 +81,7 @@ public class UserSocialInfoController extends BaseController @@ -79,7 +81,7 @@ public class UserSocialInfoController extends BaseController
79 @GetMapping(value = "/{id}") 81 @GetMapping(value = "/{id}")
80 public AjaxResult getInfo(@PathVariable("id") Integer id) 82 public AjaxResult getInfo(@PathVariable("id") Integer id)
81 { 83 {
82 - return success(publicTemplateService.getTById(id, UserSocialInfo.class)); 84 + return success(publicTemplateService.selectUserSocialInfoById(id));
83 } 85 }
84 86
85 @ApiOperation("新增用户社交信息") 87 @ApiOperation("新增用户社交信息")
@@ -89,7 +91,7 @@ public class UserSocialInfoController extends BaseController @@ -89,7 +91,7 @@ public class UserSocialInfoController extends BaseController
89 @PostMapping 91 @PostMapping
90 public AjaxResult add(@RequestBody UserSocialInfo userSocialInfo) 92 public AjaxResult add(@RequestBody UserSocialInfo userSocialInfo)
91 { 93 {
92 - return toAjax(publicTemplateService.add(userSocialInfo)); 94 + return toAjax(publicTemplateService.insertUserSocialInfo(userSocialInfo));
93 } 95 }
94 96
95 @ApiOperation("修改用户社交信息") 97 @ApiOperation("修改用户社交信息")
@@ -99,7 +101,7 @@ public class UserSocialInfoController extends BaseController @@ -99,7 +101,7 @@ public class UserSocialInfoController extends BaseController
99 @PutMapping 101 @PutMapping
100 public AjaxResult edit(@RequestBody UserSocialInfo userSocialInfo) 102 public AjaxResult edit(@RequestBody UserSocialInfo userSocialInfo)
101 { 103 {
102 - return toAjax(publicTemplateService.edit((userSocialInfo))); 104 + return toAjax(publicTemplateService.updateUserSocialInfo((userSocialInfo)));
103 } 105 }
104 106
105 @ApiOperation("删除用户社交信息") 107 @ApiOperation("删除用户社交信息")
@@ -109,6 +111,6 @@ public class UserSocialInfoController extends BaseController @@ -109,6 +111,6 @@ public class UserSocialInfoController extends BaseController
109 @DeleteMapping("/{ids}") 111 @DeleteMapping("/{ids}")
110 public AjaxResult remove(@PathVariable Integer[] ids) 112 public AjaxResult remove(@PathVariable Integer[] ids)
111 { 113 {
112 - return toAjax(publicTemplateService.removeByIds(UserSocialInfo.class,ids)); 114 + return toAjax(publicTemplateService.deleteUserSocialInfoByIds(ids));
113 } 115 }
114 } 116 }
@@ -12,10 +12,10 @@ spring: @@ -12,10 +12,10 @@ spring:
12 # 从库数据源 12 # 从库数据源
13 slave: 13 slave:
14 # 从数据源开关/默认关闭 14 # 从数据源开关/默认关闭
15 - enabled: false  
16 - url:  
17 - username:  
18 - password: 15 + enabled: true
  16 + url: jdbc:mysql://rm-wz9740un21f09iokuao.mysql.rds.aliyuncs.com:3306/ly_user?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  17 + username: luhui
  18 + password: Luhui586
19 # 初始连接数 19 # 初始连接数
20 initialSize: 5 20 initialSize: 5
21 # 最小连接池数量 21 # 最小连接池数量
@@ -26,7 +26,7 @@ spring: @@ -26,7 +26,7 @@ spring:
26 maxWait: 60000 26 maxWait: 60000
27 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 27 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
28 timeBetweenEvictionRunsMillis: 60000 28 timeBetweenEvictionRunsMillis: 60000
29 - # 配置一个连接在池中最小生存的时间,单位是毫秒 29 + # 配置一个连接在池中最小 生存的时间,单位是毫秒
30 minEvictableIdleTimeMillis: 300000 30 minEvictableIdleTimeMillis: 300000
31 # 配置一个连接在池中最大生存的时间,单位是毫秒 31 # 配置一个连接在池中最大生存的时间,单位是毫秒
32 maxEvictableIdleTimeMillis: 900000 32 maxEvictableIdleTimeMillis: 900000