BAOLH
2026-10-08 6252124eb55b78004ffbfaa720718587b340f125
Merge branch 'wcd-2411-update' into wcd
4 files modified
39 ■■■■■ changed files
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/service/impl/AttendanceBusinessTravelServiceImpl.java 6 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/service/impl/TaskUserServiceImpl.java 4 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/attendance/attendanceGoOut/index.vue 1 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/task/taskDaliy/index.vue 28 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/service/impl/AttendanceBusinessTravelServiceImpl.java
@@ -491,9 +491,9 @@
                }
                // TODO:20250804 由于存在一天多条出差记录的可能,需要同一天最大出差总时长不能超过1,故需要加入同天记录的差值判断
                BigDecimal dateCount = attendanceBusinessTravelRepository.countTravelDuration(date, Optional.ofNullable(attendanceBusinessTravel.getUserId()).orElse(user.getId()), Optional.ofNullable(attendanceBusinessTravel.getId()).orElse(0L));
                if (!subtractDuration) {
                    dateCount = BigDecimal.ZERO;
                BigDecimal dateCount = BigDecimal.ZERO;
                if (subtractDuration) {
                    dateCount = attendanceBusinessTravelRepository.countTravelDuration(date, Optional.ofNullable(attendanceBusinessTravel.getUserId()).orElse(user.getId()), Optional.ofNullable(attendanceBusinessTravel.getId()).orElse(0L));
                }
                if (dateCount.compareTo(BigDecimal.ZERO) > 0) {
                    dayResult = BigDecimal.ONE.subtract(dateCount).max(BigDecimal.ZERO);
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/task/service/impl/TaskUserServiceImpl.java
@@ -1385,6 +1385,10 @@
            if (daliyMongoList.size() > 0) {
                throw new BadRequestException("当前分配任务已经有用户填写了日报!");
            }
            long reviewUserMongoCount = mongoTemplate.count(new Query(Criteria.where("rid").is(id)), TaskUserMongo.class);
            if (reviewUserMongoCount > 0) {
                throw new BadRequestException("当前分配任务已启动复核!");
            }
            mongoTemplate.remove(Query.query(Criteria.where("id").is(new ObjectId(id))), TaskUserMongo.class);
        }
//        mongoTemplate.remove(Query.query(Criteria.where("id").in(ids)), getClass());
eladmin-web-master/src/views/attendance/attendanceGoOut/index.vue
@@ -983,6 +983,7 @@
      that.$set(that.form, 'outStartTime', data.outStartTime)
      that.$set(that.form, 'outEndTime', data.outEndTime)
      that.$set(that.form, 'outDuration', data.outDuration)
      that.$set(that.form, 'durationUnit', data.durationUnit)
      that.$set(that.form, 'outReason', data.outReason)
      that.$set(that.form, 'remarks', data.remarks)
    }
eladmin-web-master/src/views/task/taskDaliy/index.vue
@@ -1,9 +1,9 @@
<template>
  <div class="app-container">
    <!--工具栏-->
    <el-row v-loading="taskLoading" :gutter="15">
      <el-col :xs="24" :sm="24" :md="8" :lg="8" :xl="7">
        <el-card class="box-card" shadow="never" style="width: 750px">
    <el-row v-loading="taskLoading" :gutter="10" type="flex" style="flex-wrap: wrap; row-gap: 10px;">
      <el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12">
        <el-card class="box-card" shadow="never" style="width: 100%" body-style="padding: 10px">
          <el-tabs v-model="tobeOver" style="height: 200px;" @tab-click="handleClickTobeTasked">
            <el-tab-pane :label="tobeTasked" name="first">
              <el-table
@@ -14,17 +14,17 @@
                <el-table-column
                  prop="name"
                  :show-overflow-tooltip="true"
                  min-width="180px"
                  min-width="140px"
                />
                <el-table-column
                  prop="taskStartDate"
                  :show-overflow-tooltip="true"
                  min-width="180px"
                  width="140px"
                />
                <el-table-column
                  prop="taskEndDate"
                  :show-overflow-tooltip="true"
                  min-width="180px"
                  width="140px"
                />
                <el-table-column width="100px" style="align-items: center">
                  <template slot-scope="scope">
@@ -36,8 +36,8 @@
          </el-tabs>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="16" :lg="16" :xl="17" style="padding-left: 250px">
        <el-card class="box-card" shadow="never">
      <el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12">
        <el-card class="box-card" shadow="never" style="width: 100%" body-style="padding: 10px">
          <el-tabs v-model="activeName" style="height: 200px;">
            <el-tab-pane :label="tasking" name="first">
              <el-table
@@ -50,17 +50,17 @@
                <el-table-column
                  prop="name"
                  :show-overflow-tooltip="true"
                  min-width="150px"
                  min-width="140px"
                />
                <el-table-column
                  prop="taskStartDate"
                  :show-overflow-tooltip="true"
                  min-width="180px"
                  width="140px"
                />
                <el-table-column
                  prop="taskEndDate"
                  :show-overflow-tooltip="true"
                  min-width="180px"
                  width="140px"
                />
                <el-table-column width="100px" style="align-items: center">
                  <template slot-scope="scope">
@@ -80,17 +80,17 @@
                <el-table-column
                  prop="name"
                  :show-overflow-tooltip="true"
                  min-width="180px"
                  min-width="140px"
                />
                <el-table-column
                  prop="taskStartDate"
                  :show-overflow-tooltip="true"
                  min-width="180px"
                  width="140px"
                />
                <el-table-column
                  prop="taskEndDate"
                  :show-overflow-tooltip="true"
                  min-width="180px"
                  width="140px"
                />
                <el-table-column width="100px" style="align-items: center">
                  <template slot-scope="scope">