Commit 813092f8 by 王军业

[物理删除]

1 parent 95f50612
...@@ -302,8 +302,8 @@ ...@@ -302,8 +302,8 @@
where contract_unid=#{contract_unid} where contract_unid=#{contract_unid}
</update> </update>
<delete id="deleteOne" parameterType="java.lang.String"> <delete id="deleteOne" parameterType="java.lang.String">
update tb_contract set is_delete = true where contract_unid = #{contract_unid} <!-- update tb_contract set is_delete = true where contract_unid = #{contract_unid} -->
<!-- delete from tb_contract where contract_unid = #{contract_unid} --> delete from tb_contract where contract_unid = #{contract_unid}
</delete> </delete>
<select id="count" parameterType="com.vion.financial.vo.SelectVo" resultType="int"> <select id="count" parameterType="com.vion.financial.vo.SelectVo" resultType="int">
...@@ -565,7 +565,14 @@ ...@@ -565,7 +565,14 @@
<select id="exportContracts" parameterType="com.vion.financial.vo.SelectVo" resultType="com.vion.financial.excel.ExportModel"> <select id="exportContracts" parameterType="com.vion.financial.vo.SelectVo" resultType="com.vion.financial.excel.ExportModel">
select select (
<if test="columns == null">
*
</if>
<foreach collection="columns" index="index" item="column" open=" " separator="," close=" ">
#{column}
</foreach>
) from (select
contract_unid, salesperson_unid, province, city, county, province_name,city_name,county_name, contract_unid, salesperson_unid, province, city, county, province_name,city_name,county_name,
guarantee_period, sign_date, product_line_type, contract_state, guarantee_period, sign_date, product_line_type, contract_state,
contract_type, cast(contract_amount as decimal(18,2)), cast(deduct_amount as decimal(18,2)), contract_amount_note, contract_type, cast(contract_amount as decimal(18,2)), cast(deduct_amount as decimal(18,2)), contract_amount_note,
...@@ -709,7 +716,8 @@ ...@@ -709,7 +716,8 @@
</if> </if>
and is_delete=false and is_delete=false
and project_unid is not null and project_unid is not null
and customer_unid is not null and customer_unid is not null
)
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!