SQL缺失表达式,解决

select t.ID,t.ID,t.STATIONS,t.SHOPID,

t.WORKID,t.RUMMAGER,t.CHECK_DATE,t.SECTION,

t.LOCATION,t.ISSUE,

t.HIDDEN_PICTURES,t.RECTIFICATION_MEASURES,

t.DEADLINE,t.PRINCIPAL,

t.SECURITY_MEASURES,t.REORGANIZE_THE_SITUATION,

t.RECTIFICATION_TIME,

t.RECTIFICATION_PHOTOS,t.REMARK,t.CREATOR,t.UPDATEPEOPLE,

t.DATE_CREATED,t.DATE_UPDATED,

d.DEPT_NAME

from JCW_JF_FLOOD t

 

left join sys_dept d on d.dept_id=t.ID

left join sys_dept d on d.dept_id=t.ID

 

 

where 1=1

<!-- 按部门权限查询,service层调用该接口时,需要手动调用BaseVo.loadDeptCondsSql方法生成sql -->

<if test="model.id != null and model.id != ''">

    and t.ID=#{model.id}

</if>

<!-- 站段 -->

<if test="model.stations != null and model.stations != ''">

    and t.STATIONS=#{model.stations}

</if>

<!-- 车间 -->

<if test="model.shopid != null and model.shopid != ''">

    and t.SHOPID=#{model.shopid}

</if>

<!-- 班组 -->

<if test="model.workid != null and model.workid != ''">

    and t.WORKID=#{model.workid}

</if>

<!-- 开始和结束时间 -->

<if test="model.statDate != null and model.statDate !=

where ??? in (),你的字段名呢?

括号里 几个表达式用逗号分隔,你是想告诉数据库什么?

你能直接发语句吗不粘贴图??!!!

您好,我是有问必答小助手,您的问题已经有小伙伴解答了,您看下是否解决,可以追评进行沟通哦~

如果有您比较满意的答案 / 帮您提供解决思路的答案,可以点击【采纳】按钮,给回答的小伙伴一些鼓励哦~~

ps:问答VIP仅需29元,即可享受5次/月 有问必答服务,了解详情>>>https://vip.csdn.net/askvip?utm_source=1146287632