|
@@ -34,6 +34,6 @@ public interface ApplyInvoiceItemMapper extends BaseMapper<ApplyInvoiceItemEntit
|
|
|
@Select("SELECT * FROM apply_invoice_item WHERE invoice_id=#{id}")
|
|
|
List<ApplyInvoiceItemEntity> findByInvoiceId(@Param("id") Long id);
|
|
|
|
|
|
- @Update(value = "update apply_invoice_item set sl = #{sl} WHERE invoice_id=#{invoiceId}")
|
|
|
- int updateSlByInvoiceId(@Param("sl") BigDecimal sl, @Param("invoiceId") Long invoiceId);
|
|
|
+ @Update(value = "update apply_invoice_item set sl = #{sl} WHERE invoice_id=#{invoiceId} and id = #{id}")
|
|
|
+ int updateSlByInvoiceId(@Param("sl") BigDecimal sl, @Param("invoiceId") Long invoiceId,@Param("id") Long id);
|
|
|
}
|