From 4d00fbae5f7cb417e3a9491337b80c98df9a7b04 Mon Sep 17 00:00:00 2001 From: wu Date: Thu, 14 Mar 2024 15:58:53 +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 --- .../controller/ASafeXcrwwzController.java | 105 ++++++++++++++++++ .../controller/SzsASafeZcyhxxController.java | 105 ++++++++++++++++++ .../java/com/mudu/entity/ASafeXcrwwz.java | 78 +++++++++++++ .../java/com/mudu/entity/SzsASafeZcyhxx.java | 93 ++++++++++++++++ .../com/mudu/mapper/ASafeXcrwwzMapper.java | 15 +++ .../com/mudu/mapper/SzsASafeZcyhxxMapper.java | 15 +++ .../com/mudu/service/ASafeXcrwwzService.java | 15 +++ .../mudu/service/SzsASafeZcyhxxService.java | 15 +++ .../service/impl/ASafeXcrwwzServiceImpl.java | 19 ++++ .../impl/SzsASafeZcyhxxServiceImpl.java | 19 ++++ 10 files changed, 479 insertions(+) create mode 100644 src/main/java/com/mudu/controller/ASafeXcrwwzController.java create mode 100644 src/main/java/com/mudu/controller/SzsASafeZcyhxxController.java create mode 100644 src/main/java/com/mudu/entity/ASafeXcrwwz.java create mode 100644 src/main/java/com/mudu/entity/SzsASafeZcyhxx.java create mode 100644 src/main/java/com/mudu/mapper/ASafeXcrwwzMapper.java create mode 100644 src/main/java/com/mudu/mapper/SzsASafeZcyhxxMapper.java create mode 100644 src/main/java/com/mudu/service/ASafeXcrwwzService.java create mode 100644 src/main/java/com/mudu/service/SzsASafeZcyhxxService.java create mode 100644 src/main/java/com/mudu/service/impl/ASafeXcrwwzServiceImpl.java create mode 100644 src/main/java/com/mudu/service/impl/SzsASafeZcyhxxServiceImpl.java diff --git a/src/main/java/com/mudu/controller/ASafeXcrwwzController.java b/src/main/java/com/mudu/controller/ASafeXcrwwzController.java new file mode 100644 index 0000000..6bf0a70 --- /dev/null +++ b/src/main/java/com/mudu/controller/ASafeXcrwwzController.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.ASafeXcrwwz; +import com.mudu.service.ASafeXcrwwzService; +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; + +/** + * (ASafeXcrwwz)表控制层 + * + * @author wu + * @since 2024-03-14 15:58:29 + */ +@RestController +@RequestMapping("pharmaceuticals/aSafeXcrwwz") +@Api(tags = "") +@Transactional(rollbackFor = Exception.class) +public class ASafeXcrwwzController extends BaseController { + /** + * 服务对象 + */ + @Resource + private ASafeXcrwwzService aSafeXcrwwzService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param aSafeXcrwwz 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询", response = ASafeXcrwwz.class) + public AjaxResult page(Page page, ASafeXcrwwz aSafeXcrwwz) { + return success(aSafeXcrwwzService.page(page, new QueryWrapper<>(aSafeXcrwwz))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条", response = ASafeXcrwwz.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(aSafeXcrwwzService.getById(id)); + } + + /** + * 新增数据 + * + * @param aSafeXcrwwz 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增", response = ASafeXcrwwz.class) + public AjaxResult insert(@RequestBody ASafeXcrwwz aSafeXcrwwz) { + return success(aSafeXcrwwzService.save(aSafeXcrwwz)); + } + + /** + * 修改数据 + * + * @param aSafeXcrwwz 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改") + public AjaxResult update(@RequestBody ASafeXcrwwz aSafeXcrwwz) { + return success(aSafeXcrwwzService.updateById(aSafeXcrwwz)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(aSafeXcrwwzService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/controller/SzsASafeZcyhxxController.java b/src/main/java/com/mudu/controller/SzsASafeZcyhxxController.java new file mode 100644 index 0000000..cc7a2d7 --- /dev/null +++ b/src/main/java/com/mudu/controller/SzsASafeZcyhxxController.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.SzsASafeZcyhxx; +import com.mudu.service.SzsASafeZcyhxxService; +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; + +/** + * 自查任务隐患/整改(SzsASafeZcyhxx)表控制层 + * + * @author wu + * @since 2024-03-14 15:58:30 + */ +@RestController +@RequestMapping("pharmaceuticals/szsASafeZcyhxx") +@Api(tags = "自查任务隐患/整改") +@Transactional(rollbackFor = Exception.class) +public class SzsASafeZcyhxxController extends BaseController { + /** + * 服务对象 + */ + @Resource + private SzsASafeZcyhxxService szsASafeZcyhxxService; + + /** + * 分页条件查询所有数据 + * + * @param page 分页条件 + * @param szsASafeZcyhxx 查询条件 + * @return 所有数据 + */ + @GetMapping + @ApiOperation(value = "分页条件查询自查任务隐患/整改", response = SzsASafeZcyhxx.class) + public AjaxResult page(Page page, SzsASafeZcyhxx szsASafeZcyhxx) { + return success(szsASafeZcyhxxService.page(page, new QueryWrapper<>(szsASafeZcyhxx))); + } + + /** + * 通过主键查询单条数据 + * + * @param id 主键 + * @return 单条数据 + */ + @GetMapping("{id}") + @ApiOperation(value = "通过主键查询单条自查任务隐患/整改", response = SzsASafeZcyhxx.class) + public AjaxResult getById(@PathVariable Serializable id) { + return success(szsASafeZcyhxxService.getById(id)); + } + + /** + * 新增数据 + * + * @param szsASafeZcyhxx 实体对象 + * @return 新增结果 + */ + @PostMapping + @ApiOperation(value = "新增自查任务隐患/整改", response = SzsASafeZcyhxx.class) + public AjaxResult insert(@RequestBody SzsASafeZcyhxx szsASafeZcyhxx) { + return success(szsASafeZcyhxxService.save(szsASafeZcyhxx)); + } + + /** + * 修改数据 + * + * @param szsASafeZcyhxx 实体对象 + * @return 修改结果 + */ + @PutMapping + @ApiOperation(value = "修改自查任务隐患/整改") + public AjaxResult update(@RequestBody SzsASafeZcyhxx szsASafeZcyhxx) { + return success(szsASafeZcyhxxService.updateById(szsASafeZcyhxx)); + } + + /** + * 删除数据 + * + * @param idList 主键集合 + * @return 删除结果 + */ + @DeleteMapping + @ApiOperation(value = "删除自查任务隐患/整改") + public AjaxResult delete(@RequestParam("idList") List idList) { + return success(szsASafeZcyhxxService.removeByIds(idList)); + } +} + diff --git a/src/main/java/com/mudu/entity/ASafeXcrwwz.java b/src/main/java/com/mudu/entity/ASafeXcrwwz.java new file mode 100644 index 0000000..158c618 --- /dev/null +++ b/src/main/java/com/mudu/entity/ASafeXcrwwz.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; + + +/** + * (ASafeXcrwwz)表实体类 + * + * @author wu + * @since 2024-03-14 15:58:30 + */ +@Data +@ApiModel("实体类") +@TableName(value = "a_safe_xcrwwz") +public class ASafeXcrwwz implements Serializable { + + private static final long serialVersionUID = 900966560903431961L; + private String xxbh; + /** + * 周期编号 + */ + @ApiModelProperty(value = "周期编号") + private String zqbh; + /** + * 任务编号 + */ + @ApiModelProperty(value = "任务编号") + private String rwbh; + /** + * 位置编号 + */ + @ApiModelProperty(value = "位置编号") + private String wzbh; + /** + * 位置名称 + */ + @ApiModelProperty(value = "位置名称") + private String wzmc; + /** + * 完成状态 + */ + @ApiModelProperty(value = "完成状态") + private Integer wczt; + /** + * 入库时间 + */ + @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/entity/SzsASafeZcyhxx.java b/src/main/java/com/mudu/entity/SzsASafeZcyhxx.java new file mode 100644 index 0000000..2641571 --- /dev/null +++ b/src/main/java/com/mudu/entity/SzsASafeZcyhxx.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; + + +/** + * 自查任务隐患/整改(SzsASafeZcyhxx)表实体类 + * + * @author wu + * @since 2024-03-14 15:58:30 + */ +@Data +@ApiModel("自查任务隐患/整改实体类") +@TableName(value = "szs_asafe_zcyhxx") +public class SzsASafeZcyhxx implements Serializable { + + private static final long serialVersionUID = 853846530969964611L; + private String xxbh; + /** + * 周期编号 + */ + @ApiModelProperty(value = "周期编号") + private String zqbh; + /** + * 任务编号 + */ + @ApiModelProperty(value = "任务编号") + private String rwbh; + /** + * 巡查检查项编号 + */ + @ApiModelProperty(value = "巡查检查项编号") + private String xcjcxbh; + /** + * 描述 + */ + @ApiModelProperty(value = "描述") + private String ms; + /** + * 数据来源 + */ + @ApiModelProperty(value = "数据来源") + private String sjlx; + /** + * 时间 + */ + @ApiModelProperty(value = "时间") + private Date sj; + /** + * 是否合格 + */ + @ApiModelProperty(value = "是否合格") + private Integer sfhg; + /** + * 到期日期 + */ + @ApiModelProperty(value = "到期日期") + private Date dqrq; + /** + * 记录状态 + */ + @ApiModelProperty(value = "记录状态") + private Integer jlzt; + /** + * 入库时间 + */ + @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/mapper/ASafeXcrwwzMapper.java b/src/main/java/com/mudu/mapper/ASafeXcrwwzMapper.java new file mode 100644 index 0000000..b0e5b9c --- /dev/null +++ b/src/main/java/com/mudu/mapper/ASafeXcrwwzMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.ASafeXcrwwz; + +/** + * (ASafeXcrwwz)表数据库访问层 + * + * @author wu + * @since 2024-03-14 15:58:29 + */ +public interface ASafeXcrwwzMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/mapper/SzsASafeZcyhxxMapper.java b/src/main/java/com/mudu/mapper/SzsASafeZcyhxxMapper.java new file mode 100644 index 0000000..fc0f749 --- /dev/null +++ b/src/main/java/com/mudu/mapper/SzsASafeZcyhxxMapper.java @@ -0,0 +1,15 @@ +package com.mudu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mudu.entity.SzsASafeZcyhxx; + +/** + * 自查任务隐患/整改(SzsASafeZcyhxx)表数据库访问层 + * + * @author wu + * @since 2024-03-14 15:58:30 + */ +public interface SzsASafeZcyhxxMapper extends BaseMapper { + +} + diff --git a/src/main/java/com/mudu/service/ASafeXcrwwzService.java b/src/main/java/com/mudu/service/ASafeXcrwwzService.java new file mode 100644 index 0000000..7a5fb7a --- /dev/null +++ b/src/main/java/com/mudu/service/ASafeXcrwwzService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.ASafeXcrwwz; + +/** + * (ASafeXcrwwz)表服务接口 + * + * @author wu + * @since 2024-03-14 15:58:30 + */ +public interface ASafeXcrwwzService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/SzsASafeZcyhxxService.java b/src/main/java/com/mudu/service/SzsASafeZcyhxxService.java new file mode 100644 index 0000000..732fe6e --- /dev/null +++ b/src/main/java/com/mudu/service/SzsASafeZcyhxxService.java @@ -0,0 +1,15 @@ +package com.mudu.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mudu.entity.SzsASafeZcyhxx; + +/** + * 自查任务隐患/整改(SzsASafeZcyhxx)表服务接口 + * + * @author wu + * @since 2024-03-14 15:58:30 + */ +public interface SzsASafeZcyhxxService extends IService { + +} + diff --git a/src/main/java/com/mudu/service/impl/ASafeXcrwwzServiceImpl.java b/src/main/java/com/mudu/service/impl/ASafeXcrwwzServiceImpl.java new file mode 100644 index 0000000..40e391d --- /dev/null +++ b/src/main/java/com/mudu/service/impl/ASafeXcrwwzServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.ASafeXcrwwzMapper; +import com.mudu.entity.ASafeXcrwwz; +import com.mudu.service.ASafeXcrwwzService; +import org.springframework.stereotype.Service; + +/** + * (ASafeXcrwwz)表服务实现类 + * + * @author wu + * @since 2024-03-14 15:58:30 + */ +@Service("aSafeXcrwwzService") +public class ASafeXcrwwzServiceImpl extends ServiceImpl implements ASafeXcrwwzService { + +} + diff --git a/src/main/java/com/mudu/service/impl/SzsASafeZcyhxxServiceImpl.java b/src/main/java/com/mudu/service/impl/SzsASafeZcyhxxServiceImpl.java new file mode 100644 index 0000000..04dd941 --- /dev/null +++ b/src/main/java/com/mudu/service/impl/SzsASafeZcyhxxServiceImpl.java @@ -0,0 +1,19 @@ +package com.mudu.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mudu.mapper.SzsASafeZcyhxxMapper; +import com.mudu.entity.SzsASafeZcyhxx; +import com.mudu.service.SzsASafeZcyhxxService; +import org.springframework.stereotype.Service; + +/** + * 自查任务隐患/整改(SzsASafeZcyhxx)表服务实现类 + * + * @author wu + * @since 2024-03-14 15:58:30 + */ +@Service("szsASafeZcyhxxService") +public class SzsASafeZcyhxxServiceImpl extends ServiceImpl implements SzsASafeZcyhxxService { + +} +