main
吴顺杰 12 months ago
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…
Cancel
Save