hjg
2024-10-28 b5fbd89107c49777ff92a5b81797c56583949ca6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.mandi.fendan.mapper;
 
import com.mandi.fendan.persist.SalesReturn;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
 
 
public interface SaleReturnMapper {
 
    void saveEntity(SalesReturn salesReturn);
    //根据Id查询
    @Select("select a.* from SalesReturn a where a.itemId=#{itemId}")
    SalesReturn queryById(@Param("itemId") String itemId);
 
    void updateEntity(SalesReturn convert);
 
    //根据Id删除
    @Delete("delete from SalesReturn where itemId=#{itemId} ")
    void deleteByItemId(@Param("itemId") String itemId);
}