嗨森逛服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hai-server/hai-service/src/main/java/com/hai/dao/HighOilCardMapperExt.java

59 lines
1.9 KiB

package com.hai.dao;
import com.hai.entity.HighOilCard;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* mapper扩展类
*/
public interface HighOilCardMapperExt {
@Insert({
"<script>" +
"insert into high_oil_card (" +
"company_id, " +
"company_name, " +
"org_id," +
"org_name, " +
"card_no, " +
"amount," +
"contact_name, " +
"contact_phone," +
"status," +
"bind_status, " +
"create_time," +
"update_time, " +
"op_user_id, " +
"op_user_name, " +
"ext_1, " +
"ext_2, " +
"ext_3) " +
"values " +
"<foreach collection='list' item='item' index='index' separator=','>",
"(#{item.companyId,jdbcType=BIGINT}, " +
" #{item.companyName,jdbcType=VARCHAR}, " +
" #{item.orgId,jdbcType=BIGINT}, " +
" #{item.orgName,jdbcType=VARCHAR}," +
" #{item.cardNo,jdbcType=VARCHAR}," +
" #{item.amount,jdbcType=DECIMAL}, " +
" #{item.contactName,jdbcType=VARCHAR}," +
" #{item.contactPhone,jdbcType=VARCHAR}, " +
" #{item.status,jdbcType=INTEGER}," +
" #{item.bindStatus,jdbcType=INTEGER}," +
" #{item.createTime,jdbcType=TIMESTAMP}," +
" #{item.updateTime,jdbcType=TIMESTAMP}, " +
" #{item.opUserId,jdbcType=BIGINT}," +
" #{item.opUserName,jdbcType=VARCHAR}, " +
" #{item.ext1,jdbcType=VARCHAR}," +
" #{item.ext2,jdbcType=VARCHAR}, " +
" #{item.ext3,jdbcType=VARCHAR})",
"</foreach>",
"</script>"
})
void insertList(@Param(value = "list") List<HighOilCard> oilCardList);
}