|
|
@@ -111,8 +111,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="queryBedSqlList" resultType="com.template.model.vo.BedSqlTotalVo" resultMap="queryBedSqlMap">
|
|
|
- -- select (select sum(1) as total from welcome_student where deleted = 0 and college = wb.college and iden_type
|
|
|
- = 1 and sex = wb.sex) as totalData,
|
|
|
+ -- select (select sum(1) as total from welcome_student where deleted = 0 and college = wb.college and iden_type = 1 and sex = wb.sex) as totalData,
|
|
|
select 0 as totalData,
|
|
|
SUM(1) as totalBed,college,sex,build,dormitory
|
|
|
from welcome_bed wb
|
|
|
@@ -137,10 +136,8 @@
|
|
|
|
|
|
<select id="queryTotalSqlList" resultType="com.template.model.vo.SleepSqlTotalVo" resultMap="queryTotalSqlMap">
|
|
|
select SUM(1) as totalBed,
|
|
|
- (select SUM(1) as total from welcome_bed where deleted = 0 and `name` is not null and name != '' and college =
|
|
|
- wb.college and sex = wb.sex) as sleeper,
|
|
|
- -- (select sum(1) as total from welcome_student where deleted = 0 and college = wb.college and iden_type = 1 and
|
|
|
- sex = wb.sex) as totalData,wb.college,wb.sex from welcome_bed wb
|
|
|
+ (select SUM(1) as total from welcome_bed where deleted = 0 and `name` is not null and name != '' and college = wb.college and sex = wb.sex) as sleeper,
|
|
|
+ -- (select sum(1) as total from welcome_student where deleted = 0 and college = wb.college and iden_type = 1 and sex = wb.sex) as totalData,wb.college,wb.sex from welcome_bed wb
|
|
|
0 as totalData,wb.college,wb.sex from welcome_bed wb
|
|
|
where wb.deleted = 0 and wb.college is not null
|
|
|
<if test="collegeId != null and collegeId != ''">
|