| | |
| | | <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> |
| | |
| | | </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 |