|
|
|
@ -7,11 +7,11 @@
|
|
|
|
|
resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity">
|
|
|
|
|
select * from io_order_detail
|
|
|
|
|
<where>
|
|
|
|
|
<if test="docid != '' and docid!=null">
|
|
|
|
|
and docid = #{docid}
|
|
|
|
|
<if test="erpOrderId != '' and erpOrderId!=null">
|
|
|
|
|
and erpOrderId = #{erpOrderId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="goodsname != '' and goodsname!=null">
|
|
|
|
|
and GOODSNAME = #{goodsname}
|
|
|
|
|
and goodsname = #{goodsname}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderId != '' and orderId!=null">
|
|
|
|
|
and orderIdFk = #{orderId}
|
|
|
|
@ -32,14 +32,14 @@
|
|
|
|
|
resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity">
|
|
|
|
|
select * from io_order_detail
|
|
|
|
|
<where>
|
|
|
|
|
<if test="docid != '' and docid!=null">
|
|
|
|
|
and docid = #{docid}
|
|
|
|
|
<if test="erpOrderId != '' and erpOrderId!=null">
|
|
|
|
|
and erpOrderId = #{erpOrderId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="goodsname != '' and goodsname!=null">
|
|
|
|
|
and GOODSNAME = #{goodsname}
|
|
|
|
|
and goodsname = #{goodsname}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
group by orderIdFk,docid
|
|
|
|
|
group by orderIdFk,erpOrderId
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -47,11 +47,11 @@
|
|
|
|
|
resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity">
|
|
|
|
|
select * from io_order_detail
|
|
|
|
|
<where>
|
|
|
|
|
<if test="docid != '' and docid!=null">
|
|
|
|
|
and docid = #{docid}
|
|
|
|
|
<if test="erpOrderId != '' and erpOrderId!=null">
|
|
|
|
|
and erpOrderId = #{erpOrderId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="goodsname != '' and goodsname!=null">
|
|
|
|
|
and GOODSNAME = #{goodsname}
|
|
|
|
|
and goodsname = #{goodsname}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderIdFk != '' and orderIdFk!=null">
|
|
|
|
|
and orderIdFk = #{orderIdFk}
|
|
|
|
@ -63,7 +63,7 @@
|
|
|
|
|
<select id="findAllByDocids" parameterType="java.util.List"
|
|
|
|
|
resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity">
|
|
|
|
|
|
|
|
|
|
select * from io_order_detail where docid in
|
|
|
|
|
select * from io_order_detail where erpOrderId in
|
|
|
|
|
<foreach item="item" index="index" collection="docids" open="(" separator="," close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
@ -71,30 +71,30 @@
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectAllIds" parameterType="java.util.List"
|
|
|
|
|
resultType="java.lang.String">
|
|
|
|
|
select docid from io_order_detail where
|
|
|
|
|
docid in (
|
|
|
|
|
select erpOrderId from io_order_detail where
|
|
|
|
|
erpOrderId in (
|
|
|
|
|
<foreach collection="docids" item="item" index="index"
|
|
|
|
|
separator=",">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
)
|
|
|
|
|
GROUP BY docid
|
|
|
|
|
GROUP BY erpOrderId
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="filterAllDocid" parameterType="com.glxp.api.admin.entity.inout.FilterErpOrderRequest"
|
|
|
|
|
resultType="java.lang.String">
|
|
|
|
|
select docid from io_order_detail
|
|
|
|
|
select erpOrderId from io_order_detail
|
|
|
|
|
<where>
|
|
|
|
|
<if test="orderId != '' and orderId!=null">
|
|
|
|
|
and orderIdFk = #{orderId}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
group by docid
|
|
|
|
|
group by erpOrderId
|
|
|
|
|
</select>
|
|
|
|
|
<!-- and dtlgoodsqty=count-->
|
|
|
|
|
<select id="filterAllDocidE" parameterType="com.glxp.api.admin.entity.inout.FilterErpOrderRequest"
|
|
|
|
|
resultType="com.glxp.api.admin.entity.inout.ErpOrderEntity">
|
|
|
|
|
select docid,orderIdFk from io_order_detail
|
|
|
|
|
select erpOrderId,orderIdFk from io_order_detail
|
|
|
|
|
<where>
|
|
|
|
|
|
|
|
|
|
<if test="orderId != '' and orderId!=null">
|
|
|
|
@ -102,7 +102,7 @@
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
group by docid
|
|
|
|
|
group by erpOrderId
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertErpOrder" keyProperty="id" parameterType="com.glxp.api.admin.entity.inout.ErpOrderEntity">
|
|
|
|
@ -168,7 +168,7 @@
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
|
|
|
DELETE FROM io_order_detail WHERE docid = #{id}
|
|
|
|
|
DELETE FROM io_order_detail WHERE erpOrderId = #{id}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteByPrimiyId" parameterType="Map">
|
|
|
|
|