|
@@ -5,7 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.imed.costaccount.common.exception.CostException;
|
|
|
-import com.imed.costaccount.common.util.UserContext;
|
|
|
+import com.imed.costaccount.common.util.BeanUtil;
|
|
|
import com.imed.costaccount.mapper.AccountingMapper;
|
|
|
import com.imed.costaccount.mapper.AccountingProductMapper;
|
|
|
import com.imed.costaccount.mapper.ProductMapper;
|
|
@@ -17,7 +17,6 @@ import com.imed.costaccount.model.dto.AccountProductSaveDTO;
|
|
|
import com.imed.costaccount.model.vo.AccountProductVO;
|
|
|
import com.imed.costaccount.model.vo.ProductVO;
|
|
|
import com.imed.costaccount.service.AccountingProductService;
|
|
|
-import com.imed.costaccount.common.util.BeanUtil;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Propagation;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -77,9 +76,9 @@ public class AccountingProductServiceImpl extends ServiceImpl<AccountingProductM
|
|
|
/**
|
|
|
* 递归处理
|
|
|
*
|
|
|
- * @param accountVO
|
|
|
- * @param list
|
|
|
- * @return
|
|
|
+ * @param accountVO 第一层结构对象
|
|
|
+ * @param list 全部数据对象
|
|
|
+ * @return 树形结构对象
|
|
|
*/
|
|
|
private List<AccountProductVO> getAccountTree(AccountProductVO accountVO, List<AccountProductVO> list) {
|
|
|
List<AccountProductVO> accountVOS = new ArrayList<>();
|