parent
8071b8069c
commit
436f5e64b9
@ -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<ASafeRwfj> 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<Long> idList) {
|
||||||
|
return success(aSafeRwfjService.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.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<ASafeZcrwwz> 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<Long> idList) {
|
||||||
|
return success(aSafeZcrwwzService.removeByIds(idList));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
@ -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<ASafeRwfj> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -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<ASafeZcrwwz> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -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<ASafeRwfj> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -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<ASafeZcrwwz> {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -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<ASafeRwfjMapper, ASafeRwfj> implements ASafeRwfjService {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -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<ASafeZcrwwzMapper, ASafeZcrwwz> implements ASafeZcrwwzService {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in new issue