Commit e0011ba5 authored by liaoanyuan's avatar liaoanyuan

客户端登录功能实现

parent 5c0d4ab4
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId> <artifactId>druid-spring-boot-starter</artifactId>
<version>1.2.1</version> <version>1.1.22</version>
</dependency> </dependency>
<!-- Redis --> <!-- Redis -->
<dependency> <dependency>
......
...@@ -11,6 +11,6 @@ public interface AccountMapper extends BaseMapper<AccountInfo> { ...@@ -11,6 +11,6 @@ public interface AccountMapper extends BaseMapper<AccountInfo> {
* @param map 查询参数 * @param map 查询参数
* @return * @return
*/ */
AccountInfo getAccountInfo(Map<String,Object> map); AccountInfo getAccountInfo(Map<String, Object> map);
} }
...@@ -38,7 +38,7 @@ public interface SchemeRecordMapper extends BaseMapper<SchemeQueryRecord> { ...@@ -38,7 +38,7 @@ public interface SchemeRecordMapper extends BaseMapper<SchemeQueryRecord> {
* @param map 统计条件 * @param map 统计条件
* @return 记录条数 * @return 记录条数
*/ */
int count(@Param("map") Map<String,Object> map); int count(@Param("map") Map<String, Object> map);
List<SchemeQueryRecord> getList(@Param("map") Map<String,Object> map); List<SchemeQueryRecord> getList(@Param("map") Map<String, Object> map);
} }
package cn.wisenergy.mapper; package cn.wisenergy.mapper;
import cn.wisenergy.model.app.UserInfo; import cn.wisenergy.model.app.UserInfo;
import cn.wisenergy.model.vo.UserQueryVo;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
/** /**
*@ Description: *@ Description:
*@ Author : 86187 *@ Author : 86187
...@@ -38,12 +33,5 @@ public interface UsersMapper extends BaseMapper<UserInfo> { ...@@ -38,12 +33,5 @@ public interface UsersMapper extends BaseMapper<UserInfo> {
*/ */
int delById(@Param("id") Integer id); int delById(@Param("id") Integer id);
int countByPhoneAnsUserId(@Param("phone") String phone,@Param("userId") Integer userId); int countByPhoneAnsUserId(@Param("phone") String phone, @Param("userId") Integer userId);
/**
* 查询用户信息
* @param map 查询参数
* @return
*/
List<UserInfo> getList(Map<String,Object> map);
} }
...@@ -10,7 +10,6 @@ import java.util.Date; ...@@ -10,7 +10,6 @@ import java.util.Date;
@Data @Data
@ApiModel(value = "CardInfo") @ApiModel(value = "CardInfo")
public class CardInfo implements Serializable { public class CardInfo implements Serializable {
private static final long serialVersionUID = -5934833963262442092L;
/** /**
* 子卡id * 子卡id
*/ */
......
...@@ -7,42 +7,48 @@ import lombok.Data; ...@@ -7,42 +7,48 @@ import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
/**
*@ Description: 充值记录实体类
*@ Author : 86187
*@ Date : 2021/1/8 14:48
*/
@Data @Data
@ApiModel(value = "PayRecord") @ApiModel(value = "PayRecord")
public class PayRecord implements Serializable { public class PayRecord implements Serializable {
private static final long serialVersionUID = -1133836167538757507L; private static final long serialVersionUID = -7865361068703566832L;
/** /**
* 充值记录id * 充值记录
*/ */
@ApiModelProperty(value = "充值记录id",name = "id") @ApiModelProperty(value = "",name = "")
private Integer id; private Integer id;
/** /**
* 充值类型 * 充值类型 1:支付宝 2:微信 3:充值卡
*/ */
@ApiModelProperty(value = "充值类型 1:支付宝 2:微信 3:充值卡",name = "type") @ApiModelProperty(value = "",name = "")
private Integer type; private Integer type;
/** /**
* 充值卡卡号 * 充值卡id
*/ */
@ApiModelProperty(value = "充值卡卡号",name = "cardCode") @ApiModelProperty(value = "充值卡id",name = "cardId")
private String cardCode; private String cardId;
/** /**
* 充值用户 * 充值用户id
*/ */
@ApiModelProperty(value = "充值用户",name = "userId") @ApiModelProperty(value = "充值用户id",name = "userId")
private Integer userId ; private Integer userId;
/** /**
* 充值金额 * 充值所花金额
*/ */
@ApiModelProperty(value = "充值金额 ",name = "money") @ApiModelProperty(value = "充值所花金额",name = "money")
private String money; private String money;
/** /**
* 充值结果 * 充值结果 0:成功 1:失败
*/ */
@ApiModelProperty(value = "充值结果 0:成功 1:失败",name = "result") @ApiModelProperty(value = "充值结果 0:成功 1:失败",name = "result")
private Integer result; private Integer result;
......
...@@ -4,13 +4,11 @@ import io.swagger.annotations.ApiModel; ...@@ -4,13 +4,11 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.io.Serializable;
import java.util.Date; import java.util.Date;
@Data @Data
@ApiModel(value = "RefillCard") @ApiModel(value = "RefillCard")
public class RefillCard implements Serializable { public class RefillCard {
private static final long serialVersionUID = 4018232893584885138L;
/** /**
* 充值卡id * 充值卡id
*/ */
......
...@@ -4,13 +4,11 @@ import io.swagger.annotations.ApiModel; ...@@ -4,13 +4,11 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.io.Serializable;
import java.util.Date; import java.util.Date;
@Data @Data
@ApiModel(value = "SchemeInnfo") @ApiModel(value = "SchemeInnfo")
public class SchemeInnfo implements Serializable { public class SchemeInnfo {
private static final long serialVersionUID = 7020644673356401949L;
/** /**
* 方案id * 方案id
*/ */
......
...@@ -4,13 +4,11 @@ import io.swagger.annotations.ApiModel; ...@@ -4,13 +4,11 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.io.Serializable;
import java.util.Date; import java.util.Date;
@Data @Data
@ApiModel(value = "UserLimit") @ApiModel(value = "UserLimit")
public class UserLimit implements Serializable { public class UserLimit {
private static final long serialVersionUID = 3956830394491346594L;
/** /**
* 用户卡点id * 用户卡点id
*/ */
......
...@@ -4,12 +4,9 @@ import io.swagger.annotations.ApiModel; ...@@ -4,12 +4,9 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.io.Serializable;
@Data @Data
@ApiModel(value = "UserVolunteer") @ApiModel(value = "UserVolunteer")
public class UserVolunteer implements Serializable { public class UserVolunteer {
private static final long serialVersionUID = 8617194272686159825L;
/** /**
* 用户方案id * 用户方案id
*/ */
......
...@@ -3,8 +3,6 @@ package cn.wisenergy.service.app; ...@@ -3,8 +3,6 @@ package cn.wisenergy.service.app;
import cn.wisenergy.common.utils.R; import cn.wisenergy.common.utils.R;
import cn.wisenergy.model.dto.AccountDto; import cn.wisenergy.model.dto.AccountDto;
import java.util.Map;
public interface AccountSerivce { public interface AccountSerivce {
/** /**
* 查询管理员信息 * 查询管理员信息
......
...@@ -69,5 +69,5 @@ public interface UserLoginService { ...@@ -69,5 +69,5 @@ public interface UserLoginService {
* @param phone 手机号 * @param phone 手机号
* @return true 成功 false 失败 * @return true 成功 false 失败
*/ */
R<Boolean> notePassword(Integer code,String phone); R<Boolean> notePassword(Integer code, String phone);
} }
package cn.wisenergy.service.app.impl; package cn.wisenergy.service.app.impl;
import cn.hutool.crypto.digest.MD5;
import cn.wisenergy.common.utils.Md5Util; import cn.wisenergy.common.utils.Md5Util;
import cn.wisenergy.common.utils.R; import cn.wisenergy.common.utils.R;
import cn.wisenergy.mapper.AccountMapper; import cn.wisenergy.mapper.AccountMapper;
...@@ -8,13 +7,12 @@ import cn.wisenergy.model.app.AccountInfo; ...@@ -8,13 +7,12 @@ import cn.wisenergy.model.app.AccountInfo;
import cn.wisenergy.model.dto.AccountDto; import cn.wisenergy.model.dto.AccountDto;
import cn.wisenergy.service.app.AccountSerivce; import cn.wisenergy.service.app.AccountSerivce;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.tomcat.util.codec.binary.Base64;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map;
@Slf4j @Slf4j
@Service @Service
public class AccountSerivceImpl implements AccountSerivce { public class AccountSerivceImpl implements AccountSerivce {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment