|
|
|
@ -4,6 +4,7 @@ import com.hfkj.entity.BsGasOrderReceipt; |
|
|
|
|
import org.apache.ibatis.annotations.Insert; |
|
|
|
|
import org.apache.ibatis.annotations.Options; |
|
|
|
|
import org.apache.ibatis.annotations.Param; |
|
|
|
|
import org.apache.ibatis.annotations.Update; |
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
@ -12,49 +13,36 @@ import java.util.List; |
|
|
|
|
*/ |
|
|
|
|
public interface BsGasOrderReceiptMapperExt { |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
@Update({ |
|
|
|
|
"<script>" + |
|
|
|
|
" insert into bs_gas_order_receipt (apply_no, user_receipt_id, ", |
|
|
|
|
" company_name, tax_no, ", |
|
|
|
|
" contacts_phone, email, ", |
|
|
|
|
" agent_id, agent_name, ", |
|
|
|
|
" agent_staff_id, agent_staff_name, ", |
|
|
|
|
" mer_no, mer_name, ", |
|
|
|
|
" order_no, order_child_no, ", |
|
|
|
|
" oil_no, amount, `status`, ", |
|
|
|
|
" fail_remark, create_time, ", |
|
|
|
|
" update_time, ext_1, ", |
|
|
|
|
" ext_2, ext_3)", |
|
|
|
|
" values " + |
|
|
|
|
" <foreach collection='list' item='item' index='index' separator=','>" + |
|
|
|
|
" (" + |
|
|
|
|
" #{item.applyNo,jdbcType=VARCHAR}, " + |
|
|
|
|
" #{item.userReceiptId,jdbcType=BIGINT}, ", |
|
|
|
|
" #{item.companyName,jdbcType=VARCHAR}," + |
|
|
|
|
" #{item.taxNo,jdbcType=VARCHAR}, ", |
|
|
|
|
" #{item.contactsPhone,jdbcType=VARCHAR}," + |
|
|
|
|
" #{item.email,jdbcType=VARCHAR}, ", |
|
|
|
|
" #{item.agentId,jdbcType=BIGINT}, " + |
|
|
|
|
" #{item.agentName,jdbcType=VARCHAR}, ", |
|
|
|
|
" #{item.agentStaffId,jdbcType=BIGINT}," + |
|
|
|
|
" #{item.agentStaffName,jdbcType=VARCHAR}, ", |
|
|
|
|
" #{item.merNo,jdbcType=VARCHAR}, " + |
|
|
|
|
" #{item.merName,jdbcType=VARCHAR}, ", |
|
|
|
|
" #{item.orderNo,jdbcType=VARCHAR}, " + |
|
|
|
|
" #{item.orderChildNo,jdbcType=VARCHAR}, ", |
|
|
|
|
" #{item.oilNo,jdbcType=VARCHAR}," + |
|
|
|
|
" #{item.amount,jdbcType=DECIMAL}, " + |
|
|
|
|
" #{item.status,jdbcType=INTEGER}, ", |
|
|
|
|
" #{item.failRemark,jdbcType=VARCHAR}," + |
|
|
|
|
" #{item.createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
" #{item.updateTime,jdbcType=TIMESTAMP}," + |
|
|
|
|
" #{item.ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
" #{item.ext2,jdbcType=VARCHAR}," + |
|
|
|
|
" #{item.ext3,jdbcType=VARCHAR}" + |
|
|
|
|
" )" + |
|
|
|
|
" </foreach>" + |
|
|
|
|
"<foreach collection='list' item='item' separator=';'>", |
|
|
|
|
" update bs_gas_order_receipt", |
|
|
|
|
" set apply_no = #{item.applyNo,jdbcType=VARCHAR},", |
|
|
|
|
" user_receipt_id = #{item.userReceiptId,jdbcType=BIGINT},", |
|
|
|
|
" company_name = #{item.companyName,jdbcType=VARCHAR},", |
|
|
|
|
" tax_no = #{item.taxNo,jdbcType=VARCHAR},", |
|
|
|
|
" contacts_phone = #{item.contactsPhone,jdbcType=VARCHAR},", |
|
|
|
|
" email = #{item.email,jdbcType=VARCHAR},", |
|
|
|
|
" agent_id = #{item.agentId,jdbcType=BIGINT},", |
|
|
|
|
" agent_name = #{item.agentName,jdbcType=VARCHAR},", |
|
|
|
|
" agent_staff_id = #{item.agentStaffId,jdbcType=BIGINT},", |
|
|
|
|
" agent_staff_name = #{item.agentStaffName,jdbcType=VARCHAR},", |
|
|
|
|
" mer_no = #{item.merNo,jdbcType=VARCHAR},", |
|
|
|
|
" mer_name = #{item.merName,jdbcType=VARCHAR},", |
|
|
|
|
" order_no = #{item.orderNo,jdbcType=VARCHAR},", |
|
|
|
|
" order_child_no = #{item.orderChildNo,jdbcType=VARCHAR},", |
|
|
|
|
" oil_no = #{item.oilNo,jdbcType=VARCHAR},", |
|
|
|
|
" amount = #{item.amount,jdbcType=DECIMAL},", |
|
|
|
|
" `status` = #{item.status,jdbcType=INTEGER},", |
|
|
|
|
" fail_remark = #{item.failRemark,jdbcType=VARCHAR},", |
|
|
|
|
" create_time = #{item.createTime,jdbcType=TIMESTAMP},", |
|
|
|
|
" update_time = #{item.updateTime,jdbcType=TIMESTAMP},", |
|
|
|
|
" ext_1 = #{item.ext1,jdbcType=VARCHAR},", |
|
|
|
|
" ext_2 = #{item.ext2,jdbcType=VARCHAR},", |
|
|
|
|
" ext_3 = #{item.ext3,jdbcType=VARCHAR}", |
|
|
|
|
" where id = #{item.id,jdbcType=BIGINT}", |
|
|
|
|
"</foreach>", |
|
|
|
|
"</script>" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true, keyProperty="id") |
|
|
|
|
void batchInsert(@Param("list") List<BsGasOrderReceipt> data); |
|
|
|
|
void batchUpdate(@Param("list") List<BsGasOrderReceipt> data); |
|
|
|
|
} |
|
|
|
|