|
@@ -1,17 +1,19 @@
|
|
|
package cn.com.ty.lift.ud.payment.mapper;
|
|
|
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.List;
|
|
|
|
|
|
import cn.com.ty.lift.ud.payment.mapper.entity.ApplyInvoiceItemEntity;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
|
|
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
+import org.apache.ibatis.annotations.Update;
|
|
|
|
|
|
/**
|
|
|
* 发票项目 -Repository
|
|
|
- *
|
|
|
+ *
|
|
|
* @author Xson
|
|
|
* @date 2020-04-22
|
|
|
*/
|
|
@@ -28,7 +30,10 @@ public interface ApplyInvoiceItemMapper extends BaseMapper<ApplyInvoiceItemEntit
|
|
|
int updateByPrimaryKeyWithBLOBs(ApplyInvoiceItemEntity record);
|
|
|
|
|
|
int updateByPrimaryKey(ApplyInvoiceItemEntity record);
|
|
|
-
|
|
|
+
|
|
|
@Select("SELECT * FROM apply_invoice_item WHERE invoice_id=#{id}")
|
|
|
- List<ApplyInvoiceItemEntity> findByInvoiceId(@Param("id")Long 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);
|
|
|
}
|