|
|
@@ -74,9 +74,11 @@ public class BillSubmitServiceImpl implements BillSubmitService {
|
|
|
Long buyerEnuu = null;
|
|
|
if (SystemSession.getUser().getEnterprise() != null)
|
|
|
buyerEnuu = SystemSession.getUser().getEnterprise().getUu();
|
|
|
-
|
|
|
- if ((!bill.getUseruu().equals(buyeruu)) || (buyerEnuu != null && !bill.getEnuu().equals(buyerEnuu)))
|
|
|
+ if ((buyerEnuu != null && !bill.getEnuu().equals(buyerEnuu))) {
|
|
|
+ throw new IllegalOperatorException("发票信息不属于您,请重新确认发票信息");
|
|
|
+ } else if((buyerEnuu == null) && !buyeruu.equals(bill.getUseruu())){
|
|
|
throw new IllegalOperatorException("发票信息不属于您,请重新确认发票信息");
|
|
|
+ }
|
|
|
|
|
|
// 获取验证订单信息
|
|
|
List<String> orderidList = Arrays.asList(orderids);
|