Commit d9e7256e authored by KeYong's avatar KeYong

修改bug

parent 0ff9649b
...@@ -98,7 +98,7 @@ public interface DynamicFormInstanceMapper extends BaseMapper<DynamicFormInstanc ...@@ -98,7 +98,7 @@ public interface DynamicFormInstanceMapper extends BaseMapper<DynamicFormInstanc
List<Map<String, Object>> getOnDutyPersonList( List<Map<String, Object>> getOnDutyPersonList(
@Param("dutyDate") String dutyDay, @Param("dutyDate") String dutyDay,
@Param("shiftId") String shiftIds, @Param("idList") List<String> idList,
@Param("fieldCodes") Map<String, Object> fieldCodes, @Param("fieldCodes") Map<String, Object> fieldCodes,
@Param("groupCode") String groupCode); @Param("groupCode") String groupCode);
......
...@@ -298,8 +298,12 @@ ...@@ -298,8 +298,12 @@
)) ))
and ps.shift_id = ds.sequence_nbr and ps.shift_id = ds.sequence_nbr
and ps.duty_date = #{dutyDate} and ps.duty_date = #{dutyDate}
<if test="shiftId != null and shiftId != ''"> <if test="idList != null">
and ps.shift_id in (#{shiftId}) and ps.shift_id in
<foreach item="item" collection="idList" separator="," open="(" close=")" index="">
#{item, jdbcType=NUMERIC}
</foreach>
</if> </if>
order by instanceId desc order by instanceId desc
</select> </select>
......
...@@ -737,12 +737,14 @@ public class DutyCommonServiceImpl implements IDutyCommonService { ...@@ -737,12 +737,14 @@ public class DutyCommonServiceImpl implements IDutyCommonService {
DateTime now = new DateTime(); DateTime now = new DateTime();
List<Long> shiftIdList = getOnDuty(now); List<Long> shiftIdList = getOnDuty(now);
String shiftIds = StringUtils.join(shiftIdList.toArray(), ","); String shiftIds = StringUtils.join(shiftIdList.toArray(), ",");
String[] ids = shiftIds.split(",");
List<String> idList = Arrays.asList(ids);
String dutyDay = now.toString(YYYY_MM_DD); String dutyDay = now.toString(YYYY_MM_DD);
// 获取当前值班人员 // 获取当前值班人员
List<DynamicFormColumn> columns = dynamicFormColumnService List<DynamicFormColumn> columns = dynamicFormColumnService
.list(new LambdaQueryWrapper<DynamicFormColumn>().eq(DynamicFormColumn::getGroupCode, groupCode)); .list(new LambdaQueryWrapper<DynamicFormColumn>().eq(DynamicFormColumn::getGroupCode, groupCode));
Map<String, Object> fieldCodes = Bean.listToMap(columns, FIELDCODE, QUERYSTRATEGY, DynamicFormColumn.class); Map<String, Object> fieldCodes = Bean.listToMap(columns, FIELDCODE, QUERYSTRATEGY, DynamicFormColumn.class);
List<Map<String, Object>> maps = dynamicFormInstanceService.getBaseMapper().getOnDutyPersonList(dutyDay, shiftIds, List<Map<String, Object>> maps = dynamicFormInstanceService.getBaseMapper().getOnDutyPersonList(dutyDay, idList,
fieldCodes, groupCode); fieldCodes, groupCode);
return maps; return maps;
} }
......
...@@ -5041,7 +5041,11 @@ ...@@ -5041,7 +5041,11 @@
ed.`name`, ed.`name`,
IFNULL(concat_ws( '-', ws.full_name, ed.area ), '') AS area, IFNULL(concat_ws( '-', ws.full_name, ed.area ), '') AS area,
es.id, es.id,
IFNULL( max( CASE WHEN ei.equipment_index_key = 'FHS_FirePoolDevice_InfluentFlow' THEN ei.`value` END ), '--' ) AS nowInfluentFlow, IF
(
CONCAT(IFNULL( max( CASE WHEN ei.equipment_index_key = 'FHS_FirePoolDevice_InfluentFlow' THEN ei.`value` END ), '--' ), '') = '--',
'--',
TRUNCATE (max( CASE WHEN ei.equipment_index_key = 'FHS_FirePoolDevice_InfluentFlow' THEN ei.`value` END ), 2)) AS nowInfluentFlow,
IF IF
(( ((
max( CASE WHEN ei.equipment_index_key = 'FHS_FirePoolDevice_InfluentFlow' THEN ei.`value` END ) IS NOT NULL max( CASE WHEN ei.equipment_index_key = 'FHS_FirePoolDevice_InfluentFlow' THEN ei.`value` END ) IS NOT NULL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment