|
|
|
@ -51,6 +51,15 @@
|
|
|
|
|
AND updateTime <![CDATA[ <= ]]> #{updateTime}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="(orderBy != null) and (sort == 'desc' or sort == 'asc')">
|
|
|
|
|
order by ${orderBy} ${sort}
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
ORDER BY updateTime DESC
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="findGroupBySpace" resultType="com.glxp.api.res.inv.InvPreinProductResponse">
|
|
|
|
@ -284,7 +293,7 @@
|
|
|
|
|
sp.name invSpaceName,
|
|
|
|
|
ifnull(sum(pd.inCount), 0) as inCount,
|
|
|
|
|
ifnull(sum(pd.outCount), 0) as outCount,
|
|
|
|
|
pd.inCount - pd.outCount as reCount
|
|
|
|
|
pd.inCount - pd.outCount as reCount
|
|
|
|
|
from inv_prein_product_detail pd
|
|
|
|
|
left join basic_udirel bu on pd.relId = bu.id
|
|
|
|
|
left join basic_products bp on bp.uuid = bu.uuid
|
|
|
|
|