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