| | |
| | | </where> |
| | | order by sor.id desc |
| | | </select> |
| | | <!-- 按来源明细查出库记录:加 /*data_scope*/ 跳过数据权限,否则换账号会查不到记录, |
| | | 导致委外的「完成校验」被静默绕过、「作废释放占用」失效 --> |
| | | <select id="selectByRecordIds" resultType="com.ruoyi.stock.pojo.StockOutRecord"> |
| | | select /*data_scope*/ * |
| | | from stock_out_record |
| | | where record_type = #{recordType} |
| | | and record_id in |
| | | <foreach collection="recordIds" item="recordId" open="(" separator="," close=")"> |
| | | #{recordId} |
| | | </foreach> |
| | | </select> |
| | | |
| | | <select id="listStockOutRecordExportData" resultType="com.ruoyi.stock.execl.StockOutRecordExportData"> |
| | | SELECT |
| | | sor.*, |