| | |
| | | <where> |
| | | a.is_delete = 0 |
| | | <if test="reviewId!=null"> |
| | | and warehouse_id = ${reviewId} |
| | | and review_id = ${reviewId} |
| | | </if> |
| | | </where> |
| | | <if test="orderBySql!=null"> |
| | |
| | | SELECT dd.dict_label AS item, |
| | | (@row_number := @row_number + 1) AS no |
| | | FROM sys_dict_type dt |
| | | JOIN sys_dict_data dd ON dt.ID = dd.DICT_TYPE_ID |
| | | JOIN sys_dict_data dd ON dt.id = dd.dict_type_id |
| | | <where> |
| | | dd.IS_DELETE = 0 |
| | | dd.is_delete = 0 |
| | | <if test="dictType != null and dictType != ''"> |
| | | and dt.DICT_TYPE = #{dictType} |
| | | and dt.dict_type = #{dictType} |
| | | </if> |
| | | </where> |
| | | ORDER BY dd.sort |