Commit 9d20e7f9 authored by kongfm's avatar kongfm

Merge remote-tracking branch 'origin/developer' into developer

parents 2c0e24f4 ff160a5f
...@@ -52,4 +52,6 @@ public interface FireStationMapper extends BaseMapper<FireStation> { ...@@ -52,4 +52,6 @@ public interface FireStationMapper extends BaseMapper<FireStation> {
* *
* **/ * **/
Integer getStationListCount(@Param("par")RequestData par); Integer getStationListCount(@Param("par")RequestData par);
FireStationDto getFireStationDetails(Long id);
} }
...@@ -32,5 +32,19 @@ ...@@ -32,5 +32,19 @@
</select> </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> </mapper>
...@@ -91,7 +91,7 @@ public class FireStationServiceImpl extends BaseService<FireStationDto, FireStat ...@@ -91,7 +91,7 @@ public class FireStationServiceImpl extends BaseService<FireStationDto, FireStat
@Override @Override
public FireStationDto selectBySequenceNbr(Long id) { 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