|
@@ -31,6 +31,8 @@ import com.pj.project.tb_business_item.TbBusinessItem;
|
|
|
import com.pj.project.tb_fee_details.ExportFeeDetailDTO;
|
|
|
import com.pj.project.tb_fee_details.TbFeeDetails;
|
|
|
import com.pj.project.tb_fee_details.TbFeeDetailsService;
|
|
|
+import com.pj.project.tb_goods.TbGoods;
|
|
|
+import com.pj.project.tb_goods.TbGoodsService;
|
|
|
import com.pj.project.tb_item_type.TbItemType;
|
|
|
import com.pj.project.tb_item_type.TbItemTypeService;
|
|
|
import com.pj.project4sp.uploadfile.UploadUtil;
|
|
@@ -75,6 +77,8 @@ public class TbFeeStatisticsService extends ServiceImpl<TbFeeStatisticsMapper, T
|
|
|
private TbItemTypeService tbItemTypeService;
|
|
|
@Resource
|
|
|
private RelationBusinessCarService relationBusinessCarService;
|
|
|
+ @Resource
|
|
|
+ private TbGoodsService tbGoodsService;
|
|
|
|
|
|
/**
|
|
|
* 增
|
|
@@ -248,16 +252,16 @@ public class TbFeeStatisticsService extends ServiceImpl<TbFeeStatisticsMapper, T
|
|
|
taxPrice = taxPrice.setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
BigDecimal noTaxPrice = item.getTotal().subtract(taxPrice);
|
|
|
noTaxPrice = noTaxPrice.setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
+
|
|
|
String carNo = business.getCardNo();
|
|
|
if (StrUtil.isEmpty(business.getCardNo())) {
|
|
|
carNo = business.getChinaCarNo();
|
|
|
}
|
|
|
-// TbBusinessCar businessCar = new TbBusinessCar();
|
|
|
-// if (TbBusiness.BusinessType.CAR_DISINCLE.getCode().equals(business.getBusinessType())) {
|
|
|
-// businessCar = tbBusinessCarService.getById(business.getBusinessCarId());
|
|
|
-// } else {
|
|
|
-// businessCar = tbBusinessCarService.findByBusinessIdAndCarNo(item.getBusinessId(), carNo);
|
|
|
-// }
|
|
|
+ TbGoods businessCfg = tbGoodsService.getById(business.getGoodsId());
|
|
|
+ if((TbGoods.LeaveEnum.BUSINESS_MONEY.getCode()==businessCfg.getChinaCarLeave() || TbGoods.LeaveEnum.APART_BUSINESS.getCode()==businessCfg.getChinaCarLeave())
|
|
|
+ && TbGoods.LeaveEnum.BUSINESS_MONEY.getCode()!=businessCfg.getVietnamCarLeave() && TbGoods.LeaveEnum.APART_BUSINESS.getCode()!=businessCfg.getVietnamCarLeave()){
|
|
|
+ carNo = business.getChinaCarNo();
|
|
|
+ }
|
|
|
String businessCarIds = "";
|
|
|
String businessCarNos = "";
|
|
|
List<RelationBusinessCar> relation = relationBusinessCarService.findByBusinessId(item.getBusinessId());
|