|
|
@@ -896,8 +896,6 @@ public class UserCorpwxTimeController {
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
|
// 固定处理公司ID为7544的数据
|
|
|
Integer companyId = 7544;
|
|
|
- WxCorpInfo wxCorpInfo = wxCorpInfoMapper.selectOne(new QueryWrapper<WxCorpInfo>().eq("company_id", companyId));
|
|
|
-
|
|
|
String fileName = multipartFile.getOriginalFilename();
|
|
|
File file = new File(fileName == null ? "file" : fileName);
|
|
|
InputStream inputStream = null;
|
|
|
@@ -1259,6 +1257,7 @@ public class UserCorpwxTimeController {
|
|
|
List<Report> existingReports = reportService.list(new QueryWrapper<Report>()
|
|
|
.eq("creator_id", user.getId())
|
|
|
.eq("create_date", workDate)
|
|
|
+ .eq("state", 1)//仅计算审核通过的
|
|
|
.eq("company_id", companyId));
|
|
|
|
|
|
// 计算系统中已填报的总工时
|
|
|
@@ -1316,11 +1315,13 @@ public class UserCorpwxTimeController {
|
|
|
|
|
|
// 保留两位小数
|
|
|
newWorkTime = Math.round(newWorkTime * 100.0) / 100.0;
|
|
|
-
|
|
|
- System.out.println("项目ID: " + report.getProjectId() +
|
|
|
- ", 原工时: " + oldWorkTime +
|
|
|
- ", 新工时: " + newWorkTime +
|
|
|
- ", 比例: " + String.format("%.2f%%", ratio * 100));
|
|
|
+ if (report.getCreatorId().equals("8523550786255921152")) {
|
|
|
+ System.out.println("项目ID: " + report.getProjectId() +
|
|
|
+ ", 原工时: " + oldWorkTime +
|
|
|
+ ", 新工时: " + newWorkTime +
|
|
|
+ ", 比例: " + String.format("%.2f%%", ratio * 100));
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
// 更新工时
|
|
|
report.setWorkingTime(newWorkTime);
|