|
@ -12,8 +12,6 @@ import com.epmet.dto.result.UserBadgeListResultDTO; |
|
|
import com.epmet.dto.result.UserOperListResultDTO; |
|
|
import com.epmet.dto.result.UserOperListResultDTO; |
|
|
import com.epmet.feign.EpmetUserOpenFeignClient; |
|
|
import com.epmet.feign.EpmetUserOpenFeignClient; |
|
|
import com.epmet.modules.person.service.BadgeService; |
|
|
import com.epmet.modules.person.service.BadgeService; |
|
|
import com.epmet.resi.mine.dto.from.BadgeListFormDTO; |
|
|
|
|
|
import com.epmet.resi.mine.dto.from.OperListFormDTO; |
|
|
|
|
|
import com.epmet.resi.mine.dto.result.BadgeListResultDTO; |
|
|
import com.epmet.resi.mine.dto.result.BadgeListResultDTO; |
|
|
import com.epmet.resi.mine.dto.result.OperListResultDTO; |
|
|
import com.epmet.resi.mine.dto.result.OperListResultDTO; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
@ -41,10 +39,10 @@ public class BadgeServiceImpl implements BadgeService { |
|
|
* @date 2020/11/3 4:11 下午 |
|
|
* @date 2020/11/3 4:11 下午 |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public List<BadgeListResultDTO> getBadgeList(TokenDto tokenDto,BadgeListFormDTO badgeListFormDTO) { |
|
|
public List<BadgeListResultDTO> getBadgeList(String customerId,String userId) { |
|
|
UserBadgeListFormDTO form = new UserBadgeListFormDTO(); |
|
|
UserBadgeListFormDTO form = new UserBadgeListFormDTO(); |
|
|
form.setCustomerId(badgeListFormDTO.getCustomerId()); |
|
|
form.setCustomerId(customerId); |
|
|
form.setUserId(tokenDto.getUserId()); |
|
|
form.setUserId(userId); |
|
|
Result<List<UserBadgeListResultDTO>> listResult = epmetUserOpenFeignClient.selectBadgeList(form); |
|
|
Result<List<UserBadgeListResultDTO>> listResult = epmetUserOpenFeignClient.selectBadgeList(form); |
|
|
if (!listResult.success()){ |
|
|
if (!listResult.success()){ |
|
|
throw new RenException("获取徽章点亮列表失败......"); |
|
|
throw new RenException("获取徽章点亮列表失败......"); |
|
@ -63,10 +61,10 @@ public class BadgeServiceImpl implements BadgeService { |
|
|
* @date 2020/11/3 4:28 下午 |
|
|
* @date 2020/11/3 4:28 下午 |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public List<OperListResultDTO> getOperList(TokenDto tokenDto,OperListFormDTO operListFormDTO) { |
|
|
public List<OperListResultDTO> getOperList(String customerId,String userId) { |
|
|
UserOperListFormDTO userOperListFormDTO = new UserOperListFormDTO(); |
|
|
UserOperListFormDTO userOperListFormDTO = new UserOperListFormDTO(); |
|
|
userOperListFormDTO.setCustomerId(operListFormDTO.getCustomerId()); |
|
|
userOperListFormDTO.setCustomerId(customerId); |
|
|
userOperListFormDTO.setUserId(tokenDto.getUserId()); |
|
|
userOperListFormDTO.setUserId(userId); |
|
|
Result<List<UserOperListResultDTO>> listResult = epmetUserOpenFeignClient.selectOperList(userOperListFormDTO); |
|
|
Result<List<UserOperListResultDTO>> listResult = epmetUserOpenFeignClient.selectOperList(userOperListFormDTO); |
|
|
if (!listResult.success()){ |
|
|
if (!listResult.success()){ |
|
|
throw new RenException("获取徽章列表失败......"); |
|
|
throw new RenException("获取徽章列表失败......"); |
|
|