ljx 4 years ago
parent
commit
45dfa3e401

+ 2 - 1
src/main/java/com/imed/costaccount/service/impl/AccountingProductServiceImpl.java

@@ -98,7 +98,8 @@ public class AccountingProductServiceImpl extends ServiceImpl<AccountingProductM
                 accountVO.setIsParent(true);
             }
             List<AccountingProduct> accountingProducts = baseMapper.selectList(
-                    new LambdaQueryWrapper<AccountingProduct>().select(AccountingProduct::getId, AccountingProduct::getProductId)
+                    new LambdaQueryWrapper<AccountingProduct>()
+                            .select(AccountingProduct::getId, AccountingProduct::getProductId)
                             .eq(AccountingProduct::getAccountingId, account.getId())
             );
             if (CollUtil.isNotEmpty(accountingProducts)) {

+ 2 - 2
src/main/java/com/imed/costaccount/service/impl/CostAccountShareServiceImpl.java

@@ -114,7 +114,7 @@ public class CostAccountShareServiceImpl extends ServiceImpl<CostAccountShareMap
     /**
      * 保存成本参数对应成本对照表
      *
-     * @param costAccountShareSaveDto
+     * @param costAccountShareSaveDto {@link CostAccountShareSaveDto}
      */
     @Override
     @Transactional(propagation = Propagation.REQUIRED,rollbackFor = Exception.class)
@@ -180,7 +180,7 @@ public class CostAccountShareServiceImpl extends ServiceImpl<CostAccountShareMap
                 throw new CostException(500,"该责任中心合并计算已存在");
             }
             if (!NumberConstant.ONE.equals(costAccountShareSaveDto.getIsShareCost())){
-                throw new CostException(500,"合并计算责任中心必须要设置包含分摊参数");
+                throw new CostException(500,"合并计算责任中心必须要设置包含分摊参数");
             }
         }
         // 检验输入的这个责任中心是否允许输入会计科目