2023-07-21 16:28:34 +08:00
|
|
|
package com.jsowell.pile.mapper;
|
|
|
|
|
|
|
|
|
|
import com.jsowell.pile.domain.ClearingBillDetail;
|
|
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
public interface ClearingBillDetailMapper {
|
|
|
|
|
/**
|
|
|
|
|
* delete by primary key
|
2023-09-21 15:45:33 +08:00
|
|
|
*
|
2023-07-21 16:28:34 +08:00
|
|
|
* @param id primaryKey
|
|
|
|
|
* @return deleteCount
|
|
|
|
|
*/
|
|
|
|
|
int deleteByPrimaryKey(Integer id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* insert record to table
|
2023-09-21 15:45:33 +08:00
|
|
|
*
|
2023-07-21 16:28:34 +08:00
|
|
|
* @param record the record
|
|
|
|
|
* @return insert count
|
|
|
|
|
*/
|
|
|
|
|
int insert(ClearingBillDetail record);
|
|
|
|
|
|
|
|
|
|
int insertOrUpdate(ClearingBillDetail record);
|
|
|
|
|
|
|
|
|
|
int insertOrUpdateSelective(ClearingBillDetail record);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* insert record to table selective
|
2023-09-21 15:45:33 +08:00
|
|
|
*
|
2023-07-21 16:28:34 +08:00
|
|
|
* @param record the record
|
|
|
|
|
* @return insert count
|
|
|
|
|
*/
|
|
|
|
|
int insertSelective(ClearingBillDetail record);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* select by primary key
|
2023-09-21 15:45:33 +08:00
|
|
|
*
|
2023-07-21 16:28:34 +08:00
|
|
|
* @param id primary key
|
|
|
|
|
* @return object by primary key
|
|
|
|
|
*/
|
|
|
|
|
ClearingBillDetail selectByPrimaryKey(Integer id);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* update record selective
|
2023-09-21 15:45:33 +08:00
|
|
|
*
|
2023-07-21 16:28:34 +08:00
|
|
|
* @param record the updated record
|
|
|
|
|
* @return update count
|
|
|
|
|
*/
|
|
|
|
|
int updateByPrimaryKeySelective(ClearingBillDetail record);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* update record
|
2023-09-21 15:45:33 +08:00
|
|
|
*
|
2023-07-21 16:28:34 +08:00
|
|
|
* @param record the updated record
|
|
|
|
|
* @return update count
|
|
|
|
|
*/
|
|
|
|
|
int updateByPrimaryKey(ClearingBillDetail record);
|
|
|
|
|
|
|
|
|
|
int updateBatch(List<ClearingBillDetail> list);
|
|
|
|
|
|
|
|
|
|
int batchInsert(@Param("list") List<ClearingBillDetail> list);
|
2023-08-22 09:42:30 +08:00
|
|
|
|
|
|
|
|
ClearingBillDetail selectClearingBillCode(String orderCode);
|
2023-09-21 13:09:52 +08:00
|
|
|
|
|
|
|
|
// 根据清分编号删除
|
|
|
|
|
int deleteByClearingBillCode(@Param("clearingBillCode") String clearingBillCode);
|
2023-07-21 16:28:34 +08:00
|
|
|
}
|