id,
customerName,
companyName,
billNum,
plateNum,
plateColor,
startTime,
sourceAddr,
destAddr,
predictEndTime,
fee,
titleType,
taxplayerCode,
intfaceStartTime,
interfaceEndTime,
billwayStatus,
hisFlag,
companyAdress,
companyBank,
companyBankAcc,
companyTel,companyNum,updateTime,failReason
insert into t_waybill_Import (
customerName,
companyName,
billNum,
plateNum,
plateColor,
startTime,
sourceAddr,
destAddr,
predictEndTime,
fee,
titleType,
taxplayerCode,
intfaceStartTime,
interfaceEndTime,
billwayStatus,
hisFlag,
companyAdress,
companyBank,
companyBankAcc,
companyTel,companyNum,updateTime,batchNumber,batchNumEnd,failReason
)
values ( #{customerName,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR},
#{billNum,jdbcType=VARCHAR}, #{plateNum,jdbcType=VARCHAR}, #{plateColor,jdbcType=VARCHAR},
#{startTime,jdbcType=VARCHAR}, #{sourceAddr,jdbcType=VARCHAR}, #{destAddr,jdbcType=VARCHAR},
#{predictEndTime,jdbcType=VARCHAR}, #{fee,jdbcType=INTEGER}, #{titleType,jdbcType=INTEGER},
#{taxplayerCode,jdbcType=VARCHAR},#{intfaceStartTime,jdbcType=VARCHAR},#{interfaceEndTime,jdbcType=VARCHAR},
#{billwayStatus,jdbcType=INTEGER},#{hisFlag,jdbcType=INTEGER}, #{companyAdress,jdbcType=VARCHAR}, #{companyBank,jdbcType=VARCHAR}
, #{companyBankAcc,jdbcType=VARCHAR}, #{companyTel,jdbcType=VARCHAR},#{companyNum,jdbcType=VARCHAR},#{updateTime,jdbcType=VARCHAR},#{batchNum,jdbcType=VARCHAR},#{batchNumEnd,jdbcType=VARCHAR},#{failReason,jdbcType=VARCHAR}
)
update t_waybill_Import
set customerName = #{customerName,jdbcType=VARCHAR},
companyName = #{companyName,jdbcType=VARCHAR},
billNum = #{billNum,jdbcType=VARCHAR},
plateNum = #{plateNum,jdbcType=VARCHAR},
plateColor = #{plateColor,jdbcType=VARCHAR},
startTime = #{startTime,jdbcType=VARCHAR},
sourceAddr = #{sourceAddr,jdbcType=VARCHAR},
destAddr = #{destAddr,jdbcType=VARCHAR},
predictEndTime = #{predictEndTime,jdbcType=VARCHAR},
fee = #{fee,jdbcType=INTEGER},
titleType = #{titleType,jdbcType=INTEGER},
taxplayerCode = #{taxplayerCode,jdbcType=VARCHAR},
intfaceStartTime = #{intfaceStartTime,jdbcType=VARCHAR},
interfaceEndTime = #{interfaceEndTime,jdbcType=VARCHAR},
billwayStatus = #{billwayStatus,jdbcType=INTEGER},
hisFlag = #{hisFlag,jdbcType=INTEGER},
companyAdress = #{companyAdress,jdbcType=VARCHAR},
companyBank = #{companyBank,jdbcType=VARCHAR},
companyBankAcc = #{companyBankAcc,jdbcType=VARCHAR},
companyTel = #{companyTel,jdbcType=VARCHAR},
companyNum = #{companyNum,jdbcType=VARCHAR},
failReason = #{failReason,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
update t_waybill_Import
set customerName = #{customerName,jdbcType=VARCHAR},
companyName = #{companyName,jdbcType=VARCHAR},
billNum = #{billNum,jdbcType=VARCHAR},
plateNum = #{plateNum,jdbcType=VARCHAR},
plateColor = #{plateColor,jdbcType=VARCHAR},
startTime = #{startTime,jdbcType=VARCHAR},
sourceAddr = #{sourceAddr,jdbcType=VARCHAR},
destAddr = #{destAddr,jdbcType=VARCHAR},
predictEndTime = #{predictEndTime,jdbcType=VARCHAR},
fee = #{fee,jdbcType=INTEGER},
titleType = #{titleType,jdbcType=INTEGER},
taxplayerCode = #{taxplayerCode,jdbcType=VARCHAR},
intfaceStartTime = #{intfaceStartTime,jdbcType=VARCHAR},
interfaceEndTime = #{interfaceEndTime,jdbcType=VARCHAR},
billwayStatus = #{billwayStatus,jdbcType=INTEGER},
hisFlag = #{hisFlag,jdbcType=INTEGER},
companyAdress = #{companyAdress,jdbcType=VARCHAR},
companyBank = #{companyBank,jdbcType=VARCHAR},
companyBankAcc = #{companyBankAcc,jdbcType=VARCHAR},
companyTel = #{companyTel,jdbcType=VARCHAR},
companyNum = #{companyNum,jdbcType=VARCHAR},
failReason = #{failReason,jdbcType=VARCHAR}
where billNum = BINARY #{billNum,jdbcType=VARCHAR} and batchNumber = BINARY #{batchNum,jdbcType=VARCHAR}
UPDATE t_waybill_Import set companyName = #{newCompanyName} where companyName = #{oldCompanyName}