|
@@ -98,6 +98,18 @@
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
+ <select id="selectMigrateDatas" resultMap="BaseResultMap">
|
|
|
|
+ select
|
|
|
|
+ <include refid="baseSql" />
|
|
|
|
+ from t_waybill_no
|
|
|
|
+ <where>
|
|
|
|
+ 1 = 1
|
|
|
|
+ <if test="noCarWayBill.startBegin != null and noCarWayBill.startBegin != ''">
|
|
|
|
+ and intfaceStartTime BETWEEN #{noCarWayBill.startBegin} and #{noCarWayBill.startEnd}
|
|
|
|
+ </if>
|
|
|
|
+ </where>
|
|
|
|
+ limit 1000
|
|
|
|
+ </select>
|
|
<select id="selectAllByPageHis" resultMap="BaseResultMap">
|
|
<select id="selectAllByPageHis" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
<include refid="baseSql" />
|
|
<include refid="baseSql" />
|
|
@@ -207,6 +219,39 @@
|
|
,#{batchNumEnd,jdbcType=VARCHAR},#{failReason,jdbcType=VARCHAR},#{interType,jdbcType=INTEGER},#{splitFlag,jdbcType=INTEGER}
|
|
,#{batchNumEnd,jdbcType=VARCHAR},#{failReason,jdbcType=VARCHAR},#{interType,jdbcType=INTEGER},#{splitFlag,jdbcType=INTEGER}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
|
|
+ <insert id="insertHis" parameterType="com.jkcredit.invoice.model.entity.waybill.NoCarWayBill" >
|
|
|
|
+ insert into t_waybill_no_his_one (
|
|
|
|
+ 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,interType,splitFlag
|
|
|
|
+ )
|
|
|
|
+ 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},#{interType,jdbcType=INTEGER},#{splitFlag,jdbcType=INTEGER}
|
|
|
|
+ )
|
|
|
|
+ </insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.jkcredit.invoice.model.entity.waybill.NoCarWayBill" >
|
|
<update id="updateByPrimaryKey" parameterType="com.jkcredit.invoice.model.entity.waybill.NoCarWayBill" >
|
|
update t_waybill_no
|
|
update t_waybill_no
|
|
set customerName = #{customerName,jdbcType=VARCHAR},
|
|
set customerName = #{customerName,jdbcType=VARCHAR},
|
|
@@ -348,4 +393,8 @@
|
|
delete from t_waybill_no
|
|
delete from t_waybill_no
|
|
where billNum = BINARY #{billNum,jdbcType=VARCHAR} and billwayStatus < 1
|
|
where billNum = BINARY #{billNum,jdbcType=VARCHAR} and billwayStatus < 1
|
|
</delete>
|
|
</delete>
|
|
|
|
+ <delete id="deleteWayBill" parameterType="java.lang.String">
|
|
|
|
+ delete from t_waybill_no
|
|
|
|
+ where billNum = BINARY #{billNum,jdbcType=VARCHAR}
|
|
|
|
+ </delete>
|
|
</mapper>
|
|
</mapper>
|