BAOLH
2026-10-26 8cbebf21ce5fe478f12d6c7a30b7010dc208d086
Merge branch 'wcd-2411-update' into wcd
4 files modified
39 ■■■■■ changed files
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/salary/service/impl/NewSalaryServiceImpl.java 27 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java 8 ●●●●● patch | view | raw | blame | history
eladmin-web-master/package.json 2 ●●●●● patch | view | raw | blame | history
eladmin-web-master/src/views/attendance/attendanceBusinessTravel/index.vue 2 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/salary/service/impl/NewSalaryServiceImpl.java
@@ -541,10 +541,8 @@
//            newSalary = getCompletedWork(userId, targetYearMonth, newSalary);
            // 获取用户级别保险
            newSalary = getUserLevelInsurance(userId, targetYearMonth, newSalary);
        } catch (BadRequestException | ParseException e) {
            errors.add(e.getMessage());
            return;
        } catch (Exception e) {
            errors.add(String.format("%s【注:用户ID--- %d】", e.getMessage(), userId));
            e.printStackTrace();
            return;
        }
@@ -687,17 +685,8 @@
        userLevelWageQueryCriteria.setUserId(userId);
        userLevelWageQueryCriteria.setTargetYearMonth(targetYearMonth);
        try {
            // 倍率(区分正式员工和实习生使用)
            Double coefficient = 1.0;
            UserDto userDto = userService.findById(userId);
            LocalDate createDate = userDto.getCreateTime().toLocalDateTime().toLocalDate();
            if (userDto.getInternshipTime() != null) {
                LocalDate localDate1 = createDate.plusMonths(userDto.getInternshipTime()).withDayOfMonth(1);
                LocalDate localDate2 = LocalDate.parse(targetYearMonth, DateTimeFormatter.ofPattern("yyyy-MM-dd"));
                if (localDate1.isAfter(localDate2)) {
                    coefficient = 0.8;
                }
            }
            // 查询指定年月用户级别工资
            UserLevelWageDto userLevelWageDto = userLevelWageService.queryTargetYearMonth(userLevelWageQueryCriteria);
@@ -760,18 +749,6 @@
    // 获取用户级别保险
    private NewSalary getUserLevelInsurance(Long userId, String targetYearMonth, NewSalary newSalary) throws ParseException {
        UserDto userDto = userService.findById(userId);
        LocalDate createDate = userDto.getCreateTime().toLocalDateTime().toLocalDate();
        if (userDto.getInternshipTime() != null) {
            LocalDate localDate1 = createDate.plusMonths(userDto.getInternshipTime()).withDayOfMonth(1);
            LocalDate localDate2 = LocalDate.parse(targetYearMonth, DateTimeFormatter.ofPattern("yyyy-MM-dd"));
            if (localDate1.isAfter(localDate2)) {
                // 税前工资累计
                newSalary.setAfterTaxAmount(newSalary.getPreTaxAmount());
                return newSalary;
            }
        }
        // 用户级别保险查询类
        UserInsuranceQueryCriteria criteria = new UserInsuranceQueryCriteria();
        criteria.setUserId(userId);
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java
@@ -218,6 +218,14 @@
        return new ResponseEntity<>(HttpStatus.OK);
    }
    @ApiOperation("重置密码")
    @PostMapping(value = "/resetPass")
    public ResponseEntity<Object> resetUserPass(@RequestBody User passVo) throws Exception {
        UserDto user = userService.findByName(passVo.getUsername());
        userService.updatePass(user.getUsername(),passwordEncoder.encode("123456"));
        return new ResponseEntity<>(HttpStatus.OK);
    }
    @ApiOperation("修改头像")
    @PostMapping(value = "/updateAvatar")
    public ResponseEntity<Object> updateUserAvatar(@RequestParam MultipartFile avatar){
eladmin-web-master/package.json
@@ -5,7 +5,7 @@
  "author": "Zheng Jie",
  "license": "Apache-2.0",
  "scripts": {
    "dev": "vue-cli-service serve",
    "dev": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
    "build:prod": "vue-cli-service build",
    "build:stage": "vue-cli-service build --mode staging",
    "preview": "node build/index.js --preview",
eladmin-web-master/src/views/attendance/attendanceBusinessTravel/index.vue
@@ -103,6 +103,7 @@
      <crudOperation :permission="permission">
        <el-button
          slot="right"
          v-permission="permission.updateAgree"
          class="filter-item"
          size="mini"
          type="primary"
@@ -120,6 +121,7 @@
        </el-button>
        <el-button
          slot="right"
          v-permission="permission.updateAgree"
          class="filter-item"
          size="mini"
          type="primary"