|
@@ -14,6 +14,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.kxs.adminap.config.Base;
|
|
|
import com.kxs.adminap.dao.main.UserRankWhiteMapper;
|
|
|
import com.kxs.adminap.enity.ListParam;
|
|
|
+import com.kxs.adminap.enity.RelationData;
|
|
|
import com.kxs.adminap.model.main.UserAccount;
|
|
|
import com.kxs.adminap.model.main.UserRankWhite;
|
|
|
import com.kxs.adminap.model.main.Users;
|
|
@@ -69,13 +70,18 @@ public class TestController {
|
|
|
// result = new JwtUtil().generateToken("test");
|
|
|
|
|
|
result += Util.DateFormat(new Date(), "yyyy-MM-dd HH:mm:ss.SSS") + "<br>";
|
|
|
- // Long count = 0L;
|
|
|
- // List<Dictionary<String, Object>> obj = UsersService.List(new ArrayList<>(), " and Id<100", count, 1, 20, "Id desc").get("list");
|
|
|
- // result += JSONObject.toJSONString(obj) + "<br>";
|
|
|
- // List<Users> user = UsersService.List(10, 10);
|
|
|
+ List<RelationData> relationDatas = new ArrayList<>();
|
|
|
+ RelationData relationData = new RelationData();
|
|
|
+ relationData.Field = "ParentUserId";
|
|
|
+ relationData.Table = "Users";
|
|
|
+ List<String> ReturnFields = new ArrayList<>();
|
|
|
+ ReturnFields.add("MakerCode");
|
|
|
+ ReturnFields.add("RealName");
|
|
|
+ relationData.ReturnField = ReturnFields;
|
|
|
Users data = new Users();
|
|
|
data.setMakerCode("K00000000");
|
|
|
- Users user = UsersService.Query(data);
|
|
|
+ data.setRealName("客小爽");
|
|
|
+ List<Users> user = UsersService.List(relationDatas, data, " and Id<10", 1, 10, "Id desc");
|
|
|
result += JSONObject.toJSONString(user) + "<br>";
|
|
|
result += Util.DateFormat(new Date(), "yyyy-MM-dd HH:mm:ss.SSS") + "<br>";
|
|
|
|