@Select({
"<script>",
"SELECT",
" cj.CJMC AS cjdm_name,",
" zyc.ZYCMC AS zycdm_name,",
" a.czcx AS cz_name,",
" a.gjzc,",
" xc.S_MC AS xc_name,",
" a.jtyq,",
" a.FBSJ,",
" ry.XM AS fbr_name,",
" CASE a.zt",
" WHEN '01' THEN '已保存'",
" WHEN '21' THEN '已发布'",
" WHEN '31' THEN '作废'",
" ELSE a.zt",
" END AS zt_name",
"FROM SCZZ.GL_CLKX_KCYQ_CLMX a",
"LEFT JOIN hmiszd.d_dm_ty xc ON a.xc = xc.S_DM AND xc.S_FLDM = '02'",
// "LEFT JOIN Hmiszd.d_dm_cz cz ON a.cz = cz.S_CZDM",
"LEFT JOIN common.zd_cj cj ON a.cjdm = cj.CJDM AND cj.CJLX = 'yy' AND cj.CJDM NOT LIKE '%25'",
"LEFT JOIN common.zd_zyc zyc ON a.zycdm = zyc.ZYCDM",
"LEFT JOIN COMMON.RY_RYDA ry ON a.fbr = ry.GZH",
" where 1=1 ",
" <if test='zbid != null and zbid != \"\"'>",
" AND a.zbid = #{zbid}",
" </if>",
" <if test='xc != null and xc != \"\"'>",
" AND a.xc = #{xc}",
" </if>",
" <if test='cz != null and cz != \"\"'>",
" AND a.cz = #{cz}",
" </if>",
" <if test='czcx != null and czcx != \"\"'>",
" AND a.czcx = #{czcx}",
" </if>",
" <if test='gjzc != null and gjzc != \"\"'>",
" AND a.gjzc LIKE '%' || #{gjzc} || '%'",
" </if>",
" <if test='jtyq != null and jtyq != \"\"'>",
" AND a.jtyq LIKE '%' || #{jtyq} || '%'",
" </if>",
" <if test='cjdm != null and cjdm != \"\"'>",
" AND a.cjdm = #{cjdm}",
" </if>",
" <if test='zycdm != null and zycdm != \"\"'>",
" AND a.zycdm = #{zycdm}",
" </if>",
" <if test='fbsj != null'>",
" AND a.fbsj = #{fbsj}",
" </if>",
" <if test='zt != null and zt != \"\"'>",
" AND a.zt = #{zt}",
" </if>",
" <if test='fbr != null and fbr != \"\"'>",
" AND a.fbr = #{fbr}",
" </if>",
// " <if test='startTime != null and startTime != \"\" and endTime != null and endTime != \"\"'>",
// " AND a.fbsj between to_date(#{startTime}, 'yyyy-MM-dd HH24:MI:SS') and to_date(#{endTime}, 'yyyy-MM-dd HH24:MI:SS') ",
// " </if>",
" <if test='startTime != null and startTime != \"\" and endTime != null and endTime != \"\"'>",
" AND to_char(a.fbsj,'yyyy-MM-dd HH24:MI:SS') between #{startTime} and #{endTime} ",
" </if>",
"</script>"
})
List<KczdWithDict> listWithDict(Kczd kczd);
前端传字符串 后端比较date类型字段
只有干货2025-07-26 19:43
相关推荐
菩提树下的凡夫21 小时前
前端vue的开发流程青山的青衫21 小时前
【用homebrew配置nginx+配置前端项目与后端联调】Macbook M1(附一些homebrew操作)二十雨辰21 小时前
[作品集]-容易宝恋猫de小郭1 天前
iOS 26 开始强制 UIScene ,你的 Flutter 插件准备好迁移支持了吗?Asort1 天前
JavaScript设计模式(二十一)——策略模式:灵活算法的艺术与实战黑云压城After1 天前
3D魔方-Css实现方法極光未晚1 天前
乾坤微前端项目:前端处理后台分批次返回的 Markdown 流式数据用户6600676685391 天前
用 CSS3 导演一场星际穿越:复刻“星球大战”经典片头程序员鱼皮1 天前
前后端分离,千万别再搞错了!前端赵哈哈1 天前
Vite 构建后产品详情页图片失效?从路径匹配到映射表的完美解决