添加查询条件

This commit is contained in:
yangjun 2025-01-13 09:41:29 +08:00
parent 97a8c1d9a5
commit fdfec9e318
1 changed files with 7 additions and 2 deletions

View File

@ -231,8 +231,13 @@
<select id="getStudentRiliKclist" resultType="org.jeecg.modules.kc.ktgl.entity.KcKetangbiao">
select b.rwbh,b.kcmc,GROUP_CONCAT(DISTINCT b.skjs ) as skjs,b.skrq,b.jgh,b.xnxq from xxhbxsxkb a , kc_ketangbiao b
where a.KCAPZBBH = b.rwbh and a.xh = #{xh} and b.xnxq = #{xnxq}
<if test="skrq!=null and skrq!=''">
and b.skrq like concat(#{skrq},'%')
</if>
<if test="skrq==null">
and b.skrq like concat(DATE_FORMAT(NOW(),'%Y-%m'),'%')
GROUP BY b.rwbh,b.kcmc,b.skrq,b.jgh,b.xnxq
</if>
GROUP BY b.rwbh,b.kcmc,b.skrq,b.xnxq
</select>
<update id="updateSzkc">