You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.1 KiB
XML
30 lines
1.1 KiB
XML
<?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">
|
|
<mapper namespace="com.glxp.api.dao.inout.IoOrderInvoiceMapper">
|
|
<insert id="insertInvoice" parameterType="com.glxp.api.entity.inout.IoOrderInvoiceEntity">
|
|
INSERT INTO io_order_invoice(orderIdFk, bindRlFk, batchNo, productDate, expireDate)
|
|
values (#{orderIdFk},
|
|
#{bindRlFk},
|
|
#{batchNo},
|
|
#{productDate},
|
|
#{expireDate})
|
|
</insert>
|
|
|
|
<select id="selectOrderInvoice" parameterType="com.glxp.api.req.inout.IoOrderInvoiceRequest"
|
|
resultType="com.glxp.api.entity.inout.IoOrderInvoiceEntity">
|
|
select *
|
|
from io_order_invoice
|
|
<where>
|
|
<if test="id != null">
|
|
AND id = #{id}
|
|
</if>
|
|
<if test="bizIdFk != null">
|
|
AND bizIdFk = #{bizIdFk}
|
|
</if>
|
|
<if test="orderIdFk != null and orderIdFk != ''">
|
|
AND orderIdFk = #{orderIdFk}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
</mapper>
|