fix feeding
parent
99d03b80b5
commit
356e283c2f
@ -1,9 +1 @@
|
||||
字典标签
|
||||
字典键值
|
||||
入库 6
|
||||
完工 5
|
||||
开工 4
|
||||
计划 3
|
||||
下达 2
|
||||
送审 1
|
||||
草稿 0
|
||||
{"A1":{"v":"1.9"},"A10":{"v":"100.0"},"A100":{"v":"false"},"A101":{"v":"false"},"A102":{"v":"false"},"A103":{"v":"false"},"A104":{"v":"false"},"A105":{"v":"false"},"A106":{"v":"false"},"A107":{"v":"false"},"A108":{"v":"false"},"A109":{"v":"false"},"A11":{"v":"696.8"},"A110":{"v":"false"},"A111":{"v":"true"},"A112":{"v":"false"},"A113":{"v":"false"},"A114":{"v":"false"},"A115":{"v":"false"},"A116":{"v":"false"},"A117":{"v":"true"},"A118":{"v":"false"},"A119":{"v":"false"},"A12":{"v":"0.0"},"A120":{"v":"false"},"A121":{"v":"false"},"A122":{"v":"false"},"A123":{"v":"false"},"A124":{"v":"false"},"A125":{"v":"false"},"A126":{"v":"false"},"A127":{"v":"false"},"A128":{"v":"false"},"A129":{"v":"false"},"A13":{"v":"0.0"},"A130":{"v":"false"},"A131":{"v":"false"},"A132":{"v":"false"},"A133":{"v":"false"},"A134":{"v":"true"},"A135":{"v":"false"},"A136":{"v":"true"},"A137":{"v":"true"},"A138":{"v":"false"},"A139":{"v":"false"},"A14":{"v":"100.0"},"A140":{"v":"false"},"A15":{"v":"100.0"},"A16":{"v":"50.0"},"A17":{"v":"false"},"A18":{"v":"true"},"A19":{"v":"false"},"A20":{"v":"false"},"A21":{"v":"false"},"A22":{"v":"false"},"A23":{"v":"false"},"A24":{"v":"false"},"A25":{"v":"false"},"A26":{"v":"false"},"A27":{"v":"false"},"A28":{"v":"false"},"A29":{"v":"false"},"A3":{"v":"3051.1"},"A30":{"v":"true"},"A31":{"v":"false"},"A32":{"v":"true"},"A33":{"v":"false"},"A34":{"v":"true"},"A35":{"v":"true"},"A36":{"v":"false"},"A37":{"v":"false"},"A38":{"v":"false"},"A39":{"v":"false"},"A4":{"v":"287.8"},"A40":{"v":"true"},"A41":{"v":"false"},"A42":{"v":"false"},"A43":{"v":"false"},"A44":{"v":"false"},"A45":{"v":"false"},"A46":{"v":"false"},"A47":{"v":"false"},"A48":{"v":"false"},"A49":{"v":"false"},"A5":{"v":"3134.9"},"A50":{"v":"false"},"A51":{"v":"false"},"A52":{"v":"false"},"A53":{"v":"false"},"A54":{"v":"false"},"A55":{"v":"false"},"A56":{"v":"false"},"A57":{"v":"false"},"A58":{"v":"false"},"A59":{"v":"false"},"A6":{"v":"1852.8"},"A60":{"v":"false"},"A61":{"v":"false"},"A62":{"v":"false"},"A63":{"v":"false"},"A64":{"v":"false"},"A65":{"v":"false"},"A66":{"v":"true"},"A67":{"v":"false"},"A68":{"v":"true"},"A69":{"v":"true"},"A7":{"v":"1475.3"},"A70":{"v":"false"},"A71":{"v":"false"},"A72":{"v":"false"},"A8":{"v":"2601.4"},"A83":{"v":"false"},"A84":{"v":"false"},"A85":{"v":"false"},"A86":{"v":"false"},"A87":{"v":"false"},"A88":{"v":"true"},"A89":{"v":"false"},"A9":{"v":"696.8"},"A90":{"v":"false"},"A91":{"v":"false"},"A92":{"v":"false"},"A93":{"v":"false"},"A94":{"v":"false"},"A95":{"v":"false"},"A96":{"v":"false"},"A97":{"v":"false"},"A98":{"v":"false"},"A99":{"v":"false"}}
|
||||
@ -0,0 +1,70 @@
|
||||
package cn.iocoder.yudao.module.iot.controller.admin.mqttrecord;
|
||||
|
||||
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||
import cn.iocoder.yudao.module.iot.controller.admin.mqttrecord.vo.MqttRecordPageReqVO;
|
||||
import cn.iocoder.yudao.module.iot.controller.admin.mqttrecord.vo.MqttRecordRespVO;
|
||||
import cn.iocoder.yudao.module.iot.controller.admin.mqttrecord.vo.MqttRecordSaveReqVO;
|
||||
import cn.iocoder.yudao.module.iot.dal.dataobject.mqttrecord.MqttRecordDO;
|
||||
import cn.iocoder.yudao.module.iot.service.mqttrecord.MqttRecordService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.Valid;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||
|
||||
@Tag(name = "管理后台 - 数采记录")
|
||||
@RestController
|
||||
@RequestMapping("/iot/mqtt-server")
|
||||
@Validated
|
||||
public class MqttServerController {
|
||||
|
||||
@Resource
|
||||
private MqttRecordService mqttRecordService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建数采记录")
|
||||
public CommonResult<Long> createMqttRecord(@Valid @RequestBody MqttRecordSaveReqVO createReqVO) {
|
||||
return success(mqttRecordService.createMqttRecord(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新数采记录")
|
||||
public CommonResult<Boolean> updateMqttRecord(@Valid @RequestBody MqttRecordSaveReqVO updateReqVO) {
|
||||
mqttRecordService.updateMqttRecord(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除数采记录")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
public CommonResult<Boolean> deleteMqttRecord(@RequestParam("id") Long id) {
|
||||
mqttRecordService.deleteMqttRecord(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得数采记录")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
public CommonResult<MqttRecordRespVO> getMqttRecord(@RequestParam("id") Long id) {
|
||||
MqttRecordDO mqttRecord = mqttRecordService.getMqttRecord(id);
|
||||
return success(BeanUtils.toBean(mqttRecord, MqttRecordRespVO.class));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue