|
@ -20,14 +20,17 @@ package com.epmet.controller; |
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
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.dto.form.SwitchGridFormDTO; |
|
|
import com.epmet.dto.result.CustomerGridByUserIdResultDTO; |
|
|
import com.epmet.dto.result.CustomerGridByUserIdResultDTO; |
|
|
import com.epmet.dto.result.LatestCustomerResultDTO; |
|
|
import com.epmet.dto.result.LatestCustomerResultDTO; |
|
|
import com.epmet.service.StaffAgencyService; |
|
|
import com.epmet.service.StaffAgencyService; |
|
|
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; |
|
|
|
|
|
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 javax.validation.Valid; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -49,7 +52,7 @@ public class StaffAgencyController { |
|
|
* @Author sun |
|
|
* @Author sun |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping("getmygrids") |
|
|
@PostMapping("getmygrids") |
|
|
public Result<List<CustomerGridByUserIdResultDTO>> getMyGrids(TokenDto tokenDTO) { |
|
|
public Result<List<CustomerGridByUserIdResultDTO>> getMyGrids(@LoginUser TokenDto tokenDTO) { |
|
|
return staffAgencyService.getMyGrids(tokenDTO); |
|
|
return staffAgencyService.getMyGrids(tokenDTO); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -64,4 +67,15 @@ public class StaffAgencyController { |
|
|
return staffAgencyService.getLatestCustomer(tokenDTO); |
|
|
return staffAgencyService.getLatestCustomer(tokenDTO); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @param tokenDto |
|
|
|
|
|
* @return com.epmet.commons.tools.utils.Result<java.util.List < java.lang.String>> |
|
|
|
|
|
* @Author yinzuomei |
|
|
|
|
|
* @Description 切换网格 |
|
|
|
|
|
* @Date 2020/4/23 10:34 |
|
|
|
|
|
**/ |
|
|
|
|
|
@PostMapping("switchgrid") |
|
|
|
|
|
public Result<List<String>> switchGrid(@LoginUser TokenDto tokenDto, @RequestBody @Valid SwitchGridFormDTO switchGridFormDTO) { |
|
|
|
|
|
return staffAgencyService.switchGrid(switchGridFormDTO); |
|
|
|
|
|
} |
|
|
} |
|
|
} |