From 436f5e64b90c252c3cee55de33327e792e0244a8 Mon Sep 17 00:00:00 2001 From: wu Date: Thu, 14 Mar 2024 15:02:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mudu/controller/ASafeRwfjController.java | 105 ++++++++++++++++++ .../controller/ASafeZcrwwzController.java | 105 ++++++++++++++++++ src/main/java/com/mudu/entity/ASafeRwfj.java | 93 ++++++++++++++++ .../java/com/mudu/entity/ASafeZcrwwz.java | 78 +++++++++++++ .../java/com/mudu/mapper/ASafeRwfjMapper.java | 15 +++ .../com/mudu/mapper/ASafeZcrwwzMapper.java | 15 +++ .../com/mudu/service/ASafeRwfjService.java | 15 +++ .../com/mudu/service/ASafeZcrwwzService.java | 15 +++ .../service/impl/ASafeRwfjServiceImpl.java | 19 ++++ .../service/impl/ASafeZcrwwzServiceImpl.java | 19 ++++ 10 files changed, 479 insertions(+) create mode 100644 src/main/java/com/mudu/controller/ASafeRwfjController.java create mode 100644 src/main/java/com/mudu/controller/ASafeZcrwwzController.java create mode 100644 src/main/java/com/mudu/entity/ASafeRwfj.java create mode 100644 src/main/java/com/mudu/entity/ASafeZcrwwz.java create mode 100644 src/main/java/com/mudu/mapper/ASafeRwfjMapper.java create mode 100644 src/main/java/com/mudu/mapper/ASafeZcrwwzMapper.java create mode 100644 src/main/java/com/mudu/service/ASafeRwfjService.java create mode 100644 src/main/java/com/mudu/service/ASafeZcrwwzService.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeRwfjServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeZcrwwzServiceImpl.java diff --git a/src/main/java/com/mudu/controller/ASafeRwfjController.java b/src/main/java/com/mudu/controller/ASafeRwfjController.java new file mode 100644 index 0000000..f9f6896 --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeRwfjController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.common.core.controller.BaseController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.core.domain.AjaxResult; +import com.mudu.entity.ASafeRwfj; +import com.mudu.service.ASafeRwfjService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * (ASafeRwfj)表控制层 + * + * @author wu + * @since 2024-03-14 15:01:08 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeRwfj") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeRwfjController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeRwfjService aSafeRwfjService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeRwfj 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeRwfj.class) + public AjaxResult page(Page page, ASafeRwfj aSafeRwfj) { + return success(aSafeRwfjService.page(page, new QueryWrapper<>(aSafeRwfj))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeRwfj.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeRwfjService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeRwfj 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeRwfj.class) + public AjaxResult insert(@RequestBody ASafeRwfj aSafeRwfj) { + return success(aSafeRwfjService.save(aSafeRwfj)); + } + + /** + * 修改数据 + * + * @param aSafeRwfj 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeRwfj aSafeRwfj) { + return success(aSafeRwfjService.updateById(aSafeRwfj)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeRwfjService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/controller/ASafeZcrwwzController.java b/src/main/java/com/mudu/controller/ASafeZcrwwzController.java new file mode 100644 index 0000000..d8a7d4f --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeZcrwwzController.java @@ -0,0 +1,105 @@ +package com.mudu.controller; + + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.common.core.controller.BaseController; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.core.domain.AjaxResult; +import com.mudu.entity.ASafeZcrwwz; +import com.mudu.service.ASafeZcrwwzService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.io.Serializable; +import java.util.List; + +/** + * (ASafeZcrwwz)表控制层 + * + * @author wu + * @since 2024-03-14 15:01:08 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeZcrwwz") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeZcrwwzController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeZcrwwzService aSafeZcrwwzService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeZcrwwz 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeZcrwwz.class) + public AjaxResult page(Page page, ASafeZcrwwz aSafeZcrwwz) { + return success(aSafeZcrwwzService.page(page, new QueryWrapper<>(aSafeZcrwwz))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeZcrwwz.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeZcrwwzService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeZcrwwz 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeZcrwwz.class) + public AjaxResult insert(@RequestBody ASafeZcrwwz aSafeZcrwwz) { + return success(aSafeZcrwwzService.save(aSafeZcrwwz)); + } + + /** + * 修改数据 + * + * @param aSafeZcrwwz 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeZcrwwz aSafeZcrwwz) { + return success(aSafeZcrwwzService.updateById(aSafeZcrwwz)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeZcrwwzService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/entity/ASafeRwfj.java b/src/main/java/com/mudu/entity/ASafeRwfj.java new file mode 100644 index 0000000..1232396 --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeRwfj.java @@ -0,0 +1,93 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeRwfj)表实体类 + * + * @author wu + * @since 2024-03-14 15:01:09 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_rwfj") +public class ASafeRwfj implements Serializable { + + private static final long serialVersionUID = -43623425794151878L; + private String xxbh; + /** + * 附件类型 + */ + @ApiModelProperty(value = "附件类型") + private String fjlx; + /** + * 附件名称 + */ + @ApiModelProperty(value = "附件名称") + private String fjmc; + /** + * 附件后缀 + */ + @ApiModelProperty(value = "附件后缀") + private String fjhz; + /** + * 附件描述 + */ + @ApiModelProperty(value = "附件描述") + private String fjms; + /** + * 附件地址 + */ + @ApiModelProperty(value = "附件地址") + private String fjdz; + /** + * 文件类型 + */ + @ApiModelProperty(value = "文件类型") + private String wjlx; + /** + * 关联父级编号 + */ + @ApiModelProperty(value = "关联父级编号") + private String pid; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; + /** + * 显示顺序 + */ + @ApiModelProperty(value = "显示顺序") + private Integer xssx; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 更新人员 + */ + @ApiModelProperty(value = "更新人员") + private String gxry; +} + diff --git a/src/main/java/com/mudu/entity/ASafeZcrwwz.java b/src/main/java/com/mudu/entity/ASafeZcrwwz.java new file mode 100644 index 0000000..93b1d9f --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeZcrwwz.java @@ -0,0 +1,78 @@ +package com.mudu.entity; + +import java.util.Date; + +import java.io.Serializable; + +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.TableField; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiModel; +import lombok.Data; + + +/** + * (ASafeZcrwwz)表实体类 + * + * @author wu + * @since 2024-03-14 15:01:08 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_zcrwwz") +public class ASafeZcrwwz implements Serializable { + + private static final long serialVersionUID = -97821546242055725L; + private String xxbh; + /** + * 周期编号 + */ + @ApiModelProperty(value = "周期编号") + private String zqbh; + /** + * 市风险点编号 + */ + @ApiModelProperty(value = "市风险点编号") + private String sfxdbh; + /** + * 任务编号 + */ + @ApiModelProperty(value = "任务编号") + private String rwbh; + /** + * 企业编号 + */ + @ApiModelProperty(value = "企业编号") + private String qybh; + /** + * 位置编号 + */ + @ApiModelProperty(value = "位置编号") + private String wzbh; + /** + * 入库时间 + */ + @ApiModelProperty(value = "入库时间") + private Date rksj; + /** + * 入库人员 + */ + @ApiModelProperty(value = "入库人员") + private String rkry; + /** + * 更新时间 + */ + @ApiModelProperty(value = "更新时间") + private Date gxsj; + /** + * 更新人员 + */ + @ApiModelProperty(value = "更新人员") + private String gxry; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; +} + diff --git a/src/main/java/com/mudu/mapper/ASafeRwfjMapper.java b/src/main/java/com/mudu/mapper/ASafeRwfjMapper.java new file mode 100644 index 0000000..abb8e0f --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeRwfjMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeRwfj; + +/** + * (ASafeRwfj)表数据库访问层 + * + * @author wu + * @since 2024-03-14 15:01:09 + */ +public interface ASafeRwfjMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/ASafeZcrwwzMapper.java b/src/main/java/com/mudu/mapper/ASafeZcrwwzMapper.java new file mode 100644 index 0000000..4b1c2d0 --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeZcrwwzMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeZcrwwz; + +/** + * (ASafeZcrwwz)表数据库访问层 + * + * @author wu + * @since 2024-03-14 15:01:08 + */ +public interface ASafeZcrwwzMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/service/ASafeRwfjService.java b/src/main/java/com/mudu/service/ASafeRwfjService.java new file mode 100644 index 0000000..e080b47 --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeRwfjService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeRwfj; + +/** + * (ASafeRwfj)表服务接口 + * + * @author wu + * @since 2024-03-14 15:01:09 + */ +public interface ASafeRwfjService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/ASafeZcrwwzService.java b/src/main/java/com/mudu/service/ASafeZcrwwzService.java new file mode 100644 index 0000000..36131cd --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeZcrwwzService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeZcrwwz; + +/** + * (ASafeZcrwwz)表服务接口 + * + * @author wu + * @since 2024-03-14 15:01:08 + */ +public interface ASafeZcrwwzService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeRwfjServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeRwfjServiceImpl.java new file mode 100644 index 0000000..e322b98 --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeRwfjServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeRwfjMapper; +import com.mudu.entity.ASafeRwfj; +import com.mudu.service.ASafeRwfjService; +import org.springframework.stereotype.Service; + +/** + * (ASafeRwfj)表服务实现类 + * + * @author wu + * @since 2024-03-14 15:01:09 + */ +@Service("aSafeRwfjService") +public class ASafeRwfjServiceImpl extends ServiceImpl implements ASafeRwfjService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeZcrwwzServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeZcrwwzServiceImpl.java new file mode 100644 index 0000000..506b01e --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeZcrwwzServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeZcrwwzMapper; +import com.mudu.entity.ASafeZcrwwz; +import com.mudu.service.ASafeZcrwwzService; +import org.springframework.stereotype.Service; + +/** + * (ASafeZcrwwz)表服务实现类 + * + * @author wu + * @since 2024-03-14 15:01:08 + */ +@Service("aSafeZcrwwzService") +public class ASafeZcrwwzServiceImpl extends ServiceImpl implements ASafeZcrwwzService { + +} +