|
@ -60,8 +60,9 @@ public class IcPointVaccinesInoculationController { |
|
|
private IcPointVaccinesInoculationDao icPointVaccinesInoculationDao; |
|
|
private IcPointVaccinesInoculationDao icPointVaccinesInoculationDao; |
|
|
|
|
|
|
|
|
@RequestMapping("page") |
|
|
@RequestMapping("page") |
|
|
public Result<PageData<IcPointVaccinesInoculationDTO>> page(@RequestParam Map<String, Object> params){ |
|
|
public Result<PageData<IcPointVaccinesInoculationDTO>> page(@RequestParam Map<String, Object> params, @LoginUser TokenDto tokenDto){ |
|
|
// PageData<IcPointVaccinesInoculationDTO> page = icPointVaccinesInoculationService.page(params);
|
|
|
// PageData<IcPointVaccinesInoculationDTO> page = icPointVaccinesInoculationService.page(params);
|
|
|
|
|
|
params.put("customerId",tokenDto.getCustomerId()); |
|
|
PageData<IcPointVaccinesInoculationDTO> page = icPointVaccinesInoculationService.getPhrasePage(params); |
|
|
PageData<IcPointVaccinesInoculationDTO> page = icPointVaccinesInoculationService.getPhrasePage(params); |
|
|
return new Result<PageData<IcPointVaccinesInoculationDTO>>().ok(page); |
|
|
return new Result<PageData<IcPointVaccinesInoculationDTO>>().ok(page); |
|
|
} |
|
|
} |
|
@ -74,18 +75,20 @@ public class IcPointVaccinesInoculationController { |
|
|
|
|
|
|
|
|
@NoRepeatSubmit |
|
|
@NoRepeatSubmit |
|
|
@PostMapping() |
|
|
@PostMapping() |
|
|
public Result save(@RequestBody IcPointVaccinesInoculationDTO dto){ |
|
|
public Result save(@RequestBody IcPointVaccinesInoculationDTO dto, @LoginUser TokenDto tokenDto){ |
|
|
//效验数据
|
|
|
//效验数据
|
|
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|
|
|
|
|
dto.setCustomerId(tokenDto.getCustomerId()); |
|
|
icPointVaccinesInoculationService.save(dto); |
|
|
icPointVaccinesInoculationService.save(dto); |
|
|
return new Result(); |
|
|
return new Result(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@NoRepeatSubmit |
|
|
@NoRepeatSubmit |
|
|
@PutMapping() |
|
|
@PutMapping() |
|
|
public Result update(@RequestBody IcPointVaccinesInoculationDTO dto){ |
|
|
public Result update(@RequestBody IcPointVaccinesInoculationDTO dto, @LoginUser TokenDto tokenDto){ |
|
|
//效验数据
|
|
|
//效验数据
|
|
|
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|
|
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|
|
|
|
|
dto.setCustomerId(tokenDto.getCustomerId()); |
|
|
icPointVaccinesInoculationService.update(dto); |
|
|
icPointVaccinesInoculationService.update(dto); |
|
|
return new Result(); |
|
|
return new Result(); |
|
|
} |
|
|
} |
|
|