|
@@ -72,7 +72,7 @@
|
|
|
</sql>
|
|
|
<select id="selectAllByPage" resultMap="BaseResultMap">
|
|
|
select
|
|
|
- <include refid="baseSql" />,(select billwayStatus from t_waybill_no f where f.billNum = waybillNum) billStatus ,(SELECT g.calculateTime from t_CalculateInfor g where g.tradeId = transactionId) calculateTime
|
|
|
+ <include refid="baseSql" />,waybillStatus billStatus,calculateTime
|
|
|
from t_billInvoice
|
|
|
<where>
|
|
|
<if test="billInvoice.companyName != null and billInvoice.companyName != ''">
|
|
@@ -154,7 +154,7 @@
|
|
|
transactionId,
|
|
|
tradeMatchTime,
|
|
|
buyerName,
|
|
|
- buyerTaxpayerCode
|
|
|
+ buyerTaxpayerCode,calculateTime
|
|
|
)
|
|
|
values ( #{companyNum,jdbcType=VARCHAR},#{customerName,jdbcType=VARCHAR},#{companyName,jdbcType=VARCHAR},#{waybillNum,jdbcType=VARCHAR}, #{invoiceNum,jdbcType=VARCHAR},
|
|
|
#{invoiceCode,jdbcType=VARCHAR}, #{invoiceMakeTime,jdbcType=VARCHAR}, #{invoiceUrl,jdbcType=VARCHAR},
|
|
@@ -163,7 +163,7 @@
|
|
|
#{plateNum,jdbcType=VARCHAR},#{vehicleType,jdbcType=VARCHAR},#{sellerName,jdbcType=VARCHAR},
|
|
|
#{sellerTaxpayerCode,jdbcType=VARCHAR},#{waybillStatus,jdbcType=INTEGER}, #{waybillStartTime,jdbcType=VARCHAR}, #{waybillEndTime,jdbcType=VARCHAR}
|
|
|
, #{totalAmount,jdbcType=INTEGER}, #{taxRate,jdbcType=DOUBLE},#{invoiceType,jdbcType=VARCHAR},#{amount,jdbcType=INTEGER},
|
|
|
- #{transactionId,jdbcType=VARCHAR},#{tradeMatchTime,jdbcType=VARCHAR},#{buyerName,jdbcType=VARCHAR},#{buyerTaxpayerCode,jdbcType=VARCHAR}
|
|
|
+ #{transactionId,jdbcType=VARCHAR},#{tradeMatchTime,jdbcType=VARCHAR},#{buyerName,jdbcType=VARCHAR},#{buyerTaxpayerCode,jdbcType=VARCHAR},#{calculateTime,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.jkcredit.invoice.model.entity.invoice.BillInvoice" >
|
|
@@ -198,7 +198,8 @@
|
|
|
transactionId = #{transactionId,jdbcType=VARCHAR},
|
|
|
tradeMatchTime = #{tradeMatchTime,jdbcType=VARCHAR},
|
|
|
buyerName = #{buyerName,jdbcType=VARCHAR},
|
|
|
- buyerTaxpayerCode = #{buyerTaxpayerCode,jdbcType=VARCHAR}
|
|
|
+ buyerTaxpayerCode = #{buyerTaxpayerCode,jdbcType=VARCHAR},
|
|
|
+ calculateTime = #{calculateTime,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
@@ -233,18 +234,19 @@
|
|
|
transactionId = #{transactionId,jdbcType=VARCHAR},
|
|
|
tradeMatchTime = #{tradeMatchTime,jdbcType=VARCHAR},
|
|
|
buyerName = #{buyerName,jdbcType=VARCHAR},
|
|
|
- buyerTaxpayerCode = #{buyerTaxpayerCode,jdbcType=VARCHAR}
|
|
|
+ buyerTaxpayerCode = #{buyerTaxpayerCode,jdbcType=VARCHAR},
|
|
|
+ calculateTime = #{calculateTime,jdbcType=VARCHAR}
|
|
|
where BINARY invoiceNum = #{invoiceNum,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<select id="selectByBillNum" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
- <include refid="baseSql" />
|
|
|
+ <include refid="baseSql" />,calculateTime
|
|
|
from t_billInvoice
|
|
|
where BINARY waybillNum = #{waybillNum,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<select id="selectByInvoiceNum" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
- <include refid="baseSql" />
|
|
|
+ <include refid="baseSql" />,calculateTime
|
|
|
from t_billInvoice
|
|
|
where BINARY invoiceNum = #{invoiceNum,jdbcType=VARCHAR}
|
|
|
</select>
|