YYC
2023-08-17 f23f7a18fe8fe3729dfb91af5b55b515b835c7d8
igds-core/src/main/resources/mapper/DicDataMapper.xml
@@ -69,7 +69,7 @@
   <!-- 查询标语 -->
   <select id="getDicSlogan" resultType="com.ld.igds.models.DicSlogan"
      parameterType="java.util.Map">
         parameterType="java.util.Map">
      select
      *
      from D_DIC_SLOGAN g
@@ -82,6 +82,21 @@
         limit 1
      </where>
   </select>
   <!-- 获取区域列表 -->
   <select id="listDicArea" resultType="com.ld.igds.models.DicArea"
         parameterType="com.ld.igds.data.BaseParam">
      select
      CODE_ as code,
      NAME_ as name,
      TYPE_ as type,
      SIMPLE_ as simple
      from D_DIC_AREA
      <where>
         <if test="param.key != null">AND (NAME_ like "%"#{param.key}"%" OR SIMPLE_ like "%"#{param.key}"%" )</if>
      </where>
      order by CODE_
   </select>
</mapper>