|
|
@ -40,8 +40,10 @@ import com.epmet.dao.IcUserDemandServiceDao; |
|
|
|
import com.epmet.dto.CustomerGridDTO; |
|
|
|
import com.epmet.dto.IcUserDemandRecDTO; |
|
|
|
import com.epmet.dto.form.CustomerGridFormDTO; |
|
|
|
import com.epmet.dto.form.ResiUserFormDTO; |
|
|
|
import com.epmet.dto.form.demand.*; |
|
|
|
import com.epmet.dto.result.AllGridsByUserIdResultDTO; |
|
|
|
import com.epmet.dto.result.ResiUserResDTO; |
|
|
|
import com.epmet.dto.result.UserBaseInfoResultDTO; |
|
|
|
import com.epmet.dto.result.demand.DemandRecResultDTO; |
|
|
|
import com.epmet.dto.result.demand.IcResiUserReportDemandRes; |
|
|
@ -465,6 +467,16 @@ public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecD |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public PageData<IcResiUserReportDemandRes> queryMyDemand(IcResiUserDemandFromDTO formDTO) { |
|
|
|
//1、查询当前居民在小程序里是否有用户id
|
|
|
|
ResiUserFormDTO resiUserFormDTO=new ResiUserFormDTO(); |
|
|
|
resiUserFormDTO.setCustomerId(formDTO.getCustomerId()); |
|
|
|
resiUserFormDTO.setIcResiUserId(formDTO.getUserId()); |
|
|
|
Result<ResiUserResDTO> userRes=epmetUserOpenFeignClient.findUser(resiUserFormDTO); |
|
|
|
if(!userRes.success()){ |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(),"/epmetuser/user/finduser接口异常","查找居民端小程序用户信息异常"); |
|
|
|
} |
|
|
|
formDTO.setEpmetUserId(userRes.getData().getEpmetUserId()); |
|
|
|
//2、小程序内自己上报+赋能平台待录入的
|
|
|
|
PageInfo<IcResiUserReportDemandRes> pageInfo = PageHelper.startPage(formDTO.getPageNo(), |
|
|
|
formDTO.getPageSize()).doSelectPageInfo(() -> baseDao.selectUserDemand(formDTO)); |
|
|
|
List<IcResiUserReportDemandRes> list = pageInfo.getList(); |
|
|
|