Commit f6c52a0103531911865a6f98e46b5554012aca2c

Authored by xp.Huang
1 parent ff93d67a

fix: 查询字典信息,只查询状态是启用的数据

@@ -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>