|
@ -18,6 +18,7 @@ |
|
|
package com.epmet.controller; |
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
|
|
import com.epmet.commons.tools.exception.ValidateException; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
@ -30,6 +31,7 @@ import com.epmet.dto.result.MarketContactInfoResultDTO; |
|
|
import com.epmet.dto.result.PublicCustomerGridForStrangerResultDTO; |
|
|
import com.epmet.dto.result.PublicCustomerGridForStrangerResultDTO; |
|
|
import com.epmet.service.StrangerAccessRecordService; |
|
|
import com.epmet.service.StrangerAccessRecordService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
import org.springframework.util.StringUtils; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
@ -87,9 +89,10 @@ public class StrangerResiGuideController { |
|
|
* @date 2021.01.18 16:39 |
|
|
* @date 2021.01.18 16:39 |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping("sso/publiclocationgridlist") |
|
|
@PostMapping("sso/publiclocationgridlist") |
|
|
Result<List<CustomerGridForStrangerResultDTO>> locationGridList(@RequestBody CustomerGridListFormDTO customerGridListFormDTO){ |
|
|
Result<List<PublicCustomerGridForStrangerResultDTO>> locationGridList(@LoginUser TokenDto dto,@RequestBody CustomerGridListFormDTO customerGridListFormDTO){ |
|
|
ValidatorUtils.validateEntity(customerGridListFormDTO); |
|
|
ValidatorUtils.validateEntity(customerGridListFormDTO); |
|
|
return strangerAccessRecordService.listCustomerGridH5(customerGridListFormDTO); |
|
|
if(null == dto || StringUtils.isEmpty(dto.getCustomerId())) throw new ValidateException("无法获取客户Id"); |
|
|
|
|
|
return strangerAccessRecordService.listCustomerGridH5(customerGridListFormDTO,dto.getCustomerId()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|