幼儿评估-图表

This commit is contained in:
paidaxing444
2020-11-07 17:39:08 +08:00
parent 34d87f3db6
commit fe79121520
14 changed files with 469 additions and 188 deletions

View File

@ -57,6 +57,18 @@ order by t.sort
where parentId = #{id}
</select>
<select id="selectCountElement" parameterType="ByAssessmentcontent" resultType="int">
select count(*) from by_assessmentcontent where find_in_set(id, getChildLst(#{id})) and scope=#{scope} and iselement='Y';
</select>
<!--sort 暂且代替childid-->
<select id="selectCountElementByChild" parameterType="ByAssessmentcontent" resultType="int">
select count(*) from (
select a.* from by_assessmentcontent a
right join by_assessmentchild b on a.id=b.contentid where b.childid=#{sort} and b.scope=#{scope}) temp
where find_in_set(id, getChildLst(#{id})) ;
</select>
<insert id="insertByAssessmentcontent" parameterType="ByAssessmentcontent" useGeneratedKeys="true" keyProperty="id">
insert into by_assessmentcontent
<trim prefix="(" suffix=")" suffixOverrides=",">

View File

@ -54,6 +54,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectDictDataVo"/>
where dict_code = #{dictCode}
</select>
<!--获取评估代码 根据幼儿id幼儿id暂且用sort代替一下 传参-->
<select id="selectDictDataByChildId" parameterType="Long" resultMap="SysDictDataResult">
select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark from sys_dict_data where dict_type='sys_dm_pgyssyfw'
and dict_value in ( select distinct scope from by_assessmentchild where childid= #{dictSort})
order by dict_sort desc
</select>
<select id="countDictDataByType" resultType="Integer">
select count(1) from sys_dict_data where dict_type=#{dictType}