管理员管理评分项问题处理

This commit is contained in:
mythxb 2024-04-07 13:38:59 +08:00
parent 199b3584ac
commit 420b0f9a07
3 changed files with 20 additions and 2 deletions

View File

@ -22,6 +22,11 @@ public interface ExStandardMapper extends BaseMapper<ExStandard> {
@Param("examineState") Integer examineState, @Param("examineState") Integer examineState,
@Param("examineId") String examineId); @Param("examineId") String examineId);
/*部门个性评分标准*/
List<ExStandard> standardListUnit(@Param("itemType") Integer itemType,
@Param("examineState") Integer examineState,
@Param("examineId") String examineId);
/*部门个性评分标准*/ /*部门个性评分标准*/
List<ExStandard> unitStandardList(@Param("itemType") Integer itemType, List<ExStandard> unitStandardList(@Param("itemType") Integer itemType,
@Param("examineState") Integer examineState, @Param("examineState") Integer examineState,

View File

@ -38,6 +38,20 @@
</select> </select>
<!--部门普通评分标准-->
<select id="standardListUnit" resultMap="BaseResultMap">
SELECT
es.*,lf.`PerformClassName`
FROM ex_standard es
LEFT JOIN `listperform` lf ON es.`perform_id` = lf.`ListPerformId`
WHERE es.`item_type` = #{itemType}
AND es.`examine_state` = #{examineState}
AND es.`examine_id` = #{examineId}
ORDER BY es.`sort_id` ASC;
</select>
<!--部门普通评分标准--> <!--部门普通评分标准-->
<select id="unitStandardList" resultMap="BaseResultMap"> <select id="unitStandardList" resultMap="BaseResultMap">
@ -54,7 +68,6 @@
AND (es.`perform_id` = #{performId} OR es.`perform_id` IS NULL OR es.`perform_id` = '') AND (es.`perform_id` = #{performId} OR es.`perform_id` IS NULL OR es.`perform_id` = '')
ORDER BY es.`sort_id` ASC; ORDER BY es.`sort_id` ASC;
</select> </select>

View File

@ -490,7 +490,7 @@ public class ExamineController extends BaseController{
public MultiResult<ExStandard> standardListUnit(@Valid StandardListUnitDto standardListUnitDto)throws Exception{ public MultiResult<ExStandard> standardListUnit(@Valid StandardListUnitDto standardListUnitDto)throws Exception{
MultiResult<ExStandard> result = new MultiResult<>(); MultiResult<ExStandard> result = new MultiResult<>();
//评分标准 //评分标准
List<ExStandard> standards = exStandardMapper.unitStandardList(ExItemType.PERSONALITY.getType(),standardListUnitDto.getExamineState(),standardListUnitDto.getExamineId(),standardListUnitDto.getListperformid()); List<ExStandard> standards = exStandardMapper.standardListUnit(ExItemType.PERSONALITY.getType(),standardListUnitDto.getExamineState(),standardListUnitDto.getExamineId());
result.setData(standards); result.setData(standards);
return result; return result;
} }