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