diff --git a/cs-device/cs-device-api/src/main/java/com/njcn/csdevice/pojo/po/CsSoftInfoPO.java b/cs-device/cs-device-api/src/main/java/com/njcn/csdevice/pojo/po/CsSoftInfoPO.java new file mode 100644 index 0000000..0774035 --- /dev/null +++ b/cs-device/cs-device-api/src/main/java/com/njcn/csdevice/pojo/po/CsSoftInfoPO.java @@ -0,0 +1,61 @@ +package com.njcn.csdevice.pojo.po; + +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + *
+ * 系统软件表 + *
+ * + * @author xuyang + * @since 2023-05-17 + */ +@Data +@TableName("cs_soft_info") +public class CsSoftInfoPO implements Serializable { + + private static final long serialVersionUID = 1L; + + private String id; + + /** + * 读写操作属性:“r” + */ + private String opAttr; + + /** + * 操作系统名称,裸机系统填Null + */ + private String osName; + + /** + * 操作系统版本,裸机系统填Null + */ + private String osVersion; + + /** + * 应用程序版本号 + */ + private String appVersion; + + /** + * 应用程序发布日期 + */ + private LocalDateTime appDate; + + /** + * 应用程序校验码 + */ + private String appCheck; + + /** + * 是否支持远程升级程序 + */ + private String softUpdate; + + +} diff --git a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/controller/equipment/CsSoftInfoController.java b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/controller/equipment/CsSoftInfoController.java new file mode 100644 index 0000000..47d8054 --- /dev/null +++ b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/controller/equipment/CsSoftInfoController.java @@ -0,0 +1,52 @@ +package com.njcn.csdevice.controller.equipment; + + +import com.njcn.access.pojo.po.CsSoftInfoPO; +import com.njcn.common.pojo.annotation.OperateInfo; +import com.njcn.common.pojo.enums.common.LogEnum; +import com.njcn.common.pojo.enums.response.CommonResponseEnum; +import com.njcn.common.pojo.response.HttpResult; +import com.njcn.common.utils.HttpResultUtil; +import com.njcn.csdevice.mapper.CsSoftInfoMapper; +import com.njcn.web.controller.BaseController; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiOperation; +import lombok.AllArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +/** + *+ * 系统软件表 前端控制器 + *
+ * + * @author xuyang + * @since 2023-08-09 + */ +@Slf4j +@RestController +@RequestMapping("/csSoftInfo") +@Api(tags = "装置程序信息") +@AllArgsConstructor +@Validated +public class CsSoftInfoController extends BaseController { + + private final CsSoftInfoMapper csSoftInfoMapper; + + @OperateInfo(info = LogEnum.BUSINESS_COMMON) + @PostMapping("/findSoftInfo") + @ApiOperation("获取程序软件信息") + @ApiImplicitParam(name = "id", value = "id", required = true) + public HttpResult+ * 系统软件表 Mapper 接口 + *
+ * + * @author xuyang + * @since 2023-08-09 + */ +public interface CsSoftInfoMapper extends BaseMapper+ * 系统软件表 服务类 + *
+ * + * @author xuyang + * @since 2023-08-09 + */ +public interface ICsSoftInfoService extends IService