| | |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | @ApiModel("疫苗分类列表请求参数") |
| | |
| | | |
| | | @ApiModelProperty("疫苗名称") |
| | | private String vaccines; |
| | | |
| | | @ApiModelProperty("导出id集合") |
| | | private List<Long> ids; |
| | | } |
| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | @ApiModel("疫苗接种记录请求参数") |
| | | public class VaccinesInoculationByAdminDTO { |
| | |
| | | |
| | | @ApiModelProperty("接种剂次") |
| | | private String dosage; |
| | | |
| | | @ApiModelProperty("导出id集合") |
| | | private List<Long> ids; |
| | | } |
| | |
| | | "<if test='vaccinesByAdminDTO.communityId != null'>" + |
| | | " and cmver.community_id = #{vaccinesByAdminDTO.communityId} "+ |
| | | " </if> " + |
| | | "<if test='inoculationByAdminDTO.ids != null and inoculationByAdminDTO.ids.size > 0'>" + |
| | | " and cmvir.id in " + |
| | | "<foreach item=\"item\" collection=\"inoculationByAdminDTO.ids\" separator=\",\" open=\"(\" close=\")\" index=\"\"> \n" + |
| | | "#{item}" + |
| | | "</foreach>" + |
| | | " </if> " + |
| | | "<if test='vaccinesByAdminDTO.vaccines != null and vaccinesByAdminDTO.vaccines != ""'>" + |
| | | " and cmv.name = #{vaccinesByAdminDTO.vaccines} "+ |
| | | " </if> " + |
| | |
| | | "<if test='inoculationByAdminDTO.communityId != null'>" + |
| | | " and cmvir.community_id = #{inoculationByAdminDTO.communityId} "+ |
| | | " </if> " + |
| | | "<if test='inoculationByAdminDTO.ids != null and inoculationByAdminDTO.ids.size > 0'>" + |
| | | " and cmvir.id in " + |
| | | "<foreach item=\"item\" collection=\"inoculationByAdminDTO.ids\" separator=\",\" open=\"(\" close=\")\" index=\"\"> \n" + |
| | | "#{item}" + |
| | | "</foreach>" + |
| | | " </if> " + |
| | | "<if test='inoculationByAdminDTO.name != null and inoculationByAdminDTO.name != ""'>" + |
| | | " and cmvir.name like concat('%',#{inoculationByAdminDTO.name},'%') "+ |
| | | " </if> " + |
| | |
| | | if(comCvtServeDOS.size()==0 && errorInfo != null && errorInfo.size() > 0){ |
| | | return R.fail("导入失败:" + errorInfo.toString()); |
| | | } |
| | | }else { |
| | | return R.fail("导入失败:" + errorInfo.toString()); |
| | | } |
| | | return R.ok("共计导入服务数量:"+comCvtServeDOS.size()); |
| | | } |