mirror of
https://gitee.com/vben/vben-java.git
synced 2026-10-06 14:13:12 +08:00
~
This commit is contained in:
@@ -5,6 +5,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import vboot.core.common.api.R;
|
||||
import vboot.core.common.dao.Sqler;
|
||||
import vboot.core.common.pojo.Ztree;
|
||||
import vboot.core.module.mon.log.oper.Oplog;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -40,6 +41,14 @@ public class DeSuppCateApi {
|
||||
return R.ok(list);
|
||||
}
|
||||
|
||||
@GetMapping
|
||||
public R get(String name) {
|
||||
Sqler sqler = new Sqler(table);
|
||||
sqler.addLike("t.name", name);
|
||||
sqler.addSelect("t.notes");
|
||||
return R.ok(service.findPageData(sqler));
|
||||
}
|
||||
|
||||
@GetMapping("one/{id}")
|
||||
public R getOne(@PathVariable String id) {return R.ok(service.findOne(id)); }
|
||||
|
||||
|
||||
@@ -5,11 +5,13 @@ import vboot.core.common.dao.Sqler;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import vboot.core.module.ass.num.main.AssNumMainService;
|
||||
import vboot.core.module.mon.log.oper.Oplog;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("de/supp/main")
|
||||
public class DeSuppMainApi {
|
||||
|
||||
@Oplog("查询供应商")
|
||||
@GetMapping
|
||||
public R get(String name) {
|
||||
Sqler sqler = new Sqler("de_supp_main");
|
||||
|
||||
Reference in New Issue
Block a user