|
@@ -37,6 +37,8 @@
|
|
|
<result column="billStatus" property="billStatus"/>
|
|
|
<result column="calculateTime" property="calculateTime"/>
|
|
|
<result column="interType" property="interType"/>
|
|
|
+ <result column="invoiceStatus" property="invoiceStatus"/>
|
|
|
+ <result column="msg" property="msg"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="baseSql">
|
|
@@ -74,7 +76,7 @@
|
|
|
</sql>
|
|
|
<select id="selectAllByPage" resultMap="BaseResultMap">
|
|
|
select
|
|
|
- <include refid="baseSql" />,waybillStatus billStatus,calculateTime
|
|
|
+ <include refid="baseSql" />,waybillStatus billStatus,calculateTime,invoiceStatus,msg
|
|
|
from t_billInvoice
|
|
|
<where>
|
|
|
<if test="billInvoice.customerName != null and billInvoice.customerName != ''">
|
|
@@ -180,7 +182,9 @@
|
|
|
transactionId,
|
|
|
tradeMatchTime,
|
|
|
buyerName,
|
|
|
- buyerTaxpayerCode,calculateTime
|
|
|
+ buyerTaxpayerCode,calculateTime,
|
|
|
+ invoiceStatus,
|
|
|
+ msg
|
|
|
)
|
|
|
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},
|
|
@@ -189,7 +193,10 @@
|
|
|
#{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},#{calculateTime,jdbcType=VARCHAR}
|
|
|
+ #{transactionId,jdbcType=VARCHAR},#{tradeMatchTime,jdbcType=VARCHAR},#{buyerName,jdbcType=VARCHAR},#{buyerTaxpayerCode,jdbcType=VARCHAR}
|
|
|
+ ,#{calculateTime,jdbcType=VARCHAR}
|
|
|
+ ,#{invoiceStatus,jdbcType=INTEGER}
|
|
|
+ ,#{msg,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.jkcredit.invoice.model.entity.invoice.BillInvoice" >
|
|
@@ -266,7 +273,7 @@
|
|
|
</update>
|
|
|
<select id="selectByBillNum" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
- <include refid="baseSql" />,calculateTime
|
|
|
+ <include refid="baseSql" />,calculateTime,invoiceStatus,msg
|
|
|
from t_billInvoice
|
|
|
where waybillNum = BINARY #{waybillNum,jdbcType=VARCHAR}
|
|
|
</select>
|