cs 2 سال پیش
والد
کامیت
d1de5770f9

+ 21 - 0
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/controller/ReportLogController.java

@@ -3,6 +3,10 @@ package com.management.platform.controller;
 
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.management.platform.entity.ReportLog;
+import com.management.platform.entity.User;
+import com.management.platform.entity.WxCorpInfo;
+import com.management.platform.mapper.UserMapper;
+import com.management.platform.mapper.WxCorpInfoMapper;
 import com.management.platform.service.ReportLogService;
 import com.management.platform.service.ReportService;
 import com.management.platform.util.HttpRespMsg;
@@ -27,11 +31,28 @@ public class ReportLogController {
 
     @Resource
     private ReportLogService reportLogService;
+    @Resource
+    private UserMapper userMapper;
+    @Resource
+    WxCorpInfoMapper wxCorpInfoMapper;
 
     @RequestMapping("/get")
     public HttpRespMsg get(String creatorId, String createDate) {
         HttpRespMsg msg = new HttpRespMsg();
+        User user = userMapper.selectById(creatorId);
         List<ReportLog> list = reportLogService.list(new QueryWrapper<ReportLog>().eq("creator_id", creatorId).eq("create_date", createDate));
+        WxCorpInfo wxCorpInfo = wxCorpInfoMapper.selectOne(new QueryWrapper<WxCorpInfo>().eq("company_id",user.getCompanyId()));
+        if (wxCorpInfo!=null && wxCorpInfo.getSaasSyncContact() == 1){
+            List<User> users = userMapper.selectList(new QueryWrapper<User>().eq("company_id",user.getCompanyId()));
+            for (ReportLog reportLog : list) {
+                String operatorId = reportLog.getOperatorId();
+                for (User item : users) {
+                    if (item.getId().equals(operatorId)){
+                        reportLog.getMsg().replace(item.getName(),"$userName=" + item.getCorpwxUserid() + "$");
+                    }
+                }
+            }
+        }
         msg.data = list;
         return msg;
     }

+ 1 - 1
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/service/impl/ProjectServiceImpl.java

@@ -5980,7 +5980,7 @@ public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> impl
             stringObjectHashMap.put("unPublic",0.0);
             stringObjectHashMap.put("userId",map.get("id"));
             if (wxCorpInfo!=null && wxCorpInfo.getSaasSyncContact()==1){
-                stringObjectHashMap.put("username",map.get("wxOpenId"));
+                stringObjectHashMap.put("username",map.get("userId"));
             }else {
                 stringObjectHashMap.put("username",map.get("name"));
             }

+ 7 - 1
fhKeeper/formulahousekeeper/management-platform/src/main/resources/i18n/messages.properties

@@ -754,4 +754,10 @@ contract.editSuc = 修改成功
 contract.operationSuc = 操作成功
 contract.numberRepeat = 合同编号已存在
 contract.typeNameEmpty = 合同类型名不可为空
-contract.typeNameRepeat = 合同类型名已存在
+contract.typeNameRepeat = 合同类型名已存在
+Contract.No = 合同编号
+Contract.dataNull = 请填写合同数据
+Contract.nameNullError=第{0}行缺少合同名称
+Contract.NoExists=第{0}行合同编号已存在
+Contract.NoRepeat=第{0}行合同编号与第{1}行合同编号重复
+Contract.typeExists=第{0}行合同类型不存在

+ 9 - 3
fhKeeper/formulahousekeeper/management-platform/src/main/resources/i18n/messages_en_US.properties

@@ -746,12 +746,18 @@ contract.lease= Lease contract
 contract.loan= Loan contract
 contract.warehousing= Warehousing contract
 contract.entrust= Entrustment contract
-contract.name = name
-contract.type = type
+contract.name = contract name
+contract.type = Contract type
 contract.export = contract_
 contract.addSuc = Successfully added
 contract.editSuc = Modification succeeded
 contract.operationSuc = Operation succeeded
 contract.numberRepeat = Contract No. already exists
 contract.typeNameEmpty = Contract type name cannot be empty
-contract.typeNameRepeat = Contract type name already exists
+contract.typeNameRepeat = Contract type name already exists
+Contract.No = Contract No
+Contract.dataNull = Please fill in the contract data
+Contract.nameNullError=The contract name is missing in row {0}
+Contract.NoExists=Contract No. in row {0} already exists
+Contract.NoRepeat=The contract number in line {0} is duplicate with that in line {1}
+Contract.typeExists=The contract type in row {0} does not exist

+ 1 - 1
fhKeeper/formulahousekeeper/management-platform/src/main/resources/mapper/LeaveSheetMapper.xml

@@ -56,7 +56,7 @@
 
     <!-- 查询某段时间内全部请假的人员信息 -->
     <select id="selectLeaveAll" resultType="map">
-        select leave_sheet.start_date as startDate,leave_sheet.end_date as endDate,leave_sheet.time_hours as hours,user.id as id,user.department_id as departmentId,user.wx_openid as wxOpenId,user.job_number as jobNumber,user.name as name
+        select leave_sheet.start_date as startDate,leave_sheet.end_date as endDate,leave_sheet.time_hours as hours,user.id as id,user.department_id as departmentId,user.corpwx_userid as userId,user.job_number as jobNumber,user.name as name
         from leave_sheet
         left join user
         on user.id = leave_sheet.owner_id