|
@@ -27,7 +27,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTQuestionnaireVo">
|
|
|
- select id, audit_id, chapter_id, year, type, directory, code, name, yes_no_na, minimum_standard, good_practices, standard, completion_status, person_in_charge, reviewer, remarks, q.dept_id,
|
|
|
+ select id, audit_id, chapter_id, year, type, directory, code, name, yes_no_na, minimum_standard,
|
|
|
+ good_practices, standard, completion_status, person_in_charge, reviewer, remarks, q.dept_id,
|
|
|
+ SUBSTR(q.directory, 1, INSTR(q.directory, '.') - 1) as codeSubStr,
|
|
|
u1.nick_name as person_in_charge_name, u2.nick_name as reviewer_name
|
|
|
from t_questionnaire q
|
|
|
left join sys_user u1 on q.person_in_charge = u1.user_id
|
|
@@ -54,7 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
|
|
<if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if>
|
|
|
</where>
|
|
|
- order by code asc
|
|
|
+ order by (SUBSTR(q.directory, 1, INSTR(q.directory, '.') - 1) + 0) asc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectTQuestionnaireById" parameterType="Long" resultMap="TQuestionnaireResult">
|