Browse Source

查询志愿者userId方法更改名称

master
wangchao 5 years ago
parent
commit
844f572a29
  1. 2
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/ResiVolunteerController.java
  2. 2
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/VolunteerInfoService.java
  3. 2
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/VolunteerInfoServiceImpl.java
  4. 2
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/VolunteerInfoDao.xml

2
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/ResiVolunteerController.java

@ -100,6 +100,6 @@ public class ResiVolunteerController {
@PostMapping("volunteeruserids")
public Result<List<String>> volunteerUserIds(@RequestBody CommonCustomerFormDTO customerFormDTO){
ValidatorUtils.validateEntity(customerFormDTO,CommonCustomerFormDTO.CustomerIdGroup.class);
return new Result<List<String>>().ok(volunteerInfoService.selectVolunteerIds(customerFormDTO));
return new Result<List<String>>().ok(volunteerInfoService.getVolunteerIds(customerFormDTO));
}
}

2
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/VolunteerInfoService.java

@ -77,5 +77,5 @@ public interface VolunteerInfoService extends BaseService<VolunteerInfoEntity> {
* @author wangc
* @date 2020.08.13 10:22
**/
List<String> selectVolunteerIds(CommonCustomerFormDTO customerFormDTO);
List<String> getVolunteerIds(CommonCustomerFormDTO customerFormDTO);
}

2
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/VolunteerInfoServiceImpl.java

@ -187,7 +187,7 @@ public class VolunteerInfoServiceImpl extends BaseServiceImpl<VolunteerInfoDao,
* @date 2020.08.13 10:22
**/
@Override
public List<String> selectVolunteerIds(CommonCustomerFormDTO customerFormDTO) {
public List<String> getVolunteerIds(CommonCustomerFormDTO customerFormDTO) {
return baseDao.selectVolunteerIds(customerFormDTO.getCustomerId());
}

2
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/VolunteerInfoDao.xml

@ -66,7 +66,7 @@
</select>
<!-- 查询一个客户下的所有志愿者用户Id -->
<select id="selectVolunteerIds" resultType="java.util.List">
<select id="selectVolunteerIds" resultType="string">
SELECT
USER_ID
FROM volunteer_info

Loading…
Cancel
Save