1 changed files with 0 additions and 50 deletions
@ -1,50 +0,0 @@ |
|||||
package com.elink.esua.epdc.controller; |
|
||||
|
|
||||
import com.elink.esua.epdc.commons.tools.constant.Constant; |
|
||||
import com.elink.esua.epdc.commons.tools.security.user.SecurityUser; |
|
||||
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
||||
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; |
|
||||
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.VolunteerInfoDTO; |
|
||||
import com.elink.esua.epdc.modules.volunteer.service.VolunteerInfoService; |
|
||||
import org.springframework.beans.BeanUtils; |
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import org.springframework.web.bind.annotation.*; |
|
||||
|
|
||||
@RestController |
|
||||
@RequestMapping(Constant.EPDC_APP + "volunteerinfo") |
|
||||
public class EpdcAppVolunteerInfoController { |
|
||||
|
|
||||
@Autowired |
|
||||
private VolunteerInfoService volunteerInfoService; |
|
||||
|
|
||||
// 向志愿者 表中 查询,当前申请人,是志愿者,给不可申请标识,不是志愿者之前申请过,修改语句,第一次申请,新增语句
|
|
||||
|
|
||||
//新增语句
|
|
||||
//http://localhost:9094/epdc-api/heart/volunteerinfo/
|
|
||||
//http://localhost:9094/epdc-api/epdc-app/volunteerinfo/defaultValue
|
|
||||
//http://localhost:9094/epdc-api/heart/epdc-app/volunteerinfo/defaultValue
|
|
||||
//修改语句
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
/* *//*** |
|
||||
* 新增一条 |
|
||||
* @param dto |
|
||||
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|
||||
* @author qushutong |
|
||||
* @date 2019/9/26 14:25 |
|
||||
*//*
|
|
||||
@PostMapping("save") |
|
||||
public Result save(@RequestBody EpdcUserSaveWxFormIdFormDTO dto) { |
|
||||
//效验数据
|
|
||||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|
||||
UserWxFormIdDTO userWxFormIdDTO = new UserWxFormIdDTO(); |
|
||||
BeanUtils.copyProperties(dto, userWxFormIdDTO); |
|
||||
userWxFormIdService.save(userWxFormIdDTO); |
|
||||
return new Result(); |
|
||||
}*/ |
|
||||
} |
|
Loading…
Reference in new issue