批量付款报错修复
This commit is contained in:
parent
1f8eb3544a
commit
2392bf4be8
|
|
@ -149,6 +149,10 @@ public class ShopVendorServiceImpl extends ServiceImpl<ShopVendorMapper, ShopVen
|
||||||
.setFlowId(item.getId()).setUserId(StpKit.USER.getLoginIdAsLong()).setCreateTime(DateUtil.date().toLocalDateTime()));
|
.setFlowId(item.getId()).setUserId(StpKit.USER.getLoginIdAsLong()).setCreateTime(DateUtil.date().toLocalDateTime()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (unPaidAmount.compareTo(BigDecimal.ZERO) == 0) {
|
||||||
|
throw new ApiNotPrintException("此账单已付款");
|
||||||
|
}
|
||||||
|
|
||||||
if (unPaidAmount.compareTo(payDTO.getAmount()) != 0) {
|
if (unPaidAmount.compareTo(payDTO.getAmount()) != 0) {
|
||||||
throw new ApiNotPrintException("批量付款应全部付款");
|
throw new ApiNotPrintException("批量付款应全部付款");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
|
|
||||||
<select id="selectUnPaid" resultType="com.czg.product.entity.ConsStockFlow">
|
<select id="selectUnPaid" resultType="com.czg.product.entity.ConsStockFlow">
|
||||||
select * from tb_cons_stock_flow where amount_payable > actual_payment_amount and shop_id=#{shopId}
|
select * from tb_cons_stock_flow where amount_payable > actual_payment_amount and shop_id=#{shopId}
|
||||||
<foreach collection="vendorIds" item="id" open="and vendor_id in (" separator="," close=")">
|
<foreach collection="vendorIds" item="id" open="and id in (" separator="," close=")">
|
||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue