Showing
1 changed file
with
2 additions
and
1 deletions
... | ... | @@ -43,9 +43,10 @@ |
43 | 43 | sys_dict_item sdi |
44 | 44 | LEFT JOIN sys_dict sd ON sd.ID = sdi.dict_id |
45 | 45 | <where> |
46 | + sdi.status =1 | |
46 | 47 | <if test="dictId !=null and dictId!=''">AND sdi.dict_id=#{dictId}</if> |
47 | 48 | <if test="dictCode !=null and dictCode!=''">AND sd.dict_code=#{dictCode}</if> |
48 | 49 | </where> |
49 | - ORDER BY sort | |
50 | + ORDER BY sort ASC | |
50 | 51 | </select> |
51 | 52 | </mapper> | ... | ... |