Commit 6130d5c5 by 刘鑫

pref: GET请求在大区查询时参数过长, 暂改为POST 参数放入请求体, 风险任然存在

1 parent 36c36984
......@@ -9,6 +9,8 @@ import com.dituhui.pea.order.service.OrganizationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
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.RestController;
......@@ -42,8 +44,8 @@ public class OrganizationController {
return res;
}
@GetMapping("/organization/engineer/list")
public Result<?> getEngineersByTeams(OrganizationEngineersByTeamsDTO.Request reqDTO) {
@PostMapping("/organization/engineer/list")
public Result<?> getEngineersByTeams(@RequestBody OrganizationEngineersByTeamsDTO.Request reqDTO) {
Result<?> res = null;
try {
res = organizationService.getEngineersByTeams(reqDTO.getTeamIds());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!