对应部上传所需改动

2.X
luyya 2025-01-07 15:42:08 +08:00
parent 973fd3228f
commit 569c86fe18
23 changed files with 423 additions and 61 deletions

View File

@ -17,4 +17,6 @@ public interface RemoteDeviceService {
R saveDeviceToSt(String infoSource, List<RemoteDeviceBo> list);
RemoteDeviceVo getDeviceInfo(String deviceCode,String deviceType);
}

View File

@ -33,6 +33,10 @@ public class RemoteDeviceBo implements Serializable {
@NotBlank(message = "设备类型不能为空", groups = { AddGroup.class, EditGroup.class })
private String deviceType;
private String sbpp;
private String sbxh;
private String infoSource;
/**
@ -67,6 +71,8 @@ public class RemoteDeviceBo implements Serializable {
*/
private String carNum;
private String cardNum;
/**
* 01
*/
@ -82,6 +88,22 @@ public class RemoteDeviceBo implements Serializable {
*/
private String remark2;
private String lrdwdm;
private String lrdwmc;
private String lrrxm;
private String lrrsfzh;
private String xgdwdm;
private String xgdwmc;
private String xgrxm;
private String xgrsfzh;
private String beginTime;
private String endTime;

View File

@ -32,6 +32,10 @@ public class RemoteDeviceVo implements Serializable {
*/
private String deviceType;
private String sbpp;
private String sbxh;
private String infoSource;
/**
@ -64,6 +68,8 @@ public class RemoteDeviceVo implements Serializable {
*/
private String carNum;
private String cardNum;
/**
* 01
*/
@ -82,4 +88,20 @@ public class RemoteDeviceVo implements Serializable {
private String createTime;
private String updateTime;
private String lrdwdm;
private String lrdwmc;
private String lrrxm;
private String lrrsfzh;
private String xgdwdm;
private String xgdwmc;
private String xgrxm;
private String xgrsfzh;
}

View File

@ -4,6 +4,8 @@ import cn.dev33.satoken.exception.NotLoginException;
import cn.hutool.core.codec.Base64;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import jakarta.servlet.http.HttpServletRequest;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@ -37,6 +39,7 @@ import org.dromara.system.api.RemoteSocialService;
import org.dromara.system.api.RemoteTenantService;
import org.dromara.system.api.domain.vo.RemoteClientVo;
import org.dromara.system.api.domain.vo.RemoteTenantVo;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.web.bind.annotation.*;
import java.net.URL;
@ -113,10 +116,11 @@ public class TokenController {
* @param body
* @return
*/
@ApiEncrypt
@PostMapping("/getToken")
public R<LoginVo> getToken(@RequestBody String body) {
LoginBody loginBody = JsonUtils.parseObject(body, LoginBody.class);
JSONObject obj = JSONUtil.parseObj(body);
obj.set("userType","third");
ValidatorUtils.validate(loginBody);
// 授权类型和客户端id
String clientId = "e5cd7e4891bf95d1d19206ce24a7b32e";
@ -124,7 +128,7 @@ public class TokenController {
RemoteClientVo clientVo = remoteClientService.queryByClientId(clientId);
// 登录
LoginVo loginVo = IAuthStrategy.login(body, clientVo, grantType);
LoginVo loginVo = IAuthStrategy.login(obj.toString(), clientVo, grantType);
return R.ok(loginVo);
}

View File

@ -54,16 +54,20 @@ public class PasswordAuthStrategy implements IAuthStrategy {
String password = loginBody.getPassword();
String code = loginBody.getCode();
String uuid = loginBody.getUuid();
String userType = loginBody.getUserType();
// 验证码开关
if (!"third".equals(userType)){
if (captchaProperties.getEnabled()) {
validateCaptcha(tenantId, username, code, uuid);
}
}
LoginUser loginUser = TenantHelper.dynamic(tenantId, () -> {
LoginUser user = remoteUserService.getUserInfo(username, tenantId);
loginService.checkLogin(LoginType.PASSWORD, tenantId, username, () -> !BCrypt.checkpw(password, user.getPassword()));
return user;
});
loginUser.setClientKey(client.getClientKey());
loginUser.setDeviceType(client.getDeviceType());
SaLoginModel model = new SaLoginModel();

View File

@ -16,13 +16,11 @@ public class LoginBody {
/**
* id
*/
@NotBlank(message = "{auth.clientid.not.blank}")
private String clientId;
/**
*
*/
@NotBlank(message = "{auth.grant.type.not.blank}")
private String grantType;
/**
@ -40,4 +38,9 @@ public class LoginBody {
*/
private String uuid;
/*
*
* */
private String userType;
}

View File

@ -27,8 +27,8 @@ public class KafkaConfig {
// private String kafkaServers = "140.168.2.31:21007,140.168.2.32:21007,140.168.2.33:21007";
// private String kafkaServers = "53.208.61.105:6667,53.208.61.106:6667,53.208.61.107:6667";//六安GA网
// private String kafkaServers = "34.72.62.93:9092";//六安视频网
private String kafkaServers = "127.0.0.1:9092";//本地
// private String kafkaServers = "eurekahost1:9090,eurekahost2:9090,eurekahost3:9090";//省厅
// private String kafkaServers = "127.0.0.1:9092";//本地
private String kafkaServers = "53.207.8.71:9092,53.193.3.15:9092,53.160.0.237:9092,53.104.56.58:9092,53.128.22.61:9092";//省厅 马伟提供
private String groupId = "ruansiProducer";
@ -128,6 +128,9 @@ public class KafkaConfig {
// props.put(kerberosDomainName, "hadoop.hadoop.com");
//设置自定义的分区策略类默认不传key是粘性分区尽量往一个分区中发消息。如果key不为null则默认是按照key的hashcode与 partition的取余来决定哪个partition
//props.put("partitioner.class","com.kafka.myparitioner.CidPartitioner");
props.put(securityProtocol, "SASL_PLAINTEXT");
props.put("sasl.jaas.config", "org.apache.kafka.common.security.scram.ScramLoginModule required username=\"zkxc\" password=\"zkxcKafka07252023\";");
props.put("sasl.mechanism", "SCRAM-SHA-256");
KafkaProducer<String, String> producer = new KafkaProducer<>(props);
// KafkaProducer producer = new KafkaProducer<>(props);
@ -140,51 +143,6 @@ public class KafkaConfig {
admin.setFatalIfBrokerNotAvailable(true);
return admin;
}
@Bean
public NewTopic topic5() {
return new NewTopic("topic.send.5", 1, (short) 1);
}
@Bean
public NewTopic topic1() {
return new NewTopic("topic.send.1", 1, (short) 1);
}
@Bean
public NewTopic topic2() {
return new NewTopic("topic.send.2", 1, (short) 1);
}
@Bean
public NewTopic topic3() {
return new NewTopic("topic.send.3", 1, (short) 1);
}
@Bean
public NewTopic topic4() {
return new NewTopic("topic.send.4", 1, (short) 1);
}
@Bean
public NewTopic topic6() {
return new NewTopic("topic.send.6", 1, (short) 1);
}
@Bean
public NewTopic topic_zfjly() {
return new NewTopic("topic_gps_zfjly", 1, (short) 1);
}
@Bean
public NewTopic topic_gps_car() {
return new NewTopic("topic_gps_car", 1, (short) 1);
}
@Bean
public NewTopic topic_zfjly2() {
return new NewTopic("topic_gps_zfjly2", 3, (short) 1);
}
@Bean
public NewTopic topic_gps_car2() {
return new NewTopic("topic_gps_car2", 3, (short) 1);
}
}

View File

@ -7,6 +7,7 @@ import cn.hutool.core.date.DateUtil;
import cn.hutool.json.JSONUtil;
import lombok.RequiredArgsConstructor;
import org.apache.commons.lang.StringUtils;
import org.apache.dubbo.config.annotation.DubboReference;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.utils.RedisConstants;
import org.dromara.data2es.domain.EsGpsInfo;
@ -15,6 +16,8 @@ import org.dromara.data2es.domain.entity.GpsInfoEntity;
import org.dromara.data2es.exception.MyBusinessException;
import org.dromara.data2es.handler.RequestHandler;
import org.dromara.data2es.service.IGpsService;
import org.dromara.system.api.RemoteDeviceService;
import org.dromara.system.api.domain.vo.RemoteDeviceVo;
import org.elasticsearch.action.bulk.BulkRequest;
import org.elasticsearch.action.index.IndexRequest;
import org.elasticsearch.action.index.IndexResponse;
@ -45,6 +48,9 @@ public class GpsServiceImpl implements IGpsService {
@Autowired
private RestHighLevelClient restHighLevelClient;
@DubboReference
private RemoteDeviceService deviceService;
private final RequestHandler requestHandler;
private Logger logger = LoggerFactory.getLogger(GpsServiceImpl.class);
@ -133,9 +139,32 @@ public class GpsServiceImpl implements IGpsService {
EsGpsInfoVO2 esGpsInfoVO2 = new EsGpsInfoVO2();
BeanUtil.copyProperties(esGpsInfo,esGpsInfoVO2);
if(null == esGpsInfoVO2.getZzjgdm() || "".equals(esGpsInfoVO2.getZzjgdm())){
RemoteDeviceVo vo = deviceService.getDeviceInfo(esGpsInfoVO2.getDeviceCode(),esGpsInfoVO2.getDeviceType());
if (null != vo){
esGpsInfoVO2.setZzjgdm(vo.getZzjgdm());
esGpsInfoVO2.setZzjgmc(vo.getZzjgmc());
esGpsInfoVO2.setPoliceName(vo.getPoliceName());
esGpsInfoVO2.setPoliceNo(vo.getPoliceNo());
esGpsInfoVO2.setCarNum(vo.getCarNum());
String deviceType = vo.getDeviceType();
if(StringUtils.isNotBlank(deviceType)){
deviceType = deviceType.replaceAll("\"", "");
if(deviceType.charAt(0) == '0' && deviceType.length() > 1){
deviceType = deviceType.substring(1);
if(deviceType.equals("1")){
deviceType = "2";
}
}
}
esGpsInfoVO2.setDeviceType(deviceType);
}else {
esGpsInfoVO2.setDeviceType("99");
esGpsInfoVO2.setZzjgdm(esGpsInfo.getInfoSource()+"00000000");
}
}
return esGpsInfoVO2;
}
@ -149,7 +178,7 @@ public class GpsServiceImpl implements IGpsService {
* @param
*/
private String checkIndexExist() {
String todayIndexName = "gpsinfo"+ LocalDate.now().format(DateTimeFormatter.ofPattern("yyyyMMdd"));
String todayIndexName = "rs_gpsinfo"+ LocalDate.now().format(DateTimeFormatter.ofPattern("yyyyMMdd"));
CreateIndexRequest createIndexRequest ;
if(!existsIndex(todayIndexName)){
logger.error("进入了exist");

View File

@ -3,5 +3,5 @@ package org.dromara.data2es.util;
public class ConfigConstants {
public static final String HTTP_HEADER_AUTH_TOKEN = "Auth-Token";
public static final String KAFKA_TOPIC_SEND_PRE = "topic.send";
public static final String KAFKA_TOPIC_SEND_PRE = "rs_topic.send";
}

View File

@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-modules</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>stwzhj-dataToGas</artifactId>
<description>
stwzhj-dataToGas 数据上传到高斯库
</description>
<dependencies>
<!-- RuoYi Common Log -->
<dependency>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-common-log</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-common-dict</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-common-doc</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-common-web</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-common-mybatis</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-common-idempotent</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-common-tenant</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-common-security</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-common-translation</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-common-sensitive</artifactId>
</dependency>
<dependency>
<groupId>org.dromara</groupId>
<artifactId>stwzhj-common-encrypt</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,24 @@
package org.dromara.data2gs;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
*
*
* @author ruoyi
*/
@EnableDubbo
@EnableScheduling
@SpringBootApplication
public class Data2GASApplication {
public static void main(String[] args) {
SpringApplication application = new SpringApplication(Data2GASApplication.class);
application.setApplicationStartup(new BufferingApplicationStartup(2048));
application.run(args);
System.out.println("(♥◠‿◠)ノ゙ 系统模块启动成功 ლ(´ڡ`ლ)゙ ");
}
}

View File

@ -0,0 +1,52 @@
# Tomcat
server:
port: 9201
# Spring
spring:
datasource:
dynamic:
# 设置默认的数据源或者数据源组,默认值即为 master
primary: master
datasource:
# 主库数据源
master:
type: ${spring.datasource.type}
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/rs_doris_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
username: root
password: ycgis
slave:
type: ${spring.datasource.type}
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://53.1.213.131:25308/st_zazdr?currentSchema=public&useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
username: ahrs
password: Ycgis!2509
application:
# 应用名称
name: stwzhj-system
profiles:
# 环境配置
active: @profiles.active@
--- # nacos 配置
spring:
cloud:
nacos:
# nacos 服务地址
server-addr: @nacos.server@
username: @nacos.username@
password: @nacos.password@
discovery:
# 注册组
group: @nacos.discovery.group@
namespace: ${spring.profiles.active}
config:
# 配置组
group: @nacos.config.group@
namespace: ${spring.profiles.active}
config:
import:
- optional:nacos:application-common.yml
- optional:nacos:datasource.yml
- optional:nacos:${spring.application.name}.yml

View File

@ -0,0 +1,10 @@
Spring Boot Version: ${spring-boot.version}
Spring Application Name: ${spring.application.name}
_ _
(_) | |
_ __ _ _ ___ _ _ _ ______ ___ _ _ ___ | |_ ___ _ __ ___
| '__|| | | | / _ \ | | | || ||______|/ __|| | | |/ __|| __| / _ \| '_ ` _ \
| | | |_| || (_) || |_| || | \__ \| |_| |\__ \| |_ | __/| | | | | |
|_| \__,_| \___/ \__, ||_| |___/ \__, ||___/ \__| \___||_| |_| |_|
__/ | __/ |
|___/ |___/

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<!-- 日志存放路径 -->
<property name="log.path" value="logs/${project.artifactId}" />
<!-- 日志输出格式 -->
<property name="console.log.pattern"
value="%red(%d{yyyy-MM-dd HH:mm:ss}) %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{36}%n) - %msg%n"/>
<!-- 控制台输出 -->
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${console.log.pattern}</pattern>
<charset>utf-8</charset>
</encoder>
</appender>
<include resource="logback-common.xml" />
<include resource="logback-logstash.xml" />
<!-- 开启 skywalking 日志收集 -->
<include resource="logback-skylog.xml" />
<!--系统操作日志-->
<root level="info">
<appender-ref ref="console" />
</root>
</configuration>

View File

@ -6,6 +6,7 @@ import cn.hutool.core.date.DateUtil;
import lombok.RequiredArgsConstructor;
import org.dromara.location.service.ISearchService;
import org.elasticsearch.action.search.*;
import org.elasticsearch.action.support.IndicesOptions;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.RestHighLevelClient;
import org.elasticsearch.core.TimeValue;
@ -64,9 +65,12 @@ public class SearchServiceImpl implements ISearchService {
SearchSourceBuilder sourceBuilder = new SearchSourceBuilder();
sourceBuilder.query(boolBuilder).sort("gpsTime",SortOrder.ASC).size(5000);
SearchRequest rq = new SearchRequest();
// boolBuilder.withIndicesOptions(IndicesOptions.lenientExpandOpen());
rq.scroll(scroll);
rq.source(sourceBuilder);
rq.indices(esIndexByTime.toArray(new String[0]));
// 忽略因索引不存在导致的错误
rq.indicesOptions(IndicesOptions.lenientExpandOpen());
// SearchResponse rp = null;
try {
SearchResponse rp = restHighLevelClient.search(rq,RequestOptions.DEFAULT);

View File

@ -38,6 +38,10 @@ public class TDevice {
*/
private String deviceType;
private String sbpp;
private String sbxh;
@MppMultiId
private String infoSource;
@ -71,6 +75,8 @@ public class TDevice {
*/
private String carNum;
private String cardNum;
/**
* 01
*/
@ -92,5 +98,21 @@ public class TDevice {
@TableField(fill = FieldFill.INSERT_UPDATE)
private String updateTime;
private String lrdwdm;
private String lrdwmc;
private String lrrxm;
private String lrrsfzh;
private String xgdwdm;
private String xgdwmc;
private String xgrxm;
private String xgrsfzh;
}

View File

@ -40,6 +40,10 @@ public class TDeviceBo extends BaseEntity {
@NotBlank(message = "设备类型不能为空", groups = { AddGroup.class, EditGroup.class })
private String deviceType;
private String sbpp;
private String sbxh;
/**
*
*/
@ -72,6 +76,8 @@ public class TDeviceBo extends BaseEntity {
*/
private String carNum;
private String cardNum;
/**
* 01
*/
@ -87,5 +93,21 @@ public class TDeviceBo extends BaseEntity {
*/
private String remark2;
private String lrdwdm;
private String lrdwmc;
private String lrrxm;
private String lrrsfzh;
private String xgdwdm;
private String xgdwmc;
private String xgrxm;
private String xgrsfzh;
}

View File

@ -40,12 +40,20 @@ public class TDeviceVo implements Serializable {
@ExcelProperty(value = "外部系统设备编号建议21位")
private String deviceCode;
// 警号、姓名、车牌号组合字段
private String deviceName;
/**
*
*/
@ExcelProperty(value = "设备类型")
private String deviceType;
private String sbpp;
private String sbxh;
private String infoSource;
/**
@ -88,6 +96,8 @@ public class TDeviceVo implements Serializable {
@ExcelDictFormat(readConverterExp = "若=有")
private String carNum;
private String cardNum;
/**
* 01
*/
@ -111,5 +121,21 @@ public class TDeviceVo implements Serializable {
private String updateTime;
private String lrdwdm;
private String lrdwmc;
private String lrrxm;
private String lrrsfzh;
private String xgdwdm;
private String xgdwmc;
private String xgrxm;
private String xgrsfzh;
}

View File

@ -55,4 +55,12 @@ public class RemoteDeviceImpl implements RemoteDeviceService {
public R saveDeviceToSt(String infoSource, List<RemoteDeviceBo> list) {
return deviceService.saveDeviceToSt(infoSource,BeanUtil.copyToList(list,TDevice.class));
}
@Override
public RemoteDeviceVo getDeviceInfo(String deviceCode, String deviceType) {
TDeviceBo bo = new TDeviceBo();
bo.setDeviceCode(deviceCode);
bo.setDeviceType(deviceType);
return BeanUtil.toBean(deviceService.queryOne(bo), RemoteDeviceVo.class) ;
}
}

View File

@ -44,6 +44,8 @@ public interface ITDeviceService {
*/
List<TDeviceVo> queryList(TDeviceBo bo);
TDeviceVo queryOne(TDeviceBo bo);
/**
* device
*

View File

@ -81,6 +81,7 @@ public class SysUserServiceImpl implements ISysUserService {
.eq(ObjectUtil.isNotNull(user.getUserId()), "u.user_id", user.getUserId())
.like(StringUtils.isNotBlank(user.getUserName()), "u.user_name", user.getUserName())
.eq(StringUtils.isNotBlank(user.getStatus()), "u.status", user.getStatus())
.eq(StringUtils.isNotBlank(user.getUserType()), "u.user_type", user.getUserType())
.like(StringUtils.isNotBlank(user.getPhonenumber()), "u.phonenumber", user.getPhonenumber())
.between(params.get("beginTime") != null && params.get("endTime") != null,
"u.create_time", params.get("beginTime"), params.get("endTime"))

View File

@ -63,6 +63,21 @@ public class TDeviceServiceImpl implements ITDeviceService {
public TableDataInfo<TDeviceVo> queryPageList(TDeviceBo bo, PageQuery pageQuery) {
LambdaQueryWrapper<TDevice> lqw = buildQueryWrapper(bo);
Page<TDeviceVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
List<TDeviceVo> list = result.getRecords();
for (TDeviceVo vo : list) {
if ("".equals(vo.getPoliceName()) || null == vo.getPoliceName()){
vo.setDeviceName(vo.getCarNum());
}
if("".equals(vo.getCarNum()) || null == vo.getCarNum()){
if (!"".equals(vo.getPoliceNo()) && null != vo.getPoliceNo()){
vo.setDeviceName(vo.getPoliceNo()+"-"+vo.getPoliceName());
}else {
vo.setDeviceName(vo.getPoliceName());
}
}
}
return TableDataInfo.build(result);
}
@ -78,6 +93,12 @@ public class TDeviceServiceImpl implements ITDeviceService {
return baseMapper.selectVoList(lqw);
}
@Override
public TDeviceVo queryOne(TDeviceBo bo) {
LambdaQueryWrapper<TDevice> lqw = buildQueryWrapper(bo);
return baseMapper.selectVoOne(lqw);
}
private LambdaQueryWrapper<TDevice> buildQueryWrapper(TDeviceBo bo) {
Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<TDevice> lqw = Wrappers.lambdaQuery();

View File

@ -17,7 +17,7 @@
${ew.getSqlSelect}
</if>
<if test="ew.getSqlSelect == null">
u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex,
u.user_id, u.dept_id, u.nick_name, u.user_name, u.user_type, u.email, u.avatar, u.phonenumber, u.sex,
u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark
</if>
from sys_user u
@ -30,7 +30,7 @@
${ew.getSqlSelect}
</if>
<if test="ew.getSqlSelect == null">
u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex,
u.user_id, u.dept_id, u.nick_name, u.user_name, u.user_type, u.email, u.avatar, u.phonenumber, u.sex,
u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark
</if>
from sys_user u
@ -38,7 +38,7 @@
</select>
<select id="selectUserExportList" resultMap="SysUserExportResult">
select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex,
select u.user_id, u.dept_id, u.nick_name, u.user_name, u.user_type, u.email, u.avatar, u.phonenumber, u.sex,
u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,
d.dept_name, d.leader, u1.user_name as leaderName
from sys_user u
@ -48,7 +48,7 @@
</select>
<select id="selectAllocatedList" resultMap="SysUserResult">
select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time
select distinct u.user_id, u.dept_id, u.user_name, u.user_type, u.nick_name, u.email, u.phonenumber, u.status, u.create_time
from sys_user u
left join sys_dept d on u.dept_id = d.dept_id
left join sys_user_role sur on u.user_id = sur.user_id
@ -57,7 +57,7 @@
</select>
<select id="selectUnallocatedList" resultMap="SysUserResult">
select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time
select distinct u.user_id, u.dept_id, u.user_name, u.user_type, u.nick_name, u.email, u.phonenumber, u.status, u.create_time
from sys_user u
left join sys_dept d on u.dept_id = d.dept_id
left join sys_user_role sur on u.user_id = sur.user_id