ruoyi-admin/src/main/java/com/ruoyi/web/controller/enums/PersonType.java
@@ -44,4 +44,15 @@ } return null; } public static String getCodeByInfo(String Info) { PersonType[] personTypes = values(); for (int i = 0; i < personTypes.length; i++) { PersonType personType = personTypes[i]; if (personType.getInfo().equals(Info)) { return personType.getCode(); } } return null; } } ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceReimbursementController.java
@@ -31,6 +31,7 @@ import org.apache.commons.lang.StringUtils; import org.apache.ibatis.annotations.Options; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.CollectionUtils; import org.springframework.web.bind.annotation.*; import java.io.*; @@ -154,6 +155,10 @@ } //startPage(); List<SpFinancialExpensesReimbursementOut> list = serviceReimbursementService.getListBypower(loginUser.getUsername(), 1, APPLICANT, APPLICATIONBEGTIME, APPLICATIONENDTIME, loginUser.getDeptId().toString(), CHECKFLAG, APPLYTYPE); if (StringUtils.isNotBlank(spFinancialExpensesIn.getUsername())) { list = list.stream().filter(reimbursementOut -> reimbursementOut.getUsername().contains(spFinancialExpensesIn.getUsername())).collect(Collectors.toList()); // ænameåæ®µè¿æ»¤ } Collections.sort(list, new Comparator<SpFinancialExpensesReimbursementOut>() { @Override public int compare(SpFinancialExpensesReimbursementOut o1, SpFinancialExpensesReimbursementOut o2) { @@ -760,9 +765,15 @@ ServiceReimbursementEo serviceReimbursementEo = new ServiceReimbursementEo(); serviceReimbursementEo.setId(id); List<ServiceReimbursementEo> rdInfoByItem = serviceReimbursementService.getRDInfoByItem(serviceReimbursementEo); log.info("rdInfoByItemæ¯å¦ä¸ºç©º :{}", CollectionUtils.isEmpty(rdInfoByItem) ? null : rdInfoByItem.size()); for (int i = 0; i < rdInfoByItem.size(); i++) { ServiceReimbursementEo serviceReimbursementEo1 = rdInfoByItem.get(i); String codeByInfo = PersonType.getCodeByInfo(serviceReimbursementEo1.getPersontype()); serviceReimbursementEo1.setPersontype(codeByInfo); } //è·åæ¥éæ¯ä»ä¿¡æ¯ List<ServiceReimbursementpayee> reimbursementpayeeInfo = reimbursementpayeeService.getReimbursementpayeeInfo(serviceReimbursementEo); log.info("reimbursementpayeeInfoæ¯å¦ä¸ºç©º :{}", CollectionUtils.isEmpty(reimbursementpayeeInfo) ? null : reimbursementpayeeInfo.size()); Map<String, List<ServiceReimbursementEo>> listMap = rdInfoByItem.stream().collect(Collectors.groupingBy(ServiceReimbursementEo::getPersontype)); List<Map<String, BigDecimal>> list = new ArrayList<>(); StringBuffer FYXM1 = new StringBuffer(); @@ -779,7 +790,7 @@ BigDecimal keyOneMoney = new BigDecimal(0.00); BigDecimal keyTwoMoney = new BigDecimal(0.00); for (ServiceReimbursementEo serviceReimbursementEo1 : values) { otherMoney = otherMoney.add(serviceReimbursementEo1.getTrafficexpense()).add(serviceReimbursementEo1.getHotelexpense()).add(serviceReimbursementEo1.getFoodexpenses()).add(serviceReimbursementEo1.getFoodallowance()).add(serviceReimbursementEo1.getOtherexpense()).add(serviceReimbursementEo1.getOtherfeeamount()); otherMoney = otherMoney.add(serviceReimbursementEo1.getTrafficexpense()).add(serviceReimbursementEo1.getHotelexpense()).add(serviceReimbursementEo1.getCityfee()).add(serviceReimbursementEo1.getFoodexpenses()).add(serviceReimbursementEo1.getFoodallowance()).add(serviceReimbursementEo1.getOtherexpense()).add(serviceReimbursementEo1.getOtherfeeamount()); } map.put(key, otherMoney); list.add(map); @@ -915,6 +926,14 @@ } dataMap.put("BXBZ", remark); dataMap.put("ZXFZR", StringUtils.isEmpty(rdInfoByItem.get(0).getOpochecker()) ? "" : rdInfoByItem.get(0).getOpochecker()); // dataMap.put("CWFYZ", StringUtils.isEmpty(rdInfoByItem.get(0).getFinvicepresident()) ? "" : rdInfoByItem.get(0).getFinvicepresident()); dataMap.put("YWFYZ", StringUtils.isEmpty(rdInfoByItem.get(0).getBusvicepresident()) ? "" : rdInfoByItem.get(0).getBusvicepresident()); dataMap.put("BGSZR", StringUtils.isEmpty(rdInfoByItem.get(0).getOfficedirector()) ? "" : rdInfoByItem.get(0).getOfficedirector()); dataMap.put("CWBZR", StringUtils.isEmpty(rdInfoByItem.get(0).getFinancedirector()) ? "" : rdInfoByItem.get(0).getFinancedirector()); dataMap.put("CWSH", StringUtils.isEmpty(rdInfoByItem.get(0).getFinancechecher()) ? "" : rdInfoByItem.get(0).getFinancechecher()); dataMap.put("YYMMDD", time); ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java
@@ -2,6 +2,7 @@ import java.io.IOException; import com.ruoyi.common.core.domain.entity.UpdateUserPWD; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; @@ -95,27 +96,27 @@ * éç½®å¯ç */ @Log(title = "个人信æ¯", businessType = BusinessType.UPDATE) @PutMapping("/updatePwd") public AjaxResult updatePwd(String oldPassword, String newPassword) @PostMapping("/updatePwd") public AjaxResult updatePwd(@RequestBody UpdateUserPWD updateUserPWD) { LoginUser loginUser = getLoginUser(); String userName = loginUser.getUsername(); String password = loginUser.getPassword(); if (!SecurityUtils.matchesPassword(oldPassword, password)) if (!SecurityUtils.matchesPassword(updateUserPWD.getOldPassword(), password)) { return AjaxResult.error("ä¿®æ¹å¯ç å¤±è´¥ï¼æ§å¯ç é误"); } if (SecurityUtils.matchesPassword(newPassword, password)) if (SecurityUtils.matchesPassword(updateUserPWD.getNewPassword(), password)) { return AjaxResult.error("æ°å¯ç ä¸è½ä¸æ§å¯ç ç¸å"); } if(!checkPasswordRule(newPassword)){ if(!checkPasswordRule(updateUserPWD.getNewPassword())){ return AjaxResult.error("å¯ç æ ¼å¼: 大å°ååæ¯ãæ°åãç¹æ®å符ä¸çè³å°ä¸ç§ï¼é¿åº¦å¤§äºçäº8ä½ï¼"); } if (userService.resetUserPwd(userName, SecurityUtils.encryptPassword(newPassword)) > 0 && checkPasswordRule(newPassword)) if (userService.resetUserPwd(userName, SecurityUtils.encryptPassword(updateUserPWD.getNewPassword())) > 0 && checkPasswordRule(updateUserPWD.getNewPassword())) { // æ´æ°ç¼åç¨æ·å¯ç loginUser.getUser().setPassword(SecurityUtils.encryptPassword(newPassword)); loginUser.getUser().setPassword(SecurityUtils.encryptPassword(updateUserPWD.getNewPassword())); tokenService.setLoginUser(loginUser); return AjaxResult.success(); } ruoyi-admin/src/main/resources/template/²îÂ÷ѱ¨ÏúÉêÇëµ¥.ftl
@@ -1708,10 +1708,10 @@ <w:rPr> <w:rFonts w:hint="eastAsia"/> </w:rPr> <w:t>ä¸å¿è´è´£äººï¼</w:t> <w:t>ä¸å¿è´è´£äººï¼${ZXFZR}</w:t> </w:r> <w:r w:rsidRPr="00D61E43"> <w:t xml:space="preserve"> è´¢å¡å¯é¢é¿ï¼ ä¸å¡å¯é¢é¿ï¼ åå ¬å®¤ä¸»ä»»ï¼ è´¢å¡é¨ä¸»ä»»ï¼ è´¢å¡å®¡æ ¸ï¼</w:t> <w:t xml:space="preserve"> è´¢å¡å¯é¢é¿ï¼${CWFYZ} ä¸å¡å¯é¢é¿ï¼${YWFYZ} åå ¬å®¤ä¸»ä»»ï¼${BGSZR} è´¢å¡é¨ä¸»ä»»ï¼${CWBZR} è´¢å¡å®¡æ ¸ï¼${CWSH}</w:t> </w:r> </w:p> <w:p w:rsidR="00196045" w:rsidRDefault="00196045"> @@ -4887,7 +4887,7 @@ <w:sz w:val="24"/> <w:szCs w:val="24"/> </w:rPr> <w:t xml:space="preserve">åå ¬å®¤ä¸»ä»»ï¼ è´¢å¡é¨ä¸»ä»»ï¼ è´¢å¡å®¡æ ¸ï¼ </w:t> <w:t xml:space="preserve">åå ¬å®¤ä¸»ä»»ï¼${BGSZR} è´¢å¡é¨ä¸»ä»»ï¼${CWBZR} è´¢å¡å®¡æ ¸ï¼${CWSH} </w:t> </w:r> </w:p> </w:tc> ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/UpdateUserPWD.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,45 @@ package com.ruoyi.common.core.domain.entity; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel.ColumnType; import com.ruoyi.common.annotation.Excel.Type; import com.ruoyi.common.annotation.Excels; import com.ruoyi.common.core.domain.BaseEntity; import io.swagger.annotations.Api; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import javax.validation.constraints.Email; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Size; import java.util.Date; import java.util.List; /** * æ´æ°ç¨æ·å¯ç * * @author ruoyi */ @ApiModel("æ´æ°ç¨æ·å¯ç ") @Data public class UpdateUserPWD extends BaseEntity { /** * ç¨æ·ID */ @ApiModelProperty("èå¯ç ") private String oldPassword; /** * é¨é¨ID */ @ApiModelProperty("æ°å¯ç ") private String newPassword; } ruoyi-project/src/main/java/com/ruoyi/project/domain/ServiceReimbursementEo.java
@@ -347,5 +347,8 @@ @ApiModelProperty("ä¸è½½ç¼å·") private String bh; @ApiModelProperty("å¸å 交éè´¹") private BigDecimal cityfee; } ruoyi-project/src/main/java/com/ruoyi/project/domain/vo/SpFinancialExpensesIn.java
@@ -21,6 +21,14 @@ private String APPLICANT; /** * ç»å人 */ @ApiModelProperty("ç»å人") @Excel(name = "ç»å人") private String username; /** * ç³è¯·å¼å§æ¥æ */ @ApiModelProperty("ç³è¯·å¼å§æ¥æ") ruoyi-project/src/main/resources/mapper/project/ServiceReimbursementMapper.xml
@@ -167,11 +167,11 @@ <select id="getRDInfoByItem" resultType="com.ruoyi.project.domain.ServiceReimbursementEo"> SELECT a.id as id,a.UserNo as userno,a.FlowLevel as recordstatus,b.persontype as persontype,a.create_time as createTime,a.managername as managername,a.bh as bh, createTime,a.managername as managername,a.bh as bh,a.OPOchecker as opochecker,a.FinVicePresident as finvicepresident,a.BusVicePresident as busvicepresident,a.OfficeDirector as officedirector,a.FinanceDirector as financedirector,a.FinanceChecher as financechecher, a.UserName as username,b.personname as travelers,a.AmountRequested as amountrequested,a.Reason as reason,a.Phone as phone,a.DepositBank as depositbank,a.BankCardNo as bankcardno,a.DonorName as donorname,b.trafficexpense as trafficexpense,b.hotelexpense as hotelexpense,b.FoodExpenses as foodexpenses, b.foodallowance as foodallowance, b.otherexpense as otherexpense,b.otherfeeamount as otherfeeamount FROM service_reimbursement a LEFT JOIN b.otherexpense as otherexpense,b.otherfeeamount as otherfeeamount,b.CityFee as cityfee FROM service_reimbursement a LEFT JOIN service_reimbursementdetail b on a.id=b.RBID where a.del_flag != 1 and b.del_flag!=1 <if test="id != null"> and a.id = #{id}