|
@@ -43,6 +43,7 @@ public class BizEntrustPriceController extends BaseController {
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(BizEntrustPrice bizEntrustPrice) throws NoSuchFieldException, IllegalAccessException {
|
|
|
startPage();
|
|
|
+ bizEntrustPrice.setToTenantId(getTenantId());
|
|
|
List<BizEntrustPrice> list = bizEntrustPriceService.getList(bizEntrustPrice);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
@@ -99,7 +100,7 @@ public class BizEntrustPriceController extends BaseController {
|
|
|
public AjaxResult add(@RequestBody BizEntrustPrice bizEntrustPrice) throws NoSuchFieldException, IllegalAccessException {
|
|
|
//判读是否存在该价目
|
|
|
setTenantId(bizEntrustPrice);
|
|
|
- bizEntrustPrice.setToTenantId(bizEntrustPrice.getFromTenantId());
|
|
|
+ bizEntrustPrice.setToTenantId(getTenantId());
|
|
|
List<BizEntrustPrice> list = bizEntrustPriceService.getList(bizEntrustPrice);
|
|
|
if (list.size() > 0) {
|
|
|
return AjaxResult.error("该价目已存在");
|