|
|
@@ -672,27 +672,7 @@ public class OrderChangeServiceImpl extends BaseMybatisDao<NewOrderChangeMapper>
|
|
|
}
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * 判断变更项目是否拆分父子数量是否一直
|
|
|
- * @param noc
|
|
|
- */
|
|
|
- private void chekeChangeTaskNumber(NewOrderChange noc) {
|
|
|
- List<TChangeTaskOut> list=tChangeTaskMapper.selectByCid(noc.getId(),null);
|
|
|
- //x记录父值y记录子值
|
|
|
- int x=0;
|
|
|
- int y=0;
|
|
|
-
|
|
|
- for (TChangeTaskOut tcto : list) {
|
|
|
- if (tcto.getSplitStatus()==1&&tcto.getType()!=3) {
|
|
|
- x+=tcto.getCommodityQuantity();
|
|
|
- }else if (tcto.getSplitStatus()==2&&tcto.getType()!=3) {
|
|
|
- y+=tcto.getCommodityQuantity();
|
|
|
- }
|
|
|
- }
|
|
|
- if (x!=y) {
|
|
|
- throw new BusinessException("变更子项目与父项目数量不符");
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public int addOrderRefundInvoice(OrderRefundInvoice o) {
|