当前位置:Gxlcms > 数据库问题 > 【数据库_Postgresql】实体类映射问题之不执行sql语句

【数据库_Postgresql】实体类映射问题之不执行sql语句

时间:2021-07-01 10:21:17 帮助过:17人阅读

1 = 1 <if test="dictionarycode !=null and dictionarycode != ‘‘ "> AND dictionarycode = #{dictionarycode,jdbcType=VARCHAR} </if> </select>

现在代码:

<select id="queryByPrimaryKey" parameterType="java.lang.String" resultType="com.suneee.scn.chtpub.wms.model.DictionaryDO">
         SELECT
                dictionarycode,
                dictionaryname,
                nextvalue,
                mark
         FROM
                sp_wms_dictionary 
         WHERE
                1 = 1
         AND    dictionarycode = #{dictionarycode,jdbcType=VARCHAR}
         
  </select>

 

【数据库_Postgresql】实体类映射问题之不执行sql语句

标签:class   type   lan   sql语句   and   rom   后台   ice   dict   

人气教程排行