| | |
| | | select |
| | | mld.* |
| | | from man_loc_detl mld |
| | | left join man_prior mp on mld.node_id = mp.node_id |
| | | left join man_prior mp on mld.node_id = mp.node_id and mld.matnr = mp.matnr |
| | | where 1=1 |
| | | <if test="nodeId != null and nodeId != ''"> |
| | | and mld.node_id = #{nodeId} |
| | |
| | | order by mp.prio desc, mld.create_time asc |
| | | </select> |
| | | |
| | | <select id="getLocDetlStatis" resultMap="BaseResultMap"> |
| | | select |
| | | ROW_NUMBER() over (order by sum(a.anfme) desc) as row |
| | | , a.matnr |
| | | , sum(a.anfme) as anfme |
| | | from man_loc_detl a |
| | | where 1=1 |
| | | group by a.matnr |
| | | </select> |
| | | |
| | | <select id="selectByNodeUuid" resultMap="BaseResultMap"> |
| | | select * from man_loc_detl mld left join man_node mn on mld.node_id = mn.id |
| | | where 1=1 |
| | | and mn.uuid = #{uuid} |
| | | and mld.status = 1 |
| | | order by mld.create_time |
| | | </select> |
| | | |
| | | </mapper> |