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.
|
|
|
<?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.inv.InvMAOrderDao">
|
|
|
|
<select id="filterList" resultType="com.glxp.api.res.inv.InvMAOrderResponse">
|
|
|
|
select ma.id,
|
|
|
|
ma.orderId,
|
|
|
|
ma.invCode,
|
|
|
|
ma.invSpaceCode,
|
|
|
|
ma.status,
|
|
|
|
ma.createTime,
|
|
|
|
ma.updateTime,
|
|
|
|
ma.auditTime,
|
|
|
|
ma.createUser,
|
|
|
|
ma.auditUser,
|
|
|
|
(select employeeName from auth_user where id = ma.createUser) createUserName,
|
|
|
|
(select employeeName from auth_user where id = ma.auditUser) auditUserName,
|
|
|
|
ma.remark,
|
|
|
|
auth_warehouse.name invName,
|
|
|
|
auth_space.name invSpaceName
|
|
|
|
from inv_ma_order ma
|
|
|
|
left join auth_warehouse on ma.invCode = auth_warehouse.code
|
|
|
|
left join auth_space
|
|
|
|
on ma.invSpaceCode = auth_space.code and auth_warehouse.code = auth_space.invWarehouseCode
|
|
|
|
<where>
|
|
|
|
<if test="id != null">
|
|
|
|
AND ma.id = #{id}
|
|
|
|
</if>
|
|
|
|
<if test="orderId != null and orderId != ''">
|
|
|
|
AND ma.orderId = #{orderId}
|
|
|
|
</if>
|
|
|
|
<if test="invCode != null and invCode != ''">
|
|
|
|
AND ma.invCode = #{invCode}
|
|
|
|
</if>
|
|
|
|
<if test="invSpaceCode != null and invSpaceCode != ''">
|
|
|
|
AND ma.invSpaceCode = #{invSpaceCode}
|
|
|
|
</if>
|
|
|
|
<if test="status != null">
|
|
|
|
AND ma.status = #{status}
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
order by ma.updateTime desc
|
|
|
|
</select>
|
|
|
|
</mapper>
|