Commit 3313678a authored by 李秀明's avatar 李秀明

人员出勤查询总换流站数量时增加bizOrgCode

parent 66b12a9e
...@@ -6,6 +6,6 @@ import org.apache.ibatis.annotations.Param; ...@@ -6,6 +6,6 @@ import org.apache.ibatis.annotations.Param;
import java.util.Map; import java.util.Map;
public interface StationInfoMapper extends BaseMapper { public interface StationInfoMapper extends BaseMapper {
Long count(@Param("stationType") String stationType); Long count(@Param("bizOrgCode") String bizOrgCode, @Param("stationType") String stationType);
Map<String, String> selectStationInfo(@Param("bizOrgCode") String bizOrgCode); Map<String, String> selectStationInfo(@Param("bizOrgCode") String bizOrgCode);
} }
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
COUNT(1) COUNT(1)
FROM idx_biz_station_info t FROM idx_biz_station_info t
<where> <where>
<if test="bizOrgCode != null and bizOrgCode != ''">
AND t.BIZ_ORG_CODE LIKE CONCAT(#{bizOrgCode}, '%')
</if>
<if test="stationType != null and stationType != ''"> <if test="stationType != null and stationType != ''">
AND t.STATION_TYPE = #{stationType} AND t.STATION_TYPE = #{stationType}
</if> </if>
......
...@@ -223,7 +223,7 @@ public class SignServiceImpl extends BaseService<SignDto, Sign, SignMapper> impl ...@@ -223,7 +223,7 @@ public class SignServiceImpl extends BaseService<SignDto, Sign, SignMapper> impl
public Map<String, Object> getCenterSignStats(String bizOrgCode, String date, Integer targetPassNum, String stationType) { public Map<String, Object> getCenterSignStats(String bizOrgCode, String date, Integer targetPassNum, String stationType) {
List<Map<String, Object>> queryMaps = baseMapper.selectCenterSignStats(bizOrgCode, date, targetPassNum, stationType); List<Map<String, Object>> queryMaps = baseMapper.selectCenterSignStats(bizOrgCode, date, targetPassNum, stationType);
int passedStationNum = 0; int passedStationNum = 0;
long allStationNum = stationInfoMapper.count(stationType); long allStationNum = stationInfoMapper.count(bizOrgCode, stationType);
for (Map<String, Object> queryMap : queryMaps) { for (Map<String, Object> queryMap : queryMaps) {
String status = queryMap.get("status").toString(); String status = queryMap.get("status").toString();
......
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