| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yuanchu.limslaboratory.annotation.AuthHandler; |
| | | import com.yuanchu.limslaboratory.pojo.CnasAnnualPlan; |
| | | import com.yuanchu.limslaboratory.pojo.vo.CnasAnnualPlanVo; |
| | | import com.yuanchu.limslaboratory.service.CnasAnnualPlanService; |
| | |
| | | @ApiImplicitParam(name = "planTime", value = "检验开始时间", dataTypeClass = Date.class), |
| | | }) |
| | | @GetMapping("/selectAllList") |
| | | @AuthHandler |
| | | public Result selectAllList(Integer page, Integer pageSize, @DateTimeFormat(pattern = "yyyy-MM") Date planTime) { |
| | | IPage<CnasAnnualPlanVo> reportPage = cnasAnnualPlanService.selectAllList(new Page(page, pageSize), planTime); |
| | | Map<String, Object> map = new HashMap<>(); |
| | |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "CnasAnnualPlan", value = "审查对象", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @AuthHandler |
| | | public Result addCnasAnnualPlan(@RequestHeader("X-Token") String token, @RequestBody CnasAnnualPlan cnasAnnualPlan) throws Exception { |
| | | Object object = RedisUtil.get(token); |
| | | Map<String, Object> unmarshal = JackSonUtil.unmarshal(JackSonUtil.marshal(object), Map.class); |
| | |
| | | @ApiImplicitParam(name = "auditTime", value = "审核日期", dataTypeClass = Date.class, required = true), |
| | | @ApiImplicitParam(name = "file", value = "附件文件", dataTypeClass = MultipartFile.class, required = true) |
| | | }) |
| | | @AuthHandler |
| | | public Result addAccessory(@RequestHeader("X-Token") String token, Date auditTime, MultipartFile file) throws Exception { |
| | | //解析当前登录用户 |
| | | Object object = RedisUtil.get(token); |
| | |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "planId", value = "审核日期", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @AuthHandler |
| | | public Result deleteCnasAnnualPlan(Integer planId) { |
| | | Integer isDeleteSuccess = cnasAnnualPlanService.deleteCnasAnnualPlan(planId); |
| | | if (isDeleteSuccess == 1){ |