|
@ -1,5 +1,7 @@ |
|
|
package com.epmet.controller; |
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
|
|
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; |
|
|
import com.epmet.commons.tools.validator.group.AddGroup; |
|
|
import com.epmet.commons.tools.validator.group.AddGroup; |
|
@ -33,9 +35,10 @@ public class IcPointAppController { |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping("getMapInfoByPointType") |
|
|
@PostMapping("getMapInfoByPointType") |
|
|
public Result<List<MapInfoResultDTO>> getMapInfoByPointType(@RequestBody MapInfoFormDTO formDTO){ |
|
|
public Result<List<MapInfoResultDTO>> getMapInfoByPointType(@RequestBody MapInfoFormDTO formDTO, @LoginUser TokenDto tokenDto){ |
|
|
// 效验数据
|
|
|
// 效验数据
|
|
|
ValidatorUtils.validateEntity(formDTO, AddGroup.class, DefaultGroup.class); |
|
|
ValidatorUtils.validateEntity(formDTO, AddGroup.class, DefaultGroup.class); |
|
|
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
|
|
|
|
|
return icPointAppService.getMapInfoByPointType(formDTO); |
|
|
return icPointAppService.getMapInfoByPointType(formDTO); |
|
|
} |
|
|
} |
|
|