|
@@ -1,7 +1,6 @@
|
|
|
package com.galaxis.manatee.controller;
|
|
|
|
|
|
-import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
-import com.galaxis.manatee.exception.BigSizeException;
|
|
|
+import com.galaxis.manatee.service.LogUpdateService;
|
|
|
import lombok.Data;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -15,10 +14,10 @@ import org.springframework.web.bind.annotation.*;
|
|
|
@RestController
|
|
|
public class TestController {
|
|
|
|
|
|
- private com.galaxis.manatee.service.LogUpdateService LogUpdateService;
|
|
|
+ private final LogUpdateService logUpdateService;
|
|
|
|
|
|
public TestController(com.galaxis.manatee.service.LogUpdateService logUpdateService) {
|
|
|
- LogUpdateService = logUpdateService;
|
|
|
+ this.logUpdateService = logUpdateService;
|
|
|
}
|
|
|
|
|
|
@GetMapping("/test/helloGet")
|
|
@@ -37,19 +36,47 @@ public class TestController {
|
|
|
private String b;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 更新所有每周工时
|
|
|
+ */
|
|
|
+ @GetMapping("/test/api/updateChuanyunWeekMemberHour")
|
|
|
+ public void updateChuanyunWeekMemberHour(){
|
|
|
+ logUpdateService.updateAllChuanyunWeekMemberHour();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更新所有每月工时
|
|
|
+ */
|
|
|
+ @GetMapping("/test/api/updateChuanyunWeekMemberHour")
|
|
|
+ public void updateChuanyunSelfCostHour(){
|
|
|
+ logUpdateService.updateAllChuanyunSelfCost();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据用户Id更新每天工时方法
|
|
|
+ * @param userId 用户Id
|
|
|
+ */
|
|
|
@GetMapping("/test/api/updateChuanyunSelfWorkHourListByUserId")
|
|
|
- public void updateChuanyunSelfWorkHourListByUserId(@RequestParam("userId")String userId) throws JsonProcessingException, BigSizeException {
|
|
|
- LogUpdateService.updateChuanyunSelfWorkHourListByUserId(userId);
|
|
|
+ public void updateChuanyunSelfWorkHourListByUserId(@RequestParam("userId")String userId) {
|
|
|
+ logUpdateService.updateChuanyunSelfWorkHourListByUserId(userId);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param userId 用户Id
|
|
|
+ */
|
|
|
@GetMapping("/test/api/updateChuanyunWeekMemberHourListByUserId")
|
|
|
- public void updateChuanyunWeekMemberHourListByUserId(@RequestParam("userId")String userId) throws JsonProcessingException, BigSizeException {
|
|
|
- LogUpdateService.updateChuanyunWeekMemberHourListByUserId(userId);
|
|
|
+ public void updateChuanyunWeekMemberHourListByUserId(@RequestParam("userId")String userId) {
|
|
|
+ logUpdateService.updateChuanyunWeekMemberHourListByUserId(userId);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param userId 用户Id
|
|
|
+ */
|
|
|
@GetMapping("/test/api/updateChuanyunSelfCostListByUserId")
|
|
|
- public void updateChuanyunSelfCostListByUserId(@RequestParam("userId")String userId) throws JsonProcessingException, BigSizeException {
|
|
|
- LogUpdateService.updateChuanyunSelfCostListByUserId(userId);
|
|
|
+ public void updateChuanyunSelfCostListByUserId(@RequestParam("userId")String userId) {
|
|
|
+ logUpdateService.updateChuanyunSelfCostListByUserId(userId);
|
|
|
}
|
|
|
|
|
|
}
|