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