添加VIP用户

This commit is contained in:
liuchengqian 2022-06-02 14:12:25 +08:00
parent f978eedf58
commit 70bb41620d
2 changed files with 30 additions and 0 deletions

View File

@ -3,9 +3,11 @@ package com.xkrs.controller;
import com.xkrs.common.encapsulation.PromptMessageEnum;
import com.xkrs.common.tool.TokenUtil;
import com.xkrs.dao.FirePointDao;
import com.xkrs.dao.ShanDongFirePointDao;
import com.xkrs.dao.SysUserDao;
import com.xkrs.model.entity.FirePoint;
import com.xkrs.model.entity.FirePointEntity;
import com.xkrs.model.entity.ShanDongFirePointEntity;
import com.xkrs.model.entity.SysUserEntity;
import com.xkrs.model.qo.AuditFireTypeQo;
import com.xkrs.model.qo.FirePointQo;
@ -44,6 +46,9 @@ public class FirePointController {
@Resource
private FirePointDao firePointDao;
@Resource
private ShanDongFirePointDao shanDongFirePointDao;
@Resource
private StreetService streetService;
@ -65,6 +70,16 @@ public class FirePointController {
}
}
@GetMapping("/queryshandongfirepointlist")
public String queryShanDongFirePointList() {
Locale locale = LocaleContextHolder.getLocale();
List<ShanDongFirePointEntity> shanDongFirePointList = shanDongFirePointDao.findAll();
if (shanDongFirePointList.isEmpty()) {
return outputEncapsulationObject(PromptMessageEnum.DATA_NONE, "暂时还没有火点数据", locale);
}
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, shanDongFirePointList, locale);
}
/**
* 根据火点编号更新审核状态
* 操作1将火点编号对应的火点从山东火点表转存到火点表

View File

@ -104,6 +104,12 @@ public class SysUserEntity implements Serializable {
@Column(columnDefinition = "varchar(1024)")
private String userAgent;
/**
* 是否是VIP用户
*/
@Column(length = 64, columnDefinition = "varchar(64)")
private String isVip;
public SysUserEntity() {
}
@ -275,6 +281,14 @@ public class SysUserEntity implements Serializable {
this.userAgent = userAgent;
}
public String getIsVip() {
return isVip;
}
public void setIsVip(String isVip) {
this.isVip = isVip;
}
@Override
public String toString() {
return "SysUserEntity{" +
@ -299,6 +313,7 @@ public class SysUserEntity implements Serializable {
", loginNum=" + loginNum +
", loginLastTime='" + loginLastTime + '\'' +
", userAgent='" + userAgent + '\'' +
", isVip='" + isVip + '\'' +
'}';
}
}