diff --git a/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/controller/SolutionController.java b/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/controller/SolutionController.java new file mode 100644 index 0000000..381afc5 --- /dev/null +++ b/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/controller/SolutionController.java @@ -0,0 +1,39 @@ +package org.jeecg.modules.demo.yxgwf.controller; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; +import org.jeecg.common.api.vo.Result; +import org.jeecg.modules.demo.yxgwf.service.ISolutionService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +/** +* @Description: 行业解决方案 +* @Author: jeecg-boot +* @Date: 2023-05-17 +* @Version: V1.0 +*/ +@Api(tags="云息官网Web-行业解决方案") +@RestController +@RequestMapping("/yxgwf/solution") +@Slf4j +public class SolutionController { + @Autowired + private ISolutionService solutionService; + + @ApiOperation(value="行业列表", notes="行业列表") + @GetMapping("/name-list") + public Result getStr() { + return Result.OK(this.solutionService.query().select("id","name").list()); + } + + @ApiOperation(value="行业解决方案详情", notes="行业解决方案详情") + @GetMapping("/info") + public Result getInfo(@RequestParam(name="id",required=true) String id) { + return Result.OK(this.solutionService.query().eq("id",id).one()); + } +} diff --git a/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/entity/Solution.java b/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/entity/Solution.java new file mode 100644 index 0000000..82c454d --- /dev/null +++ b/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/entity/Solution.java @@ -0,0 +1,61 @@ +package org.jeecg.modules.demo.yxgwf.entity; + +import java.io.Serializable; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.springframework.format.annotation.DateTimeFormat; +import org.jeecgframework.poi.excel.annotation.Excel; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +/** + * @Description: 行业解决方案 + * @Author: jeecg-boot + * @Date: 2023-05-17 + * @Version: V1.0 + */ +@Data +@TableName("yxgw_solution") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="yxgw_solution对象", description="行业解决方案") +public class Solution implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + /**创建日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + /**更新日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + /**所属部门*/ + @ApiModelProperty(value = "所属部门") + private java.lang.String sysOrgCode; + /**所属行业*/ + @Excel(name = "所属行业", width = 15) + @ApiModelProperty(value = "所属行业") + private java.lang.String name; + /**方案内容*/ + @Excel(name = "方案内容", width = 15) + @ApiModelProperty(value = "方案内容") + private java.lang.String article; +} diff --git a/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/mapper/SolutionMapper.java b/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/mapper/SolutionMapper.java new file mode 100644 index 0000000..5a32b2e --- /dev/null +++ b/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/mapper/SolutionMapper.java @@ -0,0 +1,8 @@ +package org.jeecg.modules.demo.yxgwf.mapper; + + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.jeecg.modules.demo.yxgwf.entity.Solution; + +public interface SolutionMapper extends BaseMapper { +} diff --git a/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/mapper/xml/SolutionMapper.xml b/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/mapper/xml/SolutionMapper.xml new file mode 100644 index 0000000..8e84846 --- /dev/null +++ b/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/mapper/xml/SolutionMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/service/ISolutionService.java b/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/service/ISolutionService.java new file mode 100644 index 0000000..aac7c1a --- /dev/null +++ b/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/service/ISolutionService.java @@ -0,0 +1,7 @@ +package org.jeecg.modules.demo.yxgwf.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import org.jeecg.modules.demo.yxgwf.entity.Solution; + +public interface ISolutionService extends IService { +} diff --git a/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/service/impl/SolutionServiceImpl.java b/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/service/impl/SolutionServiceImpl.java new file mode 100644 index 0000000..e68ebaf --- /dev/null +++ b/linus-boot/linus-module-demo/src/main/java/org/jeecg/modules/demo/yxgwf/service/impl/SolutionServiceImpl.java @@ -0,0 +1,11 @@ +package org.jeecg.modules.demo.yxgwf.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.jeecg.modules.demo.yxgwf.entity.Solution; +import org.jeecg.modules.demo.yxgwf.mapper.SolutionMapper; +import org.jeecg.modules.demo.yxgwf.service.ISolutionService; +import org.springframework.stereotype.Service; + +@Service +public class SolutionServiceImpl extends ServiceImpl implements ISolutionService { +} diff --git a/linus-boot/linus-module-demo/target/classes/org/jeecg/modules/demo/yxgwf/mapper/xml/SolutionMapper.xml b/linus-boot/linus-module-demo/target/classes/org/jeecg/modules/demo/yxgwf/mapper/xml/SolutionMapper.xml new file mode 100644 index 0000000..8e84846 --- /dev/null +++ b/linus-boot/linus-module-demo/target/classes/org/jeecg/modules/demo/yxgwf/mapper/xml/SolutionMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file