Commit ff160a5f authored by chenzhao's avatar chenzhao

修改bug

parent c028d967
......@@ -52,4 +52,6 @@ public interface FireStationMapper extends BaseMapper<FireStation> {
*
* **/
Integer getStationListCount(@Param("par")RequestData par);
FireStationDto getFireStationDetails(Long id);
}
......@@ -32,5 +32,19 @@
</select>
<select id="getFireStationDetails" resultType="com.yeejoin.amos.boot.module.common.api.dto.FireStationDto">
SELECT
a.*,
(SELECT
count(i.instance_id)
from
cb_dynamic_form_instance i
where
i.field_value = #{id}) As userNum
FROM cb_fire_station a
where
a.sequence_nbr = #{id}
</select>
</mapper>
......@@ -91,7 +91,7 @@ public class FireStationServiceImpl extends BaseService<FireStationDto, FireStat
@Override
public FireStationDto selectBySequenceNbr(Long id) {
return this.queryBySeq(id);
return fireStationMapper.getFireStationDetails(id);
}
......
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