parent
a5e7680c96
commit
4d00fbae5f
@ -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<ASafeXcrwwz> 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<Long> idList) {
|
||||
return success(aSafeXcrwwzService.removeByIds(idList));
|
||||
}
|
||||
}
|
||||
|
@ -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<SzsASafeZcyhxx> 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<Long> idList) {
|
||||
return success(szsASafeZcyhxxService.removeByIds(idList));
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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<ASafeXcrwwz> {
|
||||
|
||||
}
|
||||
|
@ -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<SzsASafeZcyhxx> {
|
||||
|
||||
}
|
||||
|
@ -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<ASafeXcrwwz> {
|
||||
|
||||
}
|
||||
|
@ -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<SzsASafeZcyhxx> {
|
||||
|
||||
}
|
||||
|
@ -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<ASafeXcrwwzMapper, ASafeXcrwwz> implements ASafeXcrwwzService {
|
||||
|
||||
}
|
||||
|
@ -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<SzsASafeZcyhxxMapper, SzsASafeZcyhxx> implements SzsASafeZcyhxxService {
|
||||
|
||||
}
|
||||
|
Loading…
Reference in new issue