@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
相关推荐
天天鸭14 分钟前
前端转全栈,要学会后端看项目的思维oil欧哟17 分钟前
AI Agent 常用操作入门:独立目录、Plan 模式与跨话题交接指南孟陬29 分钟前
Foobar 技术周刊 #161:AI 录屏员工屏幕训练 SOP,被当做「动物园的猴子」是否触犯隐私?1-1=043 分钟前
Vue 混入(Mixin)和 2.插件 (Plugins)-梅1 小时前
linux(番外)线程,锁,条件变量封装;日志与线程池Rain的Java大神之路1 小时前
前端转 Java 全栈:用 AI 两天交付一个能跑的 Demo,踩坑全记录星落梦生2 小时前
Tlias前端案例涉及知识点 (14)Moment2 小时前
27B 的本地模型也能做知识图谱?太强了!😍😍😍维克兜率天3 小时前
【维克】KDJ量化实战:如何用它判断买卖点?维克兜率天5 小时前
【维克】RSI相对强弱指数:判断多空力量的温度计