|
@ -1,7 +1,10 @@ |
|
|
package com.epmet.controller; |
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
|
|
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
|
|
|
|
|
import com.epmet.commons.tools.dto.form.PageFormDTO; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.validator.AssertUtils; |
|
|
import com.epmet.commons.tools.validator.AssertUtils; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
@ -9,10 +12,16 @@ import com.epmet.commons.tools.validator.group.AddGroup; |
|
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|
|
import com.epmet.dto.IcEpidemicSpecialAttentionDTO; |
|
|
import com.epmet.dto.IcEpidemicSpecialAttentionDTO; |
|
|
|
|
|
import com.epmet.dto.form.CancelAttentionFormDTO; |
|
|
|
|
|
import com.epmet.dto.form.NatListFormDTO; |
|
|
|
|
|
import com.epmet.dto.form.VaccinationAddFormDTO; |
|
|
|
|
|
import com.epmet.dto.form.VaccinationListFormDTO; |
|
|
import com.epmet.service.IcEpidemicSpecialAttentionService; |
|
|
import com.epmet.service.IcEpidemicSpecialAttentionService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
import java.util.Map; |
|
|
import java.util.Map; |
|
|
|
|
|
|
|
@ -68,6 +77,131 @@ public class IcEpidemicSpecialAttentionController { |
|
|
return new Result(); |
|
|
return new Result(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Desc: 【疫苗接种关注名单】列表 |
|
|
|
|
|
* @param formDTO |
|
|
|
|
|
* @author zxc |
|
|
|
|
|
* @date 2022/3/28 10:29 |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("vaccination-list") |
|
|
|
|
|
public Result<PageData> vaccinationList(@RequestBody VaccinationListFormDTO formDTO, @LoginUser TokenDto tokenDto){ |
|
|
|
|
|
ValidatorUtils.validateEntity(formDTO, PageFormDTO.AddUserInternalGroup.class); |
|
|
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
|
|
return new Result<PageData>().ok(icEpidemicSpecialAttentionService.vaccinationList(formDTO)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Desc: 【疫苗接种关注名单】列表 |
|
|
|
|
|
* @param formDTO |
|
|
|
|
|
* @param tokenDto |
|
|
|
|
|
* @author zxc |
|
|
|
|
|
* @date 2022/3/28 10:42 |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("nat-list") |
|
|
|
|
|
public Result<PageData> natList(@RequestBody NatListFormDTO formDTO,@LoginUser TokenDto tokenDto){ |
|
|
|
|
|
ValidatorUtils.validateEntity(formDTO, PageFormDTO.AddUserInternalGroup.class); |
|
|
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
|
|
return new Result<PageData>().ok(icEpidemicSpecialAttentionService.natList(formDTO)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Desc:【疫苗接种关注名单,核酸检测关注名单】新增 |
|
|
|
|
|
* @param list |
|
|
|
|
|
* @param tokenDto |
|
|
|
|
|
* @author zxc |
|
|
|
|
|
* @date 2022/3/28 13:35 |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("vaccination-add") |
|
|
|
|
|
public Result vaccinationAdd(@RequestBody List<IcEpidemicSpecialAttentionDTO> list,@LoginUser TokenDto tokenDto){ |
|
|
|
|
|
VaccinationAddFormDTO formDTO = new VaccinationAddFormDTO(); |
|
|
|
|
|
formDTO.setList(list); |
|
|
|
|
|
ValidatorUtils.validateEntity(formDTO, VaccinationAddFormDTO.VaccinationAddForm.class); |
|
|
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
|
|
icEpidemicSpecialAttentionService.vaccinationAdd(formDTO); |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Desc:【疫苗接种关注名单,核酸检测关注名单】修改 |
|
|
|
|
|
* @param formDTO |
|
|
|
|
|
* @author zxc |
|
|
|
|
|
* @date 2022/3/28 13:45 |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("vaccination-update") |
|
|
|
|
|
public Result vaccinationUpdate(@RequestBody IcEpidemicSpecialAttentionDTO formDTO){ |
|
|
|
|
|
icEpidemicSpecialAttentionService.vaccinationUpdate(formDTO); |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Desc: 取消关注 |
|
|
|
|
|
* @param list |
|
|
|
|
|
* @author zxc |
|
|
|
|
|
* @date 2022/3/28 13:51 |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("cancel-attention") |
|
|
|
|
|
public Result cancelAttention(@RequestBody List<CancelAttentionFormDTO> list){ |
|
|
|
|
|
icEpidemicSpecialAttentionService.cancelAttention(list); |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Desc: 【疫苗接种关注名单】导入 |
|
|
|
|
|
* @param |
|
|
|
|
|
* @author zxc |
|
|
|
|
|
* @date 2022/3/28 13:40 |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("vaccination-import") |
|
|
|
|
|
public Result vaccinationImport(@LoginUser TokenDto tokenDTO, @RequestParam("file") MultipartFile file){ |
|
|
|
|
|
|
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Desc: 【疫苗接种关注名单】导出 |
|
|
|
|
|
* @param response |
|
|
|
|
|
* @param formDTO |
|
|
|
|
|
* @param tokenDto |
|
|
|
|
|
* @author zxc |
|
|
|
|
|
* @date 2022/3/28 13:57 |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("vaccination-export") |
|
|
|
|
|
public void vaccinationExport(HttpServletResponse response,@RequestBody VaccinationListFormDTO formDTO, @LoginUser TokenDto tokenDto){ |
|
|
|
|
|
ValidatorUtils.validateEntity(formDTO, PageFormDTO.AddUserInternalGroup.class); |
|
|
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Desc: 【核酸检测关注名单】导入 |
|
|
|
|
|
* @param |
|
|
|
|
|
* @author zxc |
|
|
|
|
|
* @date 2022/3/28 13:40 |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("nat-import") |
|
|
|
|
|
public Result natImport(@LoginUser TokenDto tokenDTO, @RequestParam("file") MultipartFile file){ |
|
|
|
|
|
|
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Desc: 【核酸检测关注名单】导出 |
|
|
|
|
|
* @param response |
|
|
|
|
|
* @param formDTO |
|
|
|
|
|
* @param tokenDto |
|
|
|
|
|
* @author zxc |
|
|
|
|
|
* @date 2022/3/28 13:59 |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("nat-export") |
|
|
|
|
|
public void natExport(HttpServletResponse response,@RequestBody NatListFormDTO formDTO,@LoginUser TokenDto tokenDto){ |
|
|
|
|
|
ValidatorUtils.validateEntity(formDTO, PageFormDTO.AddUserInternalGroup.class); |
|
|
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|