|
@ -18,8 +18,12 @@ |
|
|
package com.epmet.controller; |
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
|
|
|
import com.epmet.dto.form.CustomerGridListFormDTO; |
|
|
import com.epmet.dto.form.StrangerFormDTO; |
|
|
import com.epmet.dto.form.StrangerFormDTO; |
|
|
|
|
|
import com.epmet.dto.result.CustomerGridForStrangerResultDTO; |
|
|
import com.epmet.dto.result.HomeDesignByCustomerResultDTO; |
|
|
import com.epmet.dto.result.HomeDesignByCustomerResultDTO; |
|
|
|
|
|
import com.epmet.service.StrangerAccessRecordService; |
|
|
import com.epmet.service.StrangerService; |
|
|
import com.epmet.service.StrangerService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
@ -27,6 +31,8 @@ import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 居民端-陌生人导览 |
|
|
* 居民端-陌生人导览 |
|
@ -40,6 +46,9 @@ public class StrangerResiGuideController { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private StrangerService strangerService; |
|
|
private StrangerService strangerService; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private StrangerAccessRecordService strangerAccessRecordService; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @param |
|
|
* @param |
|
|
* @Author sun |
|
|
* @Author sun |
|
@ -51,4 +60,37 @@ public class StrangerResiGuideController { |
|
|
return strangerService.getgridhome(formDTO); |
|
|
return strangerService.getgridhome(formDTO); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Description 陌生访客根据自动定位获取附近网格数据 |
|
|
|
|
|
* @Param CustomerGridListFormDTO |
|
|
|
|
|
* @return Result<List<CustomerGridForStrangerResultDTO>> |
|
|
|
|
|
* @Author wangc |
|
|
|
|
|
* @Date 2020.03.19 14:13 |
|
|
|
|
|
**/ |
|
|
|
|
|
@PostMapping("getlocationcustomergridlist") |
|
|
|
|
|
Result<List<CustomerGridForStrangerResultDTO>> getLocationCustomerGridList(@RequestBody CustomerGridListFormDTO customerGridListFormDTO){ |
|
|
|
|
|
|
|
|
|
|
|
ValidatorUtils.validateEntity(customerGridListFormDTO); |
|
|
|
|
|
|
|
|
|
|
|
return strangerAccessRecordService.listCustomerGrid(customerGridListFormDTO); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Description 陌生访客手动选定位置获取附近网格数据 |
|
|
|
|
|
* @Param CustomerGridListFormDTO |
|
|
|
|
|
* @return Result<List<CustomerGridForStrangerResultDTO>> |
|
|
|
|
|
* @Author wangc |
|
|
|
|
|
* @Date 2020.03.19 14:13 |
|
|
|
|
|
**/ |
|
|
|
|
|
@PostMapping("getselectcdcustomergridlist") |
|
|
|
|
|
Result<List<CustomerGridForStrangerResultDTO>> getSelectcdCustomerGridList(@RequestBody CustomerGridListFormDTO customerGridListFormDTO){ |
|
|
|
|
|
|
|
|
|
|
|
ValidatorUtils.validateEntity(customerGridListFormDTO); |
|
|
|
|
|
|
|
|
|
|
|
return strangerAccessRecordService.listCustomerGrid(customerGridListFormDTO); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|