|
@@ -756,21 +756,21 @@ user.real_name as saveUserName,sb.repair_dept_id
|
|
|
|
|
|
<select id="selectCountByStatusGroup" parameterType="java.lang.String"
|
|
|
resultType="java.util.Map">
|
|
|
- select position.id,
|
|
|
- info.status, count(info.id) as num
|
|
|
- from t_sb_position position
|
|
|
- left join t_sb_info info on info.position_id=position.id
|
|
|
- where position.code like concat(#{code},'%') and position.del_flag=0
|
|
|
+ select info.status, count(info.id) as num
|
|
|
+ from t_sb_info info, t_sb_position position
|
|
|
+ where
|
|
|
+ info.position_id = position.id
|
|
|
+ and position.code like concat(#{code},'%') and position.del_flag=0
|
|
|
group By info.status
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCountByUseTypeGroup" parameterType="java.lang.String"
|
|
|
resultType="java.util.Map">
|
|
|
- select position.id,
|
|
|
- info.use_type useType, count(info.id) as num
|
|
|
- from t_sb_position position
|
|
|
- left join t_sb_info info on info.position_id = position.id
|
|
|
- where position.code like concat(#{code},'%') and position.del_flag=0
|
|
|
+ select info.use_type useType, count(info.id) as num
|
|
|
+ from t_sb_info info, t_sb_position position
|
|
|
+ where
|
|
|
+ info.position_id = position.id
|
|
|
+ and position.code like concat(#{code},'%') and position.del_flag=0
|
|
|
group By info.use_type
|
|
|
</select>
|
|
|
|