wuxw
2022-07-19 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54
java110-db/src/main/resources/mapper/store/ResourceStoreServiceDaoImplMapper.xml
@@ -318,7 +318,7 @@
        <if test="resOrderType == '20000'">
            and t.stock > 0
        </if>
        order by t.create_time desc
        order by t.res_code
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}
        </if>
@@ -502,7 +502,7 @@
    </select>
    <!-- 查询资源信息 add by wuxw 2018-07-03 -->
    <select id="queryResourceStoresTotalPrice" parameterType="Map" resultType="Map">
        select sum(w.stock*w.average_price) as totalPrice from(
        select IFNULL(sum(w.stock*w.average_price),0) as totalPrice from(
        select t.stock,t.average_price from resource_store t
        left join storehouse sh on t.sh_id = sh.sh_id and t.store_id = sh.store_id and sh.status_cd = '0'
        where 1 = 1