This commit is contained in:
zsvg
2022-06-18 12:24:56 +08:00
parent 76060552bd
commit 06098882d9
2 changed files with 11 additions and 0 deletions
@@ -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");