|
@@ -140,7 +140,7 @@ public class BizInvoiceController extends BaseController {
|
|
|
@PostMapping
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public AjaxResult add(@RequestBody BizInvoice bizInvoice) throws NoSuchFieldException, IllegalAccessException {
|
|
|
- if(null != bizInvoice.getContractId()){
|
|
|
+ if(null == bizInvoice.getContractId()){
|
|
|
return error("请选择合同");
|
|
|
}
|
|
|
BizCopyInfo info1 = new BizCopyInfo();
|
|
@@ -183,7 +183,7 @@ public class BizInvoiceController extends BaseController {
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public AjaxResult edit(@RequestBody BizInvoice bizInvoice) throws NoSuchFieldException, IllegalAccessException {
|
|
|
Long tenantId = getTenantId();
|
|
|
- if(null != bizInvoice.getContractId()){
|
|
|
+ if(null == bizInvoice.getContractId()){
|
|
|
return error("请选择合同");
|
|
|
}
|
|
|
BizCopyInfo info1 = new BizCopyInfo();
|