14 changed files with 462 additions and 21 deletions
@ -0,0 +1,123 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.elink.esua.epdc.vaccine.personroom.controller; |
||||
|
|
||||
|
import com.elink.esua.epdc.commons.tools.page.PageData; |
||||
|
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils; |
||||
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
||||
|
import com.elink.esua.epdc.commons.tools.validator.AssertUtils; |
||||
|
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; |
||||
|
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup; |
||||
|
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup; |
||||
|
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup; |
||||
|
import com.elink.esua.epdc.dto.epidemic.DictOptionDTO; |
||||
|
import com.elink.esua.epdc.dto.personroom.EpidemicPlotCoordinateDTO; |
||||
|
import com.elink.esua.epdc.dto.personroom.form.EpidemicPlotCoordinateFormDTO; |
||||
|
import com.elink.esua.epdc.dto.personroom.form.FamilyMemberInfoFormDTO; |
||||
|
import com.elink.esua.epdc.dto.personroom.form.GetHouseInfoFormDTO; |
||||
|
import com.elink.esua.epdc.dto.personroom.form.GetMemberListFormDTO; |
||||
|
import com.elink.esua.epdc.dto.personroom.result.EpidemicPlotCoordinateResultDTO; |
||||
|
import com.elink.esua.epdc.vaccine.epidemic.service.EpidemicUserInfoService; |
||||
|
import com.elink.esua.epdc.vaccine.personroom.excel.EpidemicPlotCoordinateExcel; |
||||
|
import com.elink.esua.epdc.vaccine.personroom.service.EpidemicBuildingUnitService; |
||||
|
import com.elink.esua.epdc.vaccine.personroom.service.EpidemicPlotCoordinateService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
import org.springframework.web.multipart.MultipartFile; |
||||
|
|
||||
|
import javax.servlet.http.HttpServletResponse; |
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 我的家庭 |
||||
|
* |
||||
|
* @author zhangyuan qu@elink-cn.com |
||||
|
* @since v1.0.0 2021-07-09 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("family") |
||||
|
public class AppFamilyController { |
||||
|
|
||||
|
@Autowired |
||||
|
private EpidemicUserInfoService epidemicUserInfoService; |
||||
|
|
||||
|
@Autowired |
||||
|
private EpidemicBuildingUnitService epidemicBuildingUnitService; |
||||
|
|
||||
|
/** |
||||
|
* 获取成员信息 |
||||
|
* |
||||
|
* @param formDTO |
||||
|
* @return |
||||
|
* @Author wanggongfeng |
||||
|
*/ |
||||
|
@GetMapping("getFamilyMember") |
||||
|
public Result getFamilyMember(@RequestBody GetMemberListFormDTO formDTO){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(formDTO, UpdateGroup.class, DefaultGroup.class); |
||||
|
return epidemicUserInfoService.getFamilyMember(formDTO); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增成员信息 |
||||
|
* |
||||
|
* @param formDTO |
||||
|
* @return |
||||
|
* @Author wanggongfeng |
||||
|
*/ |
||||
|
@PostMapping("addFamilyMember") |
||||
|
public Result addFamilyMember(@RequestBody FamilyMemberInfoFormDTO formDTO){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(formDTO, UpdateGroup.class, DefaultGroup.class); |
||||
|
return epidemicUserInfoService.addFamilyMember(formDTO); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改成员信息 |
||||
|
* |
||||
|
* @param formDTO |
||||
|
* @return |
||||
|
* @Author wanggongfeng |
||||
|
*/ |
||||
|
@PostMapping("updateFamilyMember") |
||||
|
public Result updateFamilyMember(@RequestBody FamilyMemberInfoFormDTO formDTO){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(formDTO, UpdateGroup.class, DefaultGroup.class); |
||||
|
return epidemicUserInfoService.updateFamilyMember(formDTO); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 获取房屋信息 |
||||
|
* |
||||
|
* @param formDTO |
||||
|
* @return |
||||
|
* @Author wanggongfeng |
||||
|
*/ |
||||
|
@GetMapping("getHouseInfo") |
||||
|
public Result getHouseInfo(@RequestBody GetHouseInfoFormDTO formDTO){ |
||||
|
//效验数据
|
||||
|
ValidatorUtils.validateEntity(formDTO, UpdateGroup.class, DefaultGroup.class); |
||||
|
return epidemicBuildingUnitService.getHouseInfo(formDTO); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
Loading…
Reference in new issue