国标通道编辑重置支持选择字段

This commit is contained in:
lin
2025-11-06 20:31:51 +08:00
parent 01e72407ac
commit e453b3b394
7 changed files with 264 additions and 16 deletions

View File

@@ -86,16 +86,12 @@ public class CommonGBChannel {
@Schema(description = "国标-纬度 WGS-84坐标系")
private Double gbLatitude;
@Schema(description = "")
private Double gpsAltitude;
@Schema(description = "")
private Double gpsSpeed;
@Schema(description = "")
private Double gpsDirection;
@Schema(description = "")
private String gpsTime;
@Schema(description = "国标-虚拟组织所属的业务分组ID")

View File

@@ -104,7 +104,7 @@ public class ChannelController {
@Operation(summary = "重置国标通道", security = @SecurityRequirement(name = JwtUtils.HEADER))
@PostMapping("/reset")
public void reset(ResetParam param){
public void reset(@RequestBody ResetParam param){
Assert.notNull(param.getId(), "通道ID不能为空");
Assert.notEmpty(param.getChanelFields(), "待重置字段不可以空");
channelService.reset(param.getId(), param.getChanelFields());

View File

@@ -237,8 +237,8 @@ public interface CommonGBChannelMapper {
@Update(value = {" <script>" +
" UPDATE wvp_device_channel " +
" SET update_time=#{updateTime}" +
"<foreach collection='fields' index='index' item='item' separator=';'> " +
", #{item} = null" +
"<foreach collection='fields' index='index' item='item'> " +
" ,${item} = null" +
"</foreach> " +
" WHERE id = #{id}"+
" </script>"})