|
@@ -30,6 +30,7 @@
|
|
|
<result property="firstCreditTime" column="first_credit_time" jdbcType="TIMESTAMP"/>
|
|
<result property="firstCreditTime" column="first_credit_time" jdbcType="TIMESTAMP"/>
|
|
|
<result property="lastConsumeTime" column="last_consume_time" jdbcType="TIMESTAMP"/>
|
|
<result property="lastConsumeTime" column="last_consume_time" jdbcType="TIMESTAMP"/>
|
|
|
<result property="auditorId" column="auditor_id" jdbcType="VARCHAR"/>
|
|
<result property="auditorId" column="auditor_id" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="status" column="status" jdbcType="VARCHAR"/>
|
|
|
<result property="remarks" column="remarks" jdbcType="VARCHAR"/>
|
|
<result property="remarks" column="remarks" jdbcType="VARCHAR"/>
|
|
|
<result property="createName" column="create_name" jdbcType="VARCHAR"/>
|
|
<result property="createName" column="create_name" jdbcType="VARCHAR"/>
|
|
|
<result property="auditorName" column="auditor_name" jdbcType="VARCHAR"/>
|
|
<result property="auditorName" column="auditor_name" jdbcType="VARCHAR"/>
|
|
@@ -41,9 +42,18 @@
|
|
|
a.company_name, a.address, a.emergency_contact, a.emergency_contact_phone,
|
|
a.company_name, a.address, a.emergency_contact, a.emergency_contact_phone,
|
|
|
a.invoice_title, a.tax_no, a.bank_name, a.bank_account, a.invoice_address_phone,
|
|
a.invoice_title, a.tax_no, a.bank_name, a.bank_account, a.invoice_address_phone,
|
|
|
a.credit_status, a.total_arrears_amount, a.unsettled_bill_count,
|
|
a.credit_status, a.total_arrears_amount, a.unsettled_bill_count,
|
|
|
- a.first_credit_time, a.last_consume_time, a.auditor_id, a.remarks
|
|
|
|
|
|
|
+ a.first_credit_time, a.last_consume_time, a.auditor_id, a.status, a.remarks
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
+ <update id="updateStatusById">
|
|
|
|
|
+ update psi_credit_customer
|
|
|
|
|
+ set status = #{status}
|
|
|
|
|
+ <if test="auditorId != null and auditorId != ''">
|
|
|
|
|
+ , auditor_id = #{auditorId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ where id = #{id}
|
|
|
|
|
+ </update>
|
|
|
|
|
+
|
|
|
<select id="findList" resultMap="BaseResultMap">
|
|
<select id="findList" resultMap="BaseResultMap">
|
|
|
select <include refid="Base_Column_List"></include>, cu.name as create_name, au.name as auditor_name
|
|
select <include refid="Base_Column_List"></include>, cu.name as create_name, au.name as auditor_name
|
|
|
from psi_credit_customer a
|
|
from psi_credit_customer a
|
|
@@ -70,4 +80,4 @@
|
|
|
and id != #{id}
|
|
and id != #{id}
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
-</mapper>
|
|
|
|
|
|
|
+</mapper>
|