liu 2 лет назад
Родитель
Сommit
73a0521e43

+ 10 - 1
.idea/workspace.xml

@@ -187,6 +187,10 @@
   <component name="PropertiesComponent"><![CDATA[{
   "keyToString": {
     "WebServerToolWindowFactoryState": "false",
+    "node.js.detected.package.eslint": "true",
+    "node.js.detected.package.tslint": "true",
+    "node.js.selected.package.eslint": "(autodetect)",
+    "node.js.selected.package.tslint": "(autodetect)",
     "settings.editor.selected.configurable": "MavenSettings",
     "spring.configuration.checksum": "64bf9ba214eb006c40cb35e0f61a7d20"
   }
@@ -219,7 +223,7 @@
       <updated>1706250884671</updated>
       <workItem from="1706250887209" duration="5674000" />
       <workItem from="1706260354151" duration="17000" />
-      <workItem from="1706260659198" duration="67000" />
+      <workItem from="1706260659198" duration="1213000" />
     </task>
     <servers />
   </component>
@@ -290,6 +294,11 @@
           <line>70</line>
           <option name="timeStamp" value="1" />
         </line-breakpoint>
+        <line-breakpoint enabled="true" type="java-line">
+          <url>file://$PROJECT_DIR$/src/main/java/com/template/controller/WxGzhController.java</url>
+          <line>137</line>
+          <option name="timeStamp" value="2" />
+        </line-breakpoint>
       </breakpoints>
     </breakpoint-manager>
   </component>

+ 8 - 0
src/main/java/com/template/api/SmartAttendanceControllerAPI.java

@@ -39,4 +39,12 @@ public interface SmartAttendanceControllerAPI {
     @GetMapping(value = "/queryLeaveRecords")
     @ApiOperation(value = "获取请假记录数据", notes = "获取请假记录数据", httpMethod = "GET")
     CommonResult queryLeaveRecords();
+
+    /**
+     * 首页请假数据
+     * 不清楚是获取当年的 还是当月的 还是本周的
+     * 可查询的时间范围不清楚
+     */
+
+
 }

+ 4 - 0
src/main/java/com/template/controller/WxGzhController.java

@@ -131,6 +131,10 @@ public class WxGzhController implements WxGzhControllerAPI {
     @Override
     @PassToken
     public CommonResult unbinding(String phone) {
+        if (ObjectUtils.isEmpty(phone)) {
+            return CommonResult.fail("参数异常");
+        }
+
         QueryWrapper<SmartUser> queryWrapper = new QueryWrapper<>();
         queryWrapper.eq("deleted", 0);
         queryWrapper.eq("phone", phone);