添加查询条件
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 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
|
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}
|
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'),'%')
|
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>
|
</select>
|
||||||
|
|
||||||
<update id="updateSzkc">
|
<update id="updateSzkc">
|
||||||
|
|
Loading…
Reference in New Issue