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.
92 lines
3.5 KiB
XML
92 lines
3.5 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.udi.admin.dao.inout.OrderDao">
|
|
|
|
<select id="listOrder" parameterType="com.glxp.udi.admin.req.inout.OrderQueryRequest"
|
|
resultType="com.glxp.udi.admin.entity.inout.OrderEntity">
|
|
SELECT *
|
|
FROM order_info where status = 'success'
|
|
</select>
|
|
|
|
<select id="listOrderError" parameterType="com.glxp.udi.admin.req.inout.OrderQueryRequest"
|
|
resultType="com.glxp.udi.admin.entity.inout.OrderEntity">
|
|
|
|
select * from order_info where `status` = 'error' ORDER BY actDate DESC
|
|
|
|
</select>
|
|
|
|
<select id="listOrderRepeat" parameterType="com.glxp.udi.admin.req.inout.OrderQueryRequest"
|
|
resultType="com.glxp.udi.admin.entity.inout.OrderEntity">
|
|
|
|
select * from order_info
|
|
where corpOrderId in (select corpOrderId from order_info group by corpOrderId HAVING COUNT(corpOrderId)>1 )
|
|
ORDER BY actDate DESC
|
|
</select>
|
|
|
|
<insert id="insertOrder" keyProperty="id" parameterType="com.glxp.udi.admin.entity.inout.OrderEntity">
|
|
INSERT INTO order_info(id,action,corpOrderId,actDate,fromCorpId,actor,mainAction,fromCorp,status,remark,exportStatus)
|
|
values(
|
|
#{id},
|
|
#{action},
|
|
#{corpOrderId},
|
|
#{actDate},
|
|
#{fromCorpId},
|
|
#{actor},
|
|
#{mainAction},
|
|
#{fromCorp},
|
|
#{status},
|
|
#{remark},
|
|
#{exportStatus})
|
|
</insert>
|
|
|
|
<select id="listOrderByIds" resultType="com.glxp.udi.admin.entity.inout.OrderEntity">
|
|
select * from order_info where id in
|
|
<foreach item="item" index="index" collection="list" open="(" separator="," close=")">
|
|
#{item}
|
|
</foreach>
|
|
</select>
|
|
|
|
<delete id="deleteByOrderId" parameterType="Map">
|
|
DELETE FROM order_info WHERE id = #{orderId}
|
|
</delete>
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
DELETE FROM order_info WHERE id = #{id}
|
|
</delete>
|
|
|
|
<insert id="updateUnit" keyProperty="id" parameterType="com.glxp.udi.admin.entity.inout.OrderEntity">
|
|
UPDATE order_info SET fromCorpId = #{fromCorpId},fromCorp = #{fromCorp} where id = #{id}
|
|
</insert>
|
|
|
|
<update id="updateOrderStatus" parameterType="Map">
|
|
UPDATE order_info SET `status` = #{status} where id = #{orderId}
|
|
</update>
|
|
<update id="updateExportStatus" parameterType="Map">
|
|
UPDATE order_info SET `exportStatus` = #{exportStatus} where id = #{orderId}
|
|
</update>
|
|
|
|
<update id="updateRemark" parameterType="Map">
|
|
UPDATE order_info SET `remark` = #{remark} where id = #{orderId}
|
|
</update>
|
|
<select id="filterList" parameterType="com.glxp.udi.admin.req.inout.OrderFilterRequest"
|
|
resultType="com.glxp.udi.admin.entity.inout.OrderEntity">
|
|
SELECT * FROM order_info WHERE
|
|
(id LIKE concat('%',#{id},'%') AND mainAction LIKE concat('%',#{mainAction},'%') AND action LIKE
|
|
concat('%',#{action},'%')
|
|
AND status = 'success')
|
|
<if test="exportStatus != null">
|
|
AND exportStatus LIKE concat('%',#{exportStatus},'%')
|
|
</if>
|
|
ORDER BY actDate DESC
|
|
|
|
</select>
|
|
|
|
<select id="filterListByCode" parameterType="java.util.List"
|
|
resultType="com.glxp.udi.admin.entity.inout.OrderEntity">
|
|
SELECT * FROM order_info WHERE id IN
|
|
<foreach collection="warehouseEntityList" item="item" open="(" separator="," close=")">
|
|
#{item.orderId}
|
|
</foreach>
|
|
</select>
|
|
</mapper> |