Compare commits
7 Commits
faef79e56d
...
prod
Author | SHA1 | Date | |
---|---|---|---|
a7e0803b00 | |||
78e2538f71 | |||
55cacbd322 | |||
171eeabea1 | |||
7be94fe1d2 | |||
99ec6eaff0 | |||
530ee83488 |
@ -6,15 +6,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="queryAppFileList" resultType="com.fuyuanshen.app.domain.vo.AppFileVo">
|
<select id="queryAppFileList" resultType="com.fuyuanshen.app.domain.vo.AppFileVo">
|
||||||
select a.id,a.business_id,a.file_id,b.file_name,b.url fileUrl from app_business_file a left join sys_oss b on a.file_id = b.oss_id
|
select a.id,a.business_id,a.file_id,b.file_name,b.url fileUrl from app_business_file a left join sys_oss b on a.file_id = b.oss_id
|
||||||
where
|
where 1=1
|
||||||
<if test="businessId != null">
|
<if test="businessId != null">
|
||||||
and a.business_id = #{businessId}
|
and a.business_id = #{businessId}
|
||||||
</if>
|
</if>
|
||||||
<if test="fileId != null">
|
<if test="fileId != null">
|
||||||
and a.file_id = #{fileId}
|
and a.file_id = #{fileId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="fileType != null">
|
||||||
|
and a.file_type = #{fileType}
|
||||||
|
</if>
|
||||||
<if test="createBy != null">
|
<if test="createBy != null">
|
||||||
a.create_by = #{createBy}
|
and a.create_by = #{createBy}
|
||||||
</if>
|
</if>
|
||||||
order by a.create_time desc
|
order by a.create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
@ -9,6 +9,8 @@ import com.fuyuanshen.common.tenant.core.TenantEntity;
|
|||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 设备表
|
* @Description: 设备表
|
||||||
* @Author: WY
|
* @Author: WY
|
||||||
@ -114,4 +116,6 @@ public class Device extends TenantEntity {
|
|||||||
private String createByName;
|
private String createByName;
|
||||||
|
|
||||||
private Long bindingUserId;
|
private Long bindingUserId;
|
||||||
|
|
||||||
|
private Date bindingTime;
|
||||||
}
|
}
|
||||||
|
@ -533,8 +533,9 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
|
|||||||
UpdateWrapper<Device> deviceUpdateWrapper = new UpdateWrapper<>();
|
UpdateWrapper<Device> deviceUpdateWrapper = new UpdateWrapper<>();
|
||||||
deviceUpdateWrapper.eq("id", device.getId())
|
deviceUpdateWrapper.eq("id", device.getId())
|
||||||
.set("binding_status", BindingStatusEnum.BOUND.getCode())
|
.set("binding_status", BindingStatusEnum.BOUND.getCode())
|
||||||
.set("binding_user_id", userId);
|
.set("binding_user_id", userId)
|
||||||
;
|
.set("binding_time", new Date());
|
||||||
|
|
||||||
|
|
||||||
return baseMapper.update(null, deviceUpdateWrapper);
|
return baseMapper.update(null, deviceUpdateWrapper);
|
||||||
} else if (mode == CommunicationModeEnum.BLUETOOTH.getValue()) {
|
} else if (mode == CommunicationModeEnum.BLUETOOTH.getValue()) {
|
||||||
@ -552,7 +553,8 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
|
|||||||
UpdateWrapper<Device> deviceUpdateWrapper = new UpdateWrapper<>();
|
UpdateWrapper<Device> deviceUpdateWrapper = new UpdateWrapper<>();
|
||||||
deviceUpdateWrapper.eq("id", device.getId())
|
deviceUpdateWrapper.eq("id", device.getId())
|
||||||
.set("binding_status", BindingStatusEnum.BOUND.getCode())
|
.set("binding_status", BindingStatusEnum.BOUND.getCode())
|
||||||
.set("binding_user_id", userId);
|
.set("binding_user_id", userId)
|
||||||
|
.set("binding_time", new Date());
|
||||||
return baseMapper.update(null, deviceUpdateWrapper);
|
return baseMapper.update(null, deviceUpdateWrapper);
|
||||||
} else {
|
} else {
|
||||||
throw new RuntimeException("通讯方式错误");
|
throw new RuntimeException("通讯方式错误");
|
||||||
@ -571,7 +573,8 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
|
|||||||
UpdateWrapper<Device> deviceUpdateWrapper = new UpdateWrapper<>();
|
UpdateWrapper<Device> deviceUpdateWrapper = new UpdateWrapper<>();
|
||||||
deviceUpdateWrapper.eq("id", device.getId())
|
deviceUpdateWrapper.eq("id", device.getId())
|
||||||
.set("binding_status", BindingStatusEnum.UNBOUND.getCode())
|
.set("binding_status", BindingStatusEnum.UNBOUND.getCode())
|
||||||
.set("binding_user_id", null);
|
.set("binding_user_id", null)
|
||||||
|
.set("binding_time", null);
|
||||||
return baseMapper.update(null, deviceUpdateWrapper);
|
return baseMapper.update(null, deviceUpdateWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
16
pom.xml
16
pom.xml
@ -81,10 +81,10 @@
|
|||||||
<monitor.username>fys</monitor.username>
|
<monitor.username>fys</monitor.username>
|
||||||
<monitor.password>123456</monitor.password>
|
<monitor.password>123456</monitor.password>
|
||||||
</properties>
|
</properties>
|
||||||
<activation>
|
<!-- <activation> -->
|
||||||
<!-- 默认环境 -->
|
<!-- <!– 默认环境 –> -->
|
||||||
<activeByDefault>true</activeByDefault>
|
<!-- <activeByDefault>true</activeByDefault> -->
|
||||||
</activation>
|
<!-- </activation> -->
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>prod</id>
|
<id>prod</id>
|
||||||
@ -94,10 +94,10 @@
|
|||||||
<monitor.username>fys</monitor.username>
|
<monitor.username>fys</monitor.username>
|
||||||
<monitor.password>123456</monitor.password>
|
<monitor.password>123456</monitor.password>
|
||||||
</properties>
|
</properties>
|
||||||
<!-- <activation> -->
|
<activation>
|
||||||
<!-- <!– 默认环境 –> -->
|
<!-- 默认环境 -->
|
||||||
<!-- <activeByDefault>true</activeByDefault> -->
|
<activeByDefault>true</activeByDefault>
|
||||||
<!-- </activation> -->
|
</activation>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user