Commit 54091b81 by 王军业

[日期转换问题]

1 parent 4d7402a3
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vion.financial.mapper.DeliverGoodsMapper"> <mapper namespace="com.vion.financial.mapper.DeliverGoodsMapper">
<insert id="addDeliverGoods" parameterType="com.vion.financial.entity.DeliverGoods"> <insert id="addDeliverGoods" parameterType="com.vion.financial.entity.DeliverGoods">
insert into tb_deliver_goods (contract_unid,deliver_goods_date,goods_acceptanc_date) insert into tb_deliver_goods (contract_unid,deliver_goods_date,goods_acceptanc_date)
values(#{contract_unid},#{deliver_goods_date},#{goods_acceptanc_date}) values(#{contract_unid},#{deliver_goods_date},#{goods_acceptanc_date})
</insert> </insert>
<update id="updateDeliverGoods" parameterType="com.vion.financial.entity.DeliverGoods"> <update id="updateDeliverGoods" parameterType="com.vion.financial.entity.DeliverGoods">
update tb_deliver_goods set update tb_deliver_goods set
<if test="deliver_goods_date !=null"> <if test="deliver_goods_date !=null">
deliver_goods_date = #{deliver_goods_date}, deliver_goods_date = #{deliver_goods_date},
goods_acceptanc_date = #{goods_acceptanc_date} goods_acceptanc_date = #{goods_acceptanc_date}
</if> </if>
where deliver_unid = #{deliver_unid} where deliver_unid = #{deliver_unid}
</update> </update>
<select id="queryDeliverGoods" parameterType="String" resultType="com.vion.financial.entity.DeliverGoods"> <select id="queryDeliverGoods" parameterType="String" resultType="com.vion.financial.entity.DeliverGoods">
select *from tb_deliver_goods where contract_unid = #{contract_unid} select *from tb_deliver_goods where contract_unid = #{contract_unid}
</select> </select>
<delete id="deleteDeliverGoods" parameterType="int"> <delete id="deleteDeliverGoods" parameterType="int">
delete from tb_deliver_goods where deliver_unid = #{deliver_unid} delete from tb_deliver_goods where deliver_unid = #{deliver_unid}
</delete> </delete>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vion.financial.mapper.ReceiptMapper"> <mapper namespace="com.vion.financial.mapper.ReceiptMapper">
<insert id="addReceipt" parameterType="com.vion.financial.entity.Receipt"> <insert id="addReceipt" parameterType="com.vion.financial.entity.Receipt">
insert into tb_receipt (contract_unid,receipt_progress,receipt_amount,oa_flow_id, insert into tb_receipt (contract_unid,receipt_progress,receipt_amount,oa_flow_id,
<if test="receipt_note !=null and receipt_note !=''"> <if test="receipt_note !=null and receipt_note !=''">
receipt_note, receipt_note,
</if> </if>
create_date) create_date)
values( #{contract_unid},#{receipt_progress},#{receipt_amount},#{oa_flow_id}, values( #{contract_unid},#{receipt_progress},#{receipt_amount},#{oa_flow_id},
<if test="receipt_note !=null and receipt_note !=''"> <if test="receipt_note !=null and receipt_note !=''">
#{receipt_note}, #{receipt_note},
</if> </if>
now()) now())
</insert> </insert>
<update id="updateReceipt" parameterType="com.vion.financial.entity.Receipt"> <update id="updateReceipt" parameterType="com.vion.financial.entity.Receipt">
update tb_receipt set update tb_receipt set
<if test="receipt_progress !=null"> <if test="receipt_progress !=null">
receipt_progress = #{receipt_progress}, receipt_progress = #{receipt_progress},
</if> </if>
<if test="receipt_amount !=null"> <if test="receipt_amount !=null">
receipt_amount = #{receipt_amount}, receipt_amount = #{receipt_amount},
</if> </if>
<if test="oa_flow_id !=null and oa_flow_id !=''"> <if test="oa_flow_id !=null and oa_flow_id !=''">
oa_flow_id = #{oa_flow_id}, oa_flow_id = #{oa_flow_id},
</if> </if>
<if test="receipt_note !=null and receipt_note !=''"> <if test="receipt_note !=null and receipt_note !=''">
receipt_note = #{receipt_note} receipt_note = #{receipt_note}
</if> </if>
<!-- <if test="create_date !=null "> <!-- <if test="create_date !=null ">
create_date = now() create_date = now()
</if> --> </if> -->
where receipt_unid = #{receipt_unid} where receipt_unid = #{receipt_unid}
</update> </update>
<select id="queryReceipt" parameterType="String" resultType="com.vion.financial.entity.Receipt"> <select id="queryReceipt" parameterType="String" resultType="com.vion.financial.entity.Receipt">
select *from tb_receipt where contract_unid = #{contract_unid} select receipt_unid, contract_unid,receipt_progress,cast(receipt_amount as decimal(18,2)),oa_flow_id,receipt_note,create_date from tb_receipt where contract_unid = #{contract_unid}
</select> </select>
<delete id="deleteReceipt" parameterType="int"> <delete id="deleteReceipt" parameterType="int">
delete from tb_receipt where receipt_unid = #{receipt_unid} delete from tb_receipt where receipt_unid = #{receipt_unid}
</delete> </delete>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.vion.financial.mapper.ReturnInfoMapper"> <mapper namespace="com.vion.financial.mapper.ReturnInfoMapper">
<insert id="addReturnInfo" parameterType="com.vion.financial.entity.ReturnInfo"> <insert id="addReturnInfo" parameterType="com.vion.financial.entity.ReturnInfo">
insert into tb_return_info ( insert into tb_return_info (
contract_unid, contract_unid,
<if test="reback_progress !=null and reback_progress !=''"> <if test="reback_progress !=null and reback_progress !=''">
reback_progress, reback_progress,
</if> </if>
<if test="reback_date !=null"> <if test="reback_date !=null">
reback_date, reback_date,
</if> </if>
<if test="actual_reback_amount !=null and actual_reback_amount !=''"> <if test="actual_reback_amount !=null and actual_reback_amount !=''">
actual_reback_amount, actual_reback_amount,
</if> </if>
<if test="reback_note !=null and reback_note !=''"> <if test="reback_note !=null and reback_note !=''">
reback_note reback_note
</if> </if>
) )
values ( values (
#{contract_unid}, #{contract_unid},
<if test="reback_progress !=null and reback_progress !=''"> <if test="reback_progress !=null and reback_progress !=''">
#{reback_progress}, #{reback_progress},
</if> </if>
<if test="reback_date !=null"> <if test="reback_date !=null">
#{reback_date,jdbcType=DATE}, #{reback_date,jdbcType=DATE},
</if> </if>
<if test="actual_reback_amount !=null and actual_reback_amount !=''"> <if test="actual_reback_amount !=null and actual_reback_amount !=''">
#{actual_reback_amount}, #{actual_reback_amount},
</if> </if>
<if test="reback_note !=null and reback_note !=''"> <if test="reback_note !=null and reback_note !=''">
#{reback_note} #{reback_note}
</if> </if>
) )
</insert> </insert>
<update id="updateReturnInfo" parameterType="com.vion.financial.entity.ReturnInfo"> <update id="updateReturnInfo" parameterType="com.vion.financial.entity.ReturnInfo">
update tb_return_info set ( update tb_return_info set (
<if test="reback_progress !=null and reback_progress !=''"> <if test="reback_progress !=null and reback_progress !=''">
reback_progress = #{reback_progress}, reback_progress = #{reback_progress},
</if> </if>
<if test="reback_date !=null and reback_date !=''"> <if test="reback_date !=null">
reback_date = #{reback_date}, reback_date = #{reback_date},
</if> </if>
<if test="actual_reback_amount !=null and actual_reback_amount !=''"> <if test="actual_reback_amount !=null and actual_reback_amount !=''">
actual_reback_amount = #{actual_reback_amount}, actual_reback_amount = #{actual_reback_amount},
</if> </if>
<if test="reback_note !=null and reback_note !=''"> <if test="reback_note !=null and reback_note !=''">
reback_note = #{reback_note} reback_note = #{reback_note}
</if> </if>
) )
where reback_unid = #{reback_unid} where reback_unid = #{reback_unid}
</update> </update>
<select id="queryReturnInfo" parameterType="String" resultType="com.vion.financial.entity.ReturnInfo"> <select id="queryReturnInfo" parameterType="String" resultType="com.vion.financial.entity.ReturnInfo">
select *from tb_return_info where contract_unid = #{contract_unid} select reback_unid, contract_unid ,reback_progress ,reback_date, cast(actual_reback_amount as decimal(18,2)),reback_note from tb_return_info where contract_unid = #{contract_unid}
</select> </select>
<delete id="deleteReturnInfo" parameterType="int"> <delete id="deleteReturnInfo" parameterType="int">
delete from tb_return_info where reback_unid = #{reback_unid} delete from tb_return_info where reback_unid = #{reback_unid}
</delete> </delete>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!