|
@@ -0,0 +1,66 @@
|
|
|
|
|
+package com.template.controller;
|
|
|
|
|
+
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
|
|
+import com.google.gson.Gson;
|
|
|
|
|
+import com.google.gson.reflect.TypeToken;
|
|
|
|
|
+import com.template.annotation.PassToken;
|
|
|
|
|
+import com.template.api.CensusControllerAPI;
|
|
|
|
|
+import com.template.api.LoginControllerAPI;
|
|
|
|
|
+import com.template.common.utils.*;
|
|
|
|
|
+import com.template.config.WxOpenidConfig;
|
|
|
|
|
+import com.template.model.enumModel.eSchool;
|
|
|
|
|
+import com.template.model.pojo.*;
|
|
|
|
|
+import com.template.model.request.changePasswordRequest;
|
|
|
|
|
+import com.template.model.request.loginRequest;
|
|
|
|
|
+import com.template.model.request.mobileLoginRequest;
|
|
|
|
|
+import com.template.model.request.payResultRequest;
|
|
|
|
|
+import com.template.model.result.CommonResult;
|
|
|
|
|
+import com.template.model.result.Wx_user;
|
|
|
|
|
+import com.template.model.vo.*;
|
|
|
|
|
+import com.template.services.*;
|
|
|
|
|
+import org.slf4j.Logger;
|
|
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
|
|
+import org.springframework.validation.BindingResult;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
+
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
+import java.net.URLEncoder;
|
|
|
|
|
+import java.util.*;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * @Author: binguo
|
|
|
|
|
+ * @Date: 2023/7/5 星期三 9:28
|
|
|
|
|
+ * @Description: com.template.controller
|
|
|
|
|
+ * @Version: 1.0
|
|
|
|
|
+ */
|
|
|
|
|
+@RestController
|
|
|
|
|
+public class CensusController implements CensusControllerAPI {
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public CommonResult payResult(Integer collegeId, String sex) {
|
|
|
|
|
+
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // #总人数 totalData
|
|
|
|
|
+ // #已入住人数 sleeper
|
|
|
|
|
+ // #未入住人数 = 总人数 - 已入住人数
|
|
|
|
|
+ // #总床位数 totalBed
|
|
|
|
|
+ // #已入住床位数 = 已入住人数
|
|
|
|
|
+ // #未入住床位数 = 总床位数 - 已入住床位数
|
|
|
|
|
+ // 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
|
|
|
|
|
+ // where wb.deleted = 0 and wb.college is not null
|
|
|
|
|
+ // group by wb.college,wb.sex
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public CommonResult queryCheckTotal(Integer collegeId, String sex) {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|