国标通道编辑重置支持选择字段
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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>"})
|
||||
|
||||
Reference in New Issue
Block a user