|
|
|
@ -610,20 +610,22 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectByBillNo" resultType="com.glxp.sale.admin.entity.inout.OrderEntity">
|
|
|
|
|
select *
|
|
|
|
|
select io_order.*, auth_dept.name deptName
|
|
|
|
|
from io_order
|
|
|
|
|
where status = 4
|
|
|
|
|
and (id = #{billNo} or erpFk = #{billNo})
|
|
|
|
|
left join auth_dept on io_order.deptCode = auth_dept.code
|
|
|
|
|
where io_order.status = 4
|
|
|
|
|
and (io_order.id = #{billNo} or io_order.erpFk = #{billNo})
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectByIds" resultType="com.glxp.sale.admin.entity.inout.OrderEntity">
|
|
|
|
|
select *
|
|
|
|
|
select io_order.*,auth_dept.name deptName
|
|
|
|
|
from io_order
|
|
|
|
|
where id in
|
|
|
|
|
left join auth_dept on io_order.deptCode =auth_dept.code
|
|
|
|
|
where io_order.id in
|
|
|
|
|
<foreach collection="orderIds" separator="," index="index" item="item" open="(" close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
order by id desc
|
|
|
|
|
order by io_order.id desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<update id="updateOrderTime">
|
|
|
|
|