Merge remote-tracking branch 'origin/dev' into test
This commit is contained in:
commit
543d770d98
|
|
@ -1,6 +1,7 @@
|
|||
package cn.ysk.cashier.cons.service.impl;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.ysk.cashier.cons.domain.*;
|
||||
import cn.ysk.cashier.cons.repository.TbConsInfoFlowRepository;
|
||||
import cn.ysk.cashier.cons.repository.TbConsInfoRepository;
|
||||
|
|
@ -140,7 +141,6 @@ public class TbConsInfoServiceImpl implements TbConsInfoService {
|
|||
tbConsInfoFlowRepository.save(flow);
|
||||
|
||||
|
||||
|
||||
}
|
||||
return tbConsInfoMapper.toDto(new TbConsInfo());
|
||||
}
|
||||
|
|
@ -290,8 +290,6 @@ public class TbConsInfoServiceImpl implements TbConsInfoService {
|
|||
info.setStockNumber(info.getStockNumber().subtract(conInfos.getStockNumber()));
|
||||
|
||||
|
||||
|
||||
|
||||
suppFlow.setBalance(info.getStockNumber().subtract(info.getStockConsume()).subtract(conInfos.getStockNumber()));
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -66,4 +66,7 @@ public interface TbProductRepository extends JpaRepository<TbProduct, Integer>,
|
|||
@Query(value = "select b.* from tb_product_sku as a left join tb_product as b on a.product_id=b.id where a.id=:skuId", nativeQuery = true)
|
||||
TbProduct selectBySkuId(@Param("skuId") Integer skuId);
|
||||
|
||||
@Query(value = "select * from tb_product as a where a.id=:skuId", nativeQuery = true)
|
||||
TbProduct selectById(@Param("skuId") Integer skuId);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue