|
@@ -77,6 +77,7 @@ public class BizInvoiceController extends BaseController {
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(BizInvoice bizInvoice) throws NoSuchFieldException, IllegalAccessException {
|
|
|
startPage();
|
|
|
+ setTenantId(bizInvoice);
|
|
|
List<BizInvoice> list = bizInvoiceService.getList(bizInvoice);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
@@ -135,6 +136,7 @@ public class BizInvoiceController extends BaseController {
|
|
|
@PostMapping
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public AjaxResult add(@RequestBody BizInvoice bizInvoice) throws NoSuchFieldException, IllegalAccessException {
|
|
|
+
|
|
|
BizCopyInfo info1 = new BizCopyInfo();
|
|
|
BizCopyInfo info2 = new BizCopyInfo();
|
|
|
//开票户
|
|
@@ -162,6 +164,7 @@ public class BizInvoiceController extends BaseController {
|
|
|
bizCopyInfoService.saveOrUpdate(info2);
|
|
|
bizInvoice.setApplierId(getUserId());
|
|
|
bizInvoice.setApplierTime(new Date());
|
|
|
+ bizInvoice.setTenantId( getTenantId());
|
|
|
return toAjax(bizInvoiceService.save(bizInvoice));
|
|
|
}
|
|
|
|