use of demo4031.model.AppxModel in project solon-examples by noear.
the class PlusServiceTest method selectById.
@Test
public void selectById() {
AppxModel app = appServicePlus.getById(2);
System.out.println(app);
assert app != null;
assert app.getAppId() == 2;
}
use of demo4031.model.AppxModel in project solon-examples by noear.
the class PlusServiceTest method selectOne.
@Test
public void selectOne() {
AppxModel app = appServicePlus.getOne(new QueryWrapper<AppxModel>().eq("app_id", 2));
System.out.println(app);
assert app != null;
assert app.getAppId() == 2;
}
use of demo4031.model.AppxModel in project solon-examples by noear.
the class PlusTest method selectById.
@Test
public void selectById() {
AppxModel app = appxMapper2.selectById(2);
System.out.println(app);
assert app != null;
assert app.getAppId() == 2;
}
use of demo4031.model.AppxModel in project solon-examples by noear.
the class API_cache method exec.
@Cache(seconds = 12)
@Mapping("cache")
public List exec() {
List<AppxModel> list = new ArrayList<>();
AppxModel app = new AppxModel();
app.setApp_id(1001);
list.add(app);
return list;
}
use of demo4031.model.AppxModel in project solon-examples by noear.
the class PlusTest method selectOne.
@Test
public void selectOne() {
AppxModel app = appxMapper2.selectOne(new QueryWrapper<AppxModel>().eq("app_id", 2));
System.out.println(app);
assert app != null;
assert app.getAppId() == 2;
}
Aggregations