|
|
|
@ -6,6 +6,7 @@ |
|
|
|
<resultMap type="com.elink.esua.epdc.modules.evaluate.entity.EvaluateOptionEntity" id="evaluateOptionMap"> |
|
|
|
<result property="id" column="ID"/> |
|
|
|
<result property="roleCode" column="ROLE_CODE"/> |
|
|
|
<result property="pid" column="PID"/> |
|
|
|
<result property="optionContent" column="OPTION_CONTENT"/> |
|
|
|
<result property="sort" column="SORT"/> |
|
|
|
<result property="available" column="AVAILABLE"/> |
|
|
|
@ -38,7 +39,7 @@ |
|
|
|
<if test="optionContent != null and optionContent != ''"> |
|
|
|
and OPTION_CONTENT like '%' #{optionContent} '%' |
|
|
|
</if> |
|
|
|
<if test="roleCode != null and roleCode != ''"> |
|
|
|
<if test='roleCode != null and roleCode != "" and roleCode != "0"'> |
|
|
|
and ROLE_CODE = #{roleCode} |
|
|
|
</if> |
|
|
|
order by sort, UPDATED_TIME desc |
|
|
|
@ -61,28 +62,52 @@ |
|
|
|
<if test="roleCode != null and roleCode != ''"> |
|
|
|
and ROLE_CODE = #{roleCode} |
|
|
|
</if> |
|
|
|
|
|
|
|
order by sort, CREATED_TIME desc |
|
|
|
</select> |
|
|
|
|
|
|
|
<resultMap type="com.elink.esua.epdc.dto.evaluate.EvaluateShowOption" id="evaluateShowOptionMap"> |
|
|
|
<result property="index" column="Num"/> |
|
|
|
<result property="optionContent" column="OPTION_CONTENT"/> |
|
|
|
</resultMap> |
|
|
|
<select id="optionShowList" resultMap="evaluateOptionAppResultMap"> |
|
|
|
SELECT |
|
|
|
ID, |
|
|
|
ROLE_CODE, |
|
|
|
OPTION_CONTENT |
|
|
|
FROM |
|
|
|
epdc_evaluate_option |
|
|
|
WHERE |
|
|
|
DEL_FLAG = '0' |
|
|
|
ORDER BY |
|
|
|
ROLE_CODE, |
|
|
|
SORT ASC |
|
|
|
SELECT |
|
|
|
tab.ID, |
|
|
|
tab.ROLE_CODE, |
|
|
|
tab.OPTION_CONTENT |
|
|
|
FROM |
|
|
|
( |
|
|
|
SELECT |
|
|
|
Pid AS ID, |
|
|
|
0 AS ROLE_CODE, |
|
|
|
OPTION_CONTENT, |
|
|
|
SORT |
|
|
|
FROM |
|
|
|
epdc_evaluate_option |
|
|
|
WHERE |
|
|
|
DEL_FLAG = '0' |
|
|
|
AND PID IS NOT NULL |
|
|
|
GROUP BY |
|
|
|
PID UNION |
|
|
|
SELECT |
|
|
|
ID, |
|
|
|
ROLE_CODE, |
|
|
|
OPTION_CONTENT, |
|
|
|
SORT |
|
|
|
FROM |
|
|
|
epdc_evaluate_option |
|
|
|
WHERE |
|
|
|
DEL_FLAG = '0' |
|
|
|
AND PID IS NULL |
|
|
|
) tab |
|
|
|
ORDER BY |
|
|
|
tab.ROLE_CODE, |
|
|
|
tab.SORT ASC |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="listSimpleDictInfo" resultType="com.elink.esua.epdc.dto.evaluate.result.RoleDictDTO"> |
|
|
|
SELECT |
|
|
|
0 as dictValue, |
|
|
|
'全部' as dictName |
|
|
|
FROM |
|
|
|
dual |
|
|
|
UNION |
|
|
|
SELECT |
|
|
|
ROLE_CODE dictValue, |
|
|
|
RULE_DESC dictName |
|
|
|
@ -90,6 +115,7 @@ |
|
|
|
epdc_evaluate_role |
|
|
|
WHERE |
|
|
|
DEL_FLAG = '0' |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|