fix:产品二级类型相关调整

dev_1.0.2
UNISINSIGHT\rdpnr_jiangpeng 2026-03-30 14:52:13 +08:00
parent 9a491ab1c7
commit baae63153a
3 changed files with 23 additions and 19 deletions

View File

@ -59,6 +59,8 @@ public class OmsPayableBill extends BaseEntity
/** 产品类型 */
@Excel(name = "产品类型")
private String productType;
/** 二级产品类型 */
private String productLevel2Type;
/** 产品编码 */
private String productCode;

View File

@ -194,18 +194,17 @@ public class OmsFinanceChargeServiceImpl implements IOmsFinanceChargeService {
queryBill.setOrderCode(omsFinanceCharge.getOrderCode());
List<OmsPayableBill> omsPayableBills = payableBillService.selectOmsPayableBillList(queryBill);
for (OmsPayableBill omsPayableBill : omsPayableBills) {
if (omsPayableBill.getProductType().equals(ProductInfo.ProductTypeEnum.SOFTWARE_MAINTENANCE.getType())){
costSoftwareMaintWithTax = costSoftwareMaintWithTax.add(omsPayableBill.getTotalPriceWithTax());
costSoftwareMaintWithoutTax = costSoftwareMaintWithoutTax.add(omsPayableBill.getTotalPriceWithoutTax());
}else if (omsPayableBill.getProductType().equals(ProductInfo.ProductTypeEnum.HARDWARE_MAINTENANCE.getType())){
costHardwareMaintWithTax = costHardwareMaintWithTax.add(omsPayableBill.getTotalPriceWithTax());
costHardwareMaintWithoutTax = costHardwareMaintWithoutTax.add(omsPayableBill.getTotalPriceWithoutTax());
}else if (omsPayableBill.getProductType().equals(ProductInfo.ProductTypeEnum.PROVINCE_SERVICE.getType())){
costProvinceServiceWithTax = costProvinceServiceWithTax.add(omsPayableBill.getTotalPriceWithTax());
costProvinceServiceWithoutTax = costProvinceServiceWithoutTax.add(omsPayableBill.getTotalPriceWithoutTax());
}else if (omsPayableBill.getProductType().equals(ProductInfo.ProductTypeEnum.OTHER.getType())){
costOtherWithTax = costOtherWithTax.add(omsPayableBill.getTotalPriceWithTax());
costOtherWithoutTax = costOtherWithoutTax.add(omsPayableBill.getTotalPriceWithoutTax());
if (omsPayableBill.getProductType().equals(ProductInfo.ProductTypeEnum.SERVICE.getType())) {
if (ProductInfo.ProductTypeLevel2ServiceEnum.SOFTWARE_QA.getType().equals((omsPayableBill.getProductLevel2Type()))) {
costSoftwareMaintWithTax = costSoftwareMaintWithTax.add(omsPayableBill.getTotalPriceWithTax());
costSoftwareMaintWithoutTax = costSoftwareMaintWithoutTax.add(omsPayableBill.getTotalPriceWithoutTax());
} else if (ProductInfo.ProductTypeLevel2ServiceEnum.HARDWARE_QA.getType().equals((omsPayableBill.getProductLevel2Type()))) {
costHardwareMaintWithTax = costHardwareMaintWithTax.add(omsPayableBill.getTotalPriceWithTax());
costHardwareMaintWithoutTax = costHardwareMaintWithoutTax.add(omsPayableBill.getTotalPriceWithoutTax());
} else if (ProductInfo.ProductTypeLevel2ServiceEnum.SHENG_DAI.getType().equals((omsPayableBill.getProductLevel2Type()))) {
costProvinceServiceWithTax = costProvinceServiceWithTax.add(omsPayableBill.getTotalPriceWithTax());
costProvinceServiceWithoutTax = costProvinceServiceWithoutTax.add(omsPayableBill.getTotalPriceWithoutTax());
}
}
}
omsFinanceCharge.setCostSoftwareMaintWithoutTax(costSoftwareMaintWithoutTax);

View File

@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="orderCode" column="order_code" />
<result property="inventoryCode" column="inventory_code" />
<result property="productType" column="product_type" />
<result property="productLevel2Type" column="product_level2_type" />
<result property="totalPriceWithTax" column="total_price_with_tax" />
<result property="totalPriceWithoutTax" column="total_price_without_tax" />
<result property="taxAmount" column="tax_amount" />
@ -63,7 +64,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
t1.vendor_code,
t1.order_code,
t1.inventory_code,
t1.product_type,
t1.total_price_with_tax,
t1.total_price_without_tax,
t1.tax_amount,
@ -86,14 +86,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ppp.plan_payment_date,
ppp.plan_amount,
t5.plan_ticket_date,
t5.plan_amount as plan_ticket_amount
t5.plan_amount as plan_ticket_amount,
t6.type as product_type,
t6.level2_type as product_leve2_type
FROM
oms_payable_bill t1
left join project_order_info t2 on t1.order_code=t2.order_code
left join project_info t3 on t2.project_id=t3.id
left join oms_vendor_info t4 on t1.vendor_code=t4.vendor_code
left join oms_payable_payment_plan ppp on t1.last_payment_plan_id = ppp.id
left join oms_payable_ticket_plan t5 on t1.last_ticket_plan_id = t5.id
left join project_order_info t2 on t1.order_code=t2.order_code
left join project_info t3 on t2.project_id=t3.id
left join oms_vendor_info t4 on t1.vendor_code=t4.vendor_code
left join oms_payable_payment_plan ppp on t1.last_payment_plan_id = ppp.id
left join oms_payable_ticket_plan t5 on t1.last_ticket_plan_id = t5.id
left join product_info t6 on t1.product_code = t6.product_code
</sql>
<select id="selectOmsPayableBillList" parameterType="OmsPayableBill" resultMap="OmsPayableBillResult">
<include refid="selectOmsPayableBillRelationVo"/>