添加查询条件
This commit is contained in:
parent
97a8c1d9a5
commit
fdfec9e318
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue