|
|
@ -9,18 +9,16 @@ import java.util.stream.Collectors; |
|
|
|
import cn.hutool.core.collection.CollectionUtil; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.google.common.base.Joiner; |
|
|
|
import com.jianwei.common.core.domain.BaseEntity; |
|
|
|
import com.kms.build.domain.BsSgcjsjdBuiProInfo; |
|
|
|
import com.kms.build.domain.dto.LatitudeLongitude; |
|
|
|
import com.kms.build.service.BsSgcjsjdBuiProInfoService; |
|
|
|
import com.kms.config.WaterRequestUtil; |
|
|
|
import com.kms.config.WaterResult; |
|
|
|
import com.kms.config.singleDomain.SingleMenu; |
|
|
|
import com.kms.config.singleDomain.SingleUser; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.PutMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import com.jianwei.common.core.controller.BaseController; |
|
|
|
import com.jianwei.common.core.domain.AjaxResult; |
|
|
|
import com.jianwei.common.utils.StringUtils; |
|
|
@ -40,6 +38,10 @@ import io.swagger.annotations.ApiOperation; |
|
|
|
@RequestMapping("/test/user") |
|
|
|
public class TestController extends BaseController |
|
|
|
{ |
|
|
|
|
|
|
|
@Autowired |
|
|
|
BsSgcjsjdBuiProInfoService service; |
|
|
|
|
|
|
|
private final static Map<Integer, UserEntity> users = new LinkedHashMap<Integer, UserEntity>(); |
|
|
|
{ |
|
|
|
users.put(1, new UserEntity(1, "admin", "admin123", "15888888888")); |
|
|
@ -49,8 +51,8 @@ public class TestController extends BaseController |
|
|
|
@Autowired |
|
|
|
WaterRequestUtil waterRequestUtil; |
|
|
|
|
|
|
|
@GetMapping("test") |
|
|
|
public WaterResult test(){ |
|
|
|
@PostMapping("test") |
|
|
|
public WaterResult test(@RequestBody BsSgcjsjdBuiProInfo bsSgcjsjdBuiProInfo){ |
|
|
|
WaterResult waterResult = waterRequestUtil.getRolePage(); |
|
|
|
// List<SingleMenu> singleMenus = JSONObject.parseArray(waterResult.getData(), SingleMenu.class);
|
|
|
|
// List<SingleMenu> singleAllMenus = new ArrayList<>();
|
|
|
|