| | |
| | | and warehouse_id = ${warehouseId} |
| | | </if> |
| | | </where> |
| | | <if test="orderBySql!=null"> |
| | | ORDER BY ${orderBySql} |
| | | </if> |
| | | ORDER BY `no` |
| | | </select> |
| | | <select id="itemList" resultType="com.zt.life.modules.configItemWarehouse.model.WarehouseConfigItem"> |
| | | SET @row_number = 0; |
| | |
| | | </if> |
| | | UNION |
| | | SELECT (@row_number := @row_number + 1) AS no, |
| | | NULL AS secretClass, |
| | | p.secret_class, |
| | | '软件测试委托单' AS itemName, |
| | | NULL AS version, |
| | | s.code AS itemIdentify, |
| | | s.id as src_id |
| | | FROM software_test_order s |
| | | JOIN project p ON p.id = ${projectId} |
| | | WHERE s.is_delete = 0 |
| | | AND s.project_id = ${projectId} |
| | | <if test="ids!=null and ids!=''"> |
| | |
| | | </if> |
| | | UNION |
| | | SELECT (@row_number := @row_number + 1) AS no, |
| | | NULL AS secretClass, |
| | | p.secret_class, |
| | | '物品流转单' AS itemName, |
| | | NULL AS version, |
| | | i.code AS itemIdentify, |
| | | i.id as src_id |
| | | FROM item_circulat_order i |
| | | JOIN project p ON p.id = ${projectId} |
| | | WHERE i.is_delete = 0 |
| | | AND i.project_id = ${projectId} |
| | | <if test="ids!=null and ids!=''"> |