Browse Source

queryinfo报错

zhuwei 1 year ago
parent
commit
f706c9bb6e
34 changed files with 810 additions and 43 deletions
  1. 1 1
      blade-ops/blade-resource/src/main/java/org/springblade/resource/feign/CommonFileClientImpl.java
  2. 26 1
      blade-service-api/blade-control-api/src/main/java/org/springblade/control/entity/UserFilesInfo.java
  3. 0 1
      blade-service-api/blade-control-api/src/main/java/org/springblade/control/entity/UserpayInfo.java
  4. 17 0
      blade-service-api/blade-control-api/src/main/java/org/springblade/control/vo/UserFilesInfoVO.java
  5. 34 0
      blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/dto/TabBusstimeInfoDTO.java
  6. 62 0
      blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/entity/TabBusstimeInfo.java
  7. 6 0
      blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/feign/WbsTreeContractClient.java
  8. 34 0
      blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/vo/TabBusstimeInfoVO.java
  9. 4 0
      blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/vo/WbsFormElementVO.java
  10. 3 0
      blade-service/blade-business/src/main/java/org/springblade/business/mapper/InformationQueryMapper.java
  11. 25 0
      blade-service/blade-business/src/main/java/org/springblade/business/mapper/InformationQueryMapper.xml
  12. 3 0
      blade-service/blade-business/src/main/java/org/springblade/business/service/IInformationQueryService.java
  13. 6 0
      blade-service/blade-business/src/main/java/org/springblade/business/service/impl/InformationQueryServiceImpl.java
  14. 48 6
      blade-service/blade-business/src/main/java/org/springblade/business/service/impl/TaskServiceImpl.java
  15. 22 3
      blade-service/blade-control/pom.xml
  16. 14 0
      blade-service/blade-control/src/main/java/org/springblade/control/controller/DictInfoController.java
  17. 50 12
      blade-service/blade-control/src/main/java/org/springblade/control/controller/UserFilesInfoController.java
  18. 25 1
      blade-service/blade-control/src/main/java/org/springblade/control/controller/UserpayInfoController.java
  19. 3 0
      blade-service/blade-control/src/main/java/org/springblade/control/mapper/UserFilesInfoMapper.java
  20. 34 2
      blade-service/blade-control/src/main/java/org/springblade/control/mapper/UserFilesInfoMapper.xml
  21. 1 0
      blade-service/blade-control/src/main/java/org/springblade/control/service/IUserFilesInfoService.java
  22. 0 1
      blade-service/blade-control/src/main/java/org/springblade/control/service/IUserpayInfoService.java
  23. 5 0
      blade-service/blade-control/src/main/java/org/springblade/control/service/impl/UserFilesInfoServiceImpl.java
  24. 2 10
      blade-service/blade-control/src/main/java/org/springblade/control/service/impl/UserpayInfoServiceImpl.java
  25. 69 0
      blade-service/blade-control/src/main/java/org/springblade/control/wrapper/UserFilesWrapper.java
  26. 145 0
      blade-service/blade-manager/src/main/java/org/springblade/manager/controller/TabBusstimeInfoController.java
  27. 6 0
      blade-service/blade-manager/src/main/java/org/springblade/manager/feign/WbsTreeContractClientImpl.java
  28. 43 0
      blade-service/blade-manager/src/main/java/org/springblade/manager/mapper/TabBusstimeInfoMapper.java
  29. 29 0
      blade-service/blade-manager/src/main/java/org/springblade/manager/mapper/TabBusstimeInfoMapper.xml
  30. 3 1
      blade-service/blade-manager/src/main/java/org/springblade/manager/mapper/WbsTreeMapper.xml
  31. 42 0
      blade-service/blade-manager/src/main/java/org/springblade/manager/service/ITabBusstimeInfoService.java
  32. 46 0
      blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/TabBusstimeInfoServiceImpl.java
  33. 0 2
      blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/WbsTreeContractServiceImpl.java
  34. 2 2
      blade-service/blade-system/src/main/java/org/springblade/system/controller/DictController.java

+ 1 - 1
blade-ops/blade-resource/src/main/java/org/springblade/resource/feign/CommonFileClientImpl.java

@@ -209,7 +209,7 @@ public class CommonFileClientImpl implements CommonFileClient {
     }
 
     /**
-     * excel 转 pdf
+     * 获取pdf 的页数
      */
     @Override
     public String getPdfNum(String url) {

+ 26 - 1
blade-service-api/blade-control-api/src/main/java/org/springblade/control/entity/UserFilesInfo.java

@@ -18,6 +18,8 @@ package org.springblade.control.entity;
 
 import com.baomidou.mybatisplus.annotation.TableName;
 import java.io.Serializable;
+
+import io.swagger.annotations.ApiModelProperty;
 import org.springblade.core.mp.base.BaseEntity;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
@@ -38,90 +40,113 @@ public class UserFilesInfo extends BaseEntity {
 	/**
 	* 用户id主键
 	*/
+	@ApiModelProperty(value = "用户Id")
 		private Long userId;
 	/**
 	* 年龄
 	*/
+	@ApiModelProperty(value = "年龄")
 		private Integer userAge;
 	/**
 	* 身份证姓名
 	*/
+	@ApiModelProperty(value = "身份证姓名")
 		private String carName;
 	/**
 	* 民族
 	*/
+		@ApiModelProperty(value = "民族")
 		private String nation;
 	/**
 	* 试用期 单位月
 	*/
+	@ApiModelProperty(value = "试用期 单位月")
 		private Integer periodMoth;
 	/**
 	* 身份证地址
 	*/
+	@ApiModelProperty(value = "身份证地址")
 		private String carAddr;
 	/**
 	* 身份证照片路径(人面)
 	*/
+
+	@ApiModelProperty(value = "身份证照片路径(人面)")
 		private String carAimgUrl;
 	/**
 	* 身份证图片(国徽)
 	*/
+	@ApiModelProperty(value = "身份证图片(国徽)")
 		private String carBimgUrl;
 	/**
 	* 1 已婚 2未婚
 	*/
+	@ApiModelProperty(value = "1 已婚 2未婚")
 		private Integer marriageStatus;
 	/**
 	* 续签约次数
 	*/
+	@ApiModelProperty(value = "续签约次数")
 		private Integer renewalCount;
 	/**
 	* 户籍所在
 	*/
+	@ApiModelProperty(value = "户籍所在")
 		private String domicileAddr;
 	/**
 	* 1:小学/初中 2高中 3 专科 4 本科 5研究生 6 博士 7 硕士
 	*/
+	@ApiModelProperty(value = "1:小学/初中 2高中 3 专科 4 本科 5研究生 6 博士 7 硕士")
 		private Integer educationType;
 	/**
 	* 紧急联系人姓名
 	*/
+	@ApiModelProperty(value = "紧急联系人姓名")
 		private String emergencyName;
 	/**
 	* 紧急联系人电话
 	*/
+	@ApiModelProperty(value = "紧急联系人电话")
 		private String emergencyPhone;
 	/**
 	* 与紧急联系人关系
 	*/
+	@ApiModelProperty(value = "与紧急联系人关系")
 		private String emergencyRelation;
 	/**
 	* 专业
 	*/
+	@ApiModelProperty(value = "专业")
 		private String speciality;
 	/**
 	* 政治面貌
 	*/
+	@ApiModelProperty(value = "政治面貌")
 		private String political;
 	/**
 	* 开户行名称
 	*/
+	@ApiModelProperty(value = "开户行名称")
 		private String bankName;
 	/**
 	* 员工状态
 	*/
-		private String userStatus;
+	@ApiModelProperty(value = "员工状态")
+		private Integer userStatus;
 	/**
 	* 银行卡号
 	*/
+	@ApiModelProperty(value = "银行卡号")
 		private String bankNum;
 	/**
 	* 员工类型
 	*/
+	@ApiModelProperty(value = "员工类型")
 		private Integer userType;
 	/**
 	* 员工照片路径
 	*/
+	@ApiModelProperty(value = "员工照片路径")
 		private String userImgUrl;
 
 

+ 0 - 1
blade-service-api/blade-control-api/src/main/java/org/springblade/control/entity/UserpayInfo.java

@@ -18,7 +18,6 @@ package org.springblade.control.entity;
 
 import com.baomidou.mybatisplus.annotation.TableName;
 
-import java.io.Serializable;
 import java.math.BigDecimal;
 import java.time.LocalDate;
 

+ 17 - 0
blade-service-api/blade-control-api/src/main/java/org/springblade/control/vo/UserFilesInfoVO.java

@@ -99,4 +99,21 @@ public class UserFilesInfoVO extends UserFilesInfo {
 
 	@ApiModelProperty(value = "直接主管")
 	private String leaderName;
+
+	@ApiModelProperty(value = "员工类型名称")
+	private String userTypeName;
+
+	@ApiModelProperty(value = "婚姻状况名称")
+	private String marriageStatusName;
+
+	@ApiModelProperty(value = "员工状态名称")
+	private String userStatusName;
+
+	@ApiModelProperty(value = "政治面貌名称")
+	private String politicalName;
+
+	@ApiModelProperty(value = "合同期限")
+	private Integer conYear;
+
+
 }

+ 34 - 0
blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/dto/TabBusstimeInfoDTO.java

@@ -0,0 +1,34 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.manager.dto;
+
+import org.springblade.manager.entity.TabBusstimeInfo;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 元素业务时间表数据传输对象实体类
+ *
+ * @author BladeX
+ * @since 2023-07-11
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class TabBusstimeInfoDTO extends TabBusstimeInfo {
+	private static final long serialVersionUID = 1L;
+
+}

+ 62 - 0
blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/entity/TabBusstimeInfo.java

@@ -0,0 +1,62 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.manager.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+
+import io.swagger.annotations.ApiModelProperty;
+import org.springblade.core.mp.base.BaseEntity;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 元素业务时间表实体类
+ *
+ * @author BladeX
+ * @since 2023-07-11
+ */
+@Data
+@TableName("m_tab_busstime_info")
+@EqualsAndHashCode(callSuper = true)
+public class TabBusstimeInfo extends BaseEntity {
+
+	private static final long serialVersionUID = 1L;
+
+	/**
+	* 元素表主键
+	*/
+	@ApiModelProperty("元素表主键")
+		private Long tableId;
+	/**
+	* 元素列表主键
+	*/
+	@ApiModelProperty("元素列表主键")
+		private Long colId;
+	/**
+	* 元素表英文名称
+	*/
+	@ApiModelProperty("元素表英文名称")
+		private String tabEnName;
+	/**
+	* 列字段key
+	*/
+	@ApiModelProperty("列字段key")
+		private String colKey;
+
+
+}

+ 6 - 0
blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/feign/WbsTreeContractClient.java

@@ -1,7 +1,9 @@
 package org.springblade.manager.feign;
 
+import org.springblade.core.tool.api.R;
 import org.springblade.manager.entity.ContractRelationJlyz;
 import org.springblade.manager.entity.WbsTreeContract;
+import org.springblade.manager.vo.AppWbsTreeContractVO;
 import org.springblade.manager.vo.WbsTreeContractTreeVOS;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.GetMapping;
@@ -177,4 +179,8 @@ public interface WbsTreeContractClient {
     @GetMapping(API_PREFIX + "/getNextPkeyIdByNodeType")
     Long getNextPkeyIdByNodeType(@RequestParam Long pkeyId, @RequestParam Integer nodeType);
 
+
+    //获取 节点下表单
+    @GetMapping(API_PREFIX + "/searchNodeAllTable")
+    List<AppWbsTreeContractVO> searchNodeAllTable(String primaryKeyId, String type, String contractId, String projectId);
 }

+ 34 - 0
blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/vo/TabBusstimeInfoVO.java

@@ -0,0 +1,34 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.manager.vo;
+
+import org.springblade.manager.entity.TabBusstimeInfo;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 元素业务时间表视图实体类
+ *
+ * @author BladeX
+ * @since 2023-07-11
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class TabBusstimeInfoVO extends TabBusstimeInfo {
+	private static final long serialVersionUID = 1L;
+
+}

+ 4 - 0
blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/vo/WbsFormElementVO.java

@@ -30,4 +30,8 @@ public class WbsFormElementVO extends WbsFormElement {
      */
     private Long nodeId;
 
+    /**
+     * 是否保存业务时间 '0'否 '1'是
+     */
+    private Integer isBussTime;
 }

+ 3 - 0
blade-service/blade-business/src/main/java/org/springblade/business/mapper/InformationQueryMapper.java

@@ -26,6 +26,7 @@ import java.util.Map;
 
 import org.apache.ibatis.annotations.Param;
 import org.springblade.business.vo.QueryProcessDataVO;
+import org.springblade.manager.entity.TabBusstimeInfo;
 import org.springblade.manager.entity.WbsTreeContract;
 import org.springblade.manager.vo.WbsTreeContractTreeVOS;
 
@@ -129,4 +130,6 @@ public interface InformationQueryMapper extends BaseMapper<InformationQuery> {
     List<InformationQuery> selectChildrenNodeInfo(@Param("node") WbsTreeContract node);
 
     List<InformationQuery> getInformationByContractId(@Param("contractId") Long contractId);
+
+    List<TabBusstimeInfo> getTabussTimeInfo(@Param("tables") List<String> tables);
 }

+ 25 - 0
blade-service/blade-business/src/main/java/org/springblade/business/mapper/InformationQueryMapper.xml

@@ -73,6 +73,22 @@
         <result column="submitCounts" property="submitCounts"/>
     </resultMap>
 
+    <!-- 通用查询映射结果 -->
+    <resultMap id="tabBusstimeInfoResultMap" type="org.springblade.manager.entity.TabBusstimeInfo">
+        <result column="id" property="id"/>
+        <result column="create_user" property="createUser"/>
+        <result column="create_dept" property="createDept"/>
+        <result column="create_time" property="createTime"/>
+        <result column="update_user" property="updateUser"/>
+        <result column="update_time" property="updateTime"/>
+        <result column="status" property="status"/>
+        <result column="is_deleted" property="isDeleted"/>
+        <result column="table_id" property="tableId"/>
+        <result column="col_id" property="colId"/>
+        <result column="tab_en_name" property="tabEnName"/>
+        <result column="col_key" property="colKey"/>
+    </resultMap>
+
     <resultMap id="intResultMap" type="java.lang.Integer"/>
 
     <update id="updateBatchByPKeyId">
@@ -882,4 +898,13 @@
           and contract_id = #{contractId} and is_deleted = 0;
     </select>
 
+    <select id="getTabussTimeInfo" resultMap="tabBusstimeInfoResultMap">
+        select * from m_tab_busstime_info where is_deleted = 0 and
+        <if test="tables != null">
+            and tab_en_name in
+            <foreach collection="tables" item="wbsIdc" open="(" separator="," close=")">
+                #{wbsIdc}
+            </foreach>
+        </if>
+    </select>
 </mapper>

+ 3 - 0
blade-service/blade-business/src/main/java/org/springblade/business/service/IInformationQueryService.java

@@ -23,6 +23,7 @@ import org.springblade.business.vo.InformationQueryVO;
 import org.springblade.business.vo.QueryProcessDataVO;
 import org.springblade.core.mp.base.BaseService;
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.springblade.manager.entity.TabBusstimeInfo;
 import org.springblade.manager.entity.WbsTreeContract;
 import org.springblade.manager.vo.WbsTreeContractTreeVOS;
 import org.springframework.scheduling.annotation.Async;
@@ -153,4 +154,6 @@ public interface IInformationQueryService extends BaseService<InformationQuery>
 
     List<QueryProcessDataVO> getNodeChildTabColsWithValueByTabName(String initTabName, String pKeyId);
 
+    //获取表单是否配置 业务时间字段
+    List<TabBusstimeInfo> getTabussTimeInfo(List<String> tables);
 }

+ 6 - 0
blade-service/blade-business/src/main/java/org/springblade/business/service/impl/InformationQueryServiceImpl.java

@@ -25,6 +25,7 @@ import org.springblade.core.secure.BladeUser;
 import org.springblade.core.secure.utils.AuthUtil;
 import org.springblade.core.tool.utils.*;
 import org.springblade.manager.entity.ContractInfo;
+import org.springblade.manager.entity.TabBusstimeInfo;
 import org.springblade.manager.entity.WbsTreeContract;
 import org.springblade.manager.feign.ContractClient;
 import org.springblade.manager.feign.WbsTreeContractClient;
@@ -888,4 +889,9 @@ public class InformationQueryServiceImpl extends BaseServiceImpl<InformationQuer
         return baseMapper.getNodeChildTabColsWithValueByTabName(initTabName,pKeyId);
     }
 
+    @Override
+    public List<TabBusstimeInfo> getTabussTimeInfo(List<String> tables) {
+        return baseMapper.getTabussTimeInfo(tables);
+    }
+
 }

+ 48 - 6
blade-service/blade-business/src/main/java/org/springblade/business/service/impl/TaskServiceImpl.java

@@ -15,6 +15,7 @@ import org.springblade.business.entity.*;
 import org.springblade.business.mapper.TaskMapper;
 import org.springblade.business.service.*;
 import org.springblade.business.vo.*;
+import org.springblade.common.utils.CommonUtil;
 import org.springblade.common.utils.FileUtils;
 import org.springblade.common.utils.SnowFlakeUtil;
 import org.springblade.core.log.exception.ServiceException;
@@ -38,11 +39,14 @@ import org.springblade.flow.core.utils.TaskUtil;
 import org.springblade.flow.core.vo.FlowProcessVO;
 import org.springblade.manager.entity.ContractInfo;
 import org.springblade.manager.entity.ProjectInfo;
+import org.springblade.manager.entity.TabBusstimeInfo;
 import org.springblade.manager.entity.WbsTreeContract;
 import org.springblade.manager.feign.ArchiveTreeContractClient;
 import org.springblade.manager.feign.ContractClient;
 import org.springblade.manager.feign.ProjectClient;
 import org.springblade.manager.feign.WbsTreeContractClient;
+import org.springblade.manager.vo.AppWbsTreeContractVO;
+import org.springblade.resource.feign.CommonFileClient;
 import org.springblade.system.user.cache.UserCache;
 import org.springblade.system.user.entity.User;
 import org.springframework.beans.BeanUtils;
@@ -108,7 +112,8 @@ public class TaskServiceImpl extends BaseServiceImpl<TaskMapper, Task> implement
 
     private final WbsTreeContractClient wbsTreeContractClient;
 
-    private final ArchiveTreeContractClient archiveTreeContractClient;
+    private final CommonFileClient commonFileClient;
+
 
     @Autowired
     StringRedisTemplate RedisTemplate;
@@ -966,11 +971,48 @@ public class TaskServiceImpl extends BaseServiceImpl<TaskMapper, Task> implement
      */
     @Transactional
     public void updateWriteBusinessDataStatus(String formDataId, Integer status, String newFileUrl) {
-        this.informationQueryService.update(Wrappers.<InformationQuery>lambdaUpdate().set(InformationQuery::getStatus, status)
-                .set(InformationQuery::getEVisaPdfUrl, newFileUrl)
-                .set(InformationQuery::getReportNumber, null)
-                .set(InformationQuery::getAuditUserIdAndName, null)
-                .in(InformationQuery::getId, Arrays.asList(formDataId.split(","))));
+
+        try {
+            String pdfPage = commonFileClient.getPdfNum(newFileUrl);
+            Long pdfSize = CommonUtil.getResourceLength(newFileUrl);
+            List<String> list = Arrays.asList(formDataId.split(","));
+            for(String iId : list){
+                //获取
+                String dateInfo = "";
+                InformationQuery queryinfo = informationQueryService.getById(iId);
+                List<AppWbsTreeContractVO> WbsTreeContract = wbsTreeContractClient.searchNodeAllTable(queryinfo.getWbsId() + "", queryinfo.getClassify() + "", queryinfo.getContractId() + "", queryinfo.getProjectId() + "");
+                List<String> collect = new ArrayList<>();
+                Map<String,String> idMap = new HashMap<>();
+                for(AppWbsTreeContractVO appWbsTreeContractVO : WbsTreeContract){
+                    collect.add(appWbsTreeContractVO.getInitTableName());
+                    idMap.put(appWbsTreeContractVO.getInitTableName(),appWbsTreeContractVO.getPKeyId()+"");
+                }
+                List<TabBusstimeInfo> tabussTimeInfo = informationQueryService.getTabussTimeInfo(collect);
+                if(tabussTimeInfo!=null && tabussTimeInfo.size()>=1){
+                    TabBusstimeInfo tabBusstimeInfo = tabussTimeInfo.get(0);
+                    String querySql = "select "+tabBusstimeInfo.getColKey()+" from "+tabBusstimeInfo.getTabEnName()+" where p_key_id="+idMap.get(tabBusstimeInfo.getTabEnName());
+                    Map<String, Object> maps = jdbcTemplate.queryForMap(querySql);
+                    if(maps!=null){
+                        dateInfo = maps.get(tabBusstimeInfo.getColKey())+"";
+                    }
+                }
+
+                this.informationQueryService.update(Wrappers.<InformationQuery>lambdaUpdate().set(InformationQuery::getStatus, status)
+                        .set(InformationQuery::getEVisaPdfUrl, newFileUrl)
+                        .set(InformationQuery::getReportNumber, null)
+                        .set(InformationQuery::getAuditUserIdAndName, null)
+                        .set(InformationQuery::getEVisaPdfPage, pdfPage)
+                        .set(InformationQuery::getEVisaPdfSize, pdfSize)
+                        .set(InformationQuery::getBusinessTime, dateInfo)
+                        .in(InformationQuery::getId, Arrays.asList(formDataId.split(","))));
+            }
+        }catch (Exception e){
+            this.informationQueryService.update(Wrappers.<InformationQuery>lambdaUpdate().set(InformationQuery::getStatus, status)
+                    .set(InformationQuery::getEVisaPdfUrl, newFileUrl)
+                    .set(InformationQuery::getReportNumber, null)
+                    .set(InformationQuery::getAuditUserIdAndName, null)
+                    .in(InformationQuery::getId, Arrays.asList(formDataId.split(","))));
+        }
 
         //TODO 测试完成后打开
 //        InformationQuery query = this.informationQueryService.getById(formDataId);

+ 22 - 3
blade-service/blade-control/pom.xml

@@ -52,13 +52,32 @@
             <groupId>org.springblade</groupId>
             <artifactId>blade-starter-excel</artifactId>
         </dependency>
-
+        <dependency>
+            <groupId>org.springblade</groupId>
+            <artifactId>blade-resource-api</artifactId>
+            <version>2.9.1.RELEASE</version>
+            <scope>compile</scope>
+        </dependency>
         <dependency>
             <groupId>org.apache.pdfbox</groupId>
             <artifactId>pdfbox</artifactId>
-            <version>2.0.27</version>
+            <version>2.0.20</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>easyexcel</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.springblade</groupId>
+            <artifactId>blade-starter-excel</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>joda-time</groupId>
+            <artifactId>joda-time</artifactId>
+            <version>2.9.9</version>
+            <scope>compile</scope>
         </dependency>
-
     </dependencies>
     <build>
         <plugins>

+ 14 - 0
blade-service/blade-control/src/main/java/org/springblade/control/controller/DictInfoController.java

@@ -22,13 +22,19 @@ import lombok.AllArgsConstructor;
 
 import javax.validation.Valid;
 
+import org.springblade.core.cache.utils.CacheUtil;
 import org.springblade.core.log.exception.ServiceException;
 import org.springblade.core.mp.support.Condition;
 import org.springblade.core.mp.support.Query;
+import org.springblade.core.tenant.annotation.NonDS;
 import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.support.Kv;
 import org.springblade.core.tool.utils.Func;
 import org.springblade.core.tool.utils.ObjectUtil;
+import org.springblade.core.tool.utils.StringUtil;
+import org.springblade.system.cache.DictCache;
 import org.springblade.system.entity.DictBiz;
+import org.springblade.system.enums.DictEnum;
 import org.springblade.system.vo.DictBizVO;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.bind.annotation.RequestParam;
@@ -42,12 +48,17 @@ import springfox.documentation.annotations.ApiIgnore;
 import java.util.List;
 import java.util.Map;
 
+import static org.springblade.core.cache.constant.CacheConstant.DICT_CACHE;
+import static org.springblade.core.cache.constant.CacheConstant.SYS_CACHE;
+
 /**
  * 参数信息表 控制器
  *
  * @author BladeX
  * @since 2023-06-05
  */
+
+
 @RestController
 @AllArgsConstructor
 @RequestMapping("/dictinfo")
@@ -69,7 +80,9 @@ public class DictInfoController extends BladeController {
                 throw new ServiceException("没有权限,请联系管理员");
             }
         }
+        CacheUtil.clear(DICT_CACHE, Boolean.FALSE);
         return R.status(dictInfoService.saveOrUpdate(dictInfo));
+
     }
 
 
@@ -84,6 +97,7 @@ public class DictInfoController extends BladeController {
         if (dictInfo1 != null && dictInfo1.getType().equals(6)) {
             throw new ServiceException("没有权限,请联系管理员");
         }
+        CacheUtil.clear(DICT_CACHE, Boolean.FALSE);
         return R.status(dictInfoService.removeBatchByIds(Func.toLongList(ids)));
     }
 

+ 50 - 12
blade-service/blade-control/src/main/java/org/springblade/control/controller/UserFilesInfoController.java

@@ -16,6 +16,7 @@
  */
 package org.springblade.control.controller;
 
+import com.alibaba.spring.util.BeanUtils;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
@@ -23,9 +24,11 @@ import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
 import lombok.AllArgsConstructor;
 import javax.validation.Valid;
 
+import org.springblade.control.wrapper.UserFilesWrapper;
 import org.springblade.core.mp.support.Condition;
 import org.springblade.core.mp.support.Query;
 import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.BeanUtil;
 import org.springblade.core.tool.utils.Func;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.bind.annotation.RequestParam;
@@ -49,9 +52,9 @@ public class UserFilesInfoController extends BladeController {
 
 	private final IUserFilesInfoService userFilesInfoService;
 
-	/**
+/*	*//**
 	 * 详情
-	 */
+	 *//*
 	@GetMapping("/detail")
 	@ApiOperationSupport(order = 1)
 	@ApiOperation(value = "详情", notes = "传入userFilesInfo")
@@ -61,9 +64,9 @@ public class UserFilesInfoController extends BladeController {
 	}
 
 
-	/**
+	*//**
 	 * 自定义分页 档案职工信息表
-	 */
+	 *//*
 	@GetMapping("/page")
 	@ApiOperationSupport(order = 3)
 	@ApiOperation(value = "分页", notes = "传入userFilesInfo")
@@ -72,9 +75,9 @@ public class UserFilesInfoController extends BladeController {
 		return R.data(pages);
 	}
 
-	/**
+	*//**
 	 * 新增 档案职工信息表
-	 */
+	 *//*
 	@PostMapping("/save")
 	@ApiOperationSupport(order = 4)
 	@ApiOperation(value = "新增", notes = "传入userFilesInfo")
@@ -82,9 +85,9 @@ public class UserFilesInfoController extends BladeController {
 		return R.status(userFilesInfoService.save(userFilesInfo));
 	}
 
-	/**
+	*//**
 	 * 修改 档案职工信息表
-	 */
+	 *//*
 	@PostMapping("/update")
 	@ApiOperationSupport(order = 5)
 	@ApiOperation(value = "修改", notes = "传入userFilesInfo")
@@ -92,9 +95,9 @@ public class UserFilesInfoController extends BladeController {
 		return R.status(userFilesInfoService.updateById(userFilesInfo));
 	}
 
-	/**
+	*//**
 	 * 新增或修改 档案职工信息表
-	 */
+	 *//*
 	@PostMapping("/submit")
 	@ApiOperationSupport(order = 6)
 	@ApiOperation(value = "新增或修改", notes = "传入userFilesInfo")
@@ -103,15 +106,50 @@ public class UserFilesInfoController extends BladeController {
 	}
 
 	
+	*/
+
+
+	/**
+	 * 新增或修改 档案职工信息表
+	 */
+	@PostMapping("/submit-user-file")
+	@ApiOperationSupport(order = 6)
+	@ApiOperation(value = "新增或修改", notes = "传入userFilesInfo")
+	public R submit(@Valid @RequestBody UserFilesInfoVO userFilesInfoVO) {
+		UserFilesInfo userFilesInfo = BeanUtil.copy(userFilesInfoVO,UserFilesInfo.class);
+		return R.status(userFilesInfoService.saveOrUpdate(userFilesInfo));
+	}
+
 	/**
 	 * 删除 档案职工信息表
 	 */
-	@PostMapping("/remove")
+	@PostMapping("/del-user-file-detail")
 	@ApiOperationSupport(order = 7)
 	@ApiOperation(value = "逻辑删除", notes = "传入ids")
 	public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
 		return R.status(userFilesInfoService.deleteLogic(Func.toLongList(ids)));
 	}
 
-	
+	/**
+	 * 详情
+	 */
+	@GetMapping("/get-user-file-detail")
+	@ApiOperationSupport(order = 8)
+	@ApiOperation(value = "员工档案详情", notes = "传入userFilesInfo")
+	public R<UserFilesInfoVO> getUserFileDetail(@ApiParam(value = "主键集id", required = true) @RequestParam String  id) {
+		UserFilesInfoVO detail = userFilesInfoService.getUserFileDetail(id);
+		return R.data(UserFilesWrapper.build().entityVO(detail));
+	}
+
+	/**
+	 * 档案职工信息表 分页
+	 */
+	@GetMapping("/get-user-file-page")
+	@ApiOperationSupport(order = 9)
+	@ApiOperation(value = "分页档案职工信息表", notes = "传入userFilesInfo")
+	public R<IPage<UserFilesInfoVO>> page(UserFilesInfoVO userFilesInfo,Query query) {
+		IPage<UserFilesInfoVO> pages = userFilesInfoService.selectUserFilesInfoPage(Condition.getPage(query),userFilesInfo);
+		return R.data(UserFilesWrapper.build().pageVO(pages));
+	}
+
 }

+ 25 - 1
blade-service/blade-control/src/main/java/org/springblade/control/controller/UserpayInfoController.java

@@ -29,6 +29,7 @@ import org.springblade.core.excel.util.ExcelUtil;
 import org.springblade.core.mp.support.Condition;
 import org.springblade.core.mp.support.Query;
 import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.BeanUtil;
 import org.springblade.core.tool.utils.DateUtil;
 import org.springblade.core.tool.utils.Func;
 import org.springframework.web.bind.annotation.*;
@@ -40,8 +41,14 @@ import org.springblade.control.service.IUserpayInfoService;
 import org.springblade.core.boot.ctrl.BladeController;
 import org.springframework.web.multipart.MultipartFile;
 
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.time.ZoneId;
+import java.time.ZonedDateTime;
 import java.util.ArrayList;
+import java.util.Date;
 import java.util.List;
+import java.util.stream.Collectors;
 
 /**
  * 薪酬管理 控制器
@@ -137,7 +144,24 @@ public class UserpayInfoController extends BladeController {
             @ApiImplicitParam(name = "dateInfo", value = "时间yyyy-mm", required = true)
     })
     public R importUserpayInfo(@RequestParam("file") MultipartFile file,String dateInfo) {
-        return userpayInfoService.importUserpayInfo(file,dateInfo);
+        userpayInfoService.delUserPayInoByDate(dateInfo);
+        List<UserpayExcel> list = ExcelUtil.read(file, UserpayExcel.class);
+        Date date = DateUtil.parse(dateInfo,"yyyy-MM");
+        ZoneId zoneId = ZoneId.systemDefault();
+        ZonedDateTime zonedDateTime = date.toInstant().atZone(zoneId);
+        LocalDate localDate = zonedDateTime.toLocalDate();
+        if(list!=null && list.size()>=1){
+            List<UserpayInfo> vos = list.stream().map(f -> {
+                UserpayInfo tag = new UserpayInfo();
+                BeanUtil.copy(f,tag);
+                tag.setCostTime(localDate);
+                return tag;
+            }).collect(Collectors.toList());
+            userpayInfoService.saveBatch(vos);
+            return R.success("导入成功");
+        }else {
+            return R.fail("没有一条数据");
+        }
     }
 
     /**

+ 3 - 0
blade-service/blade-control/src/main/java/org/springblade/control/mapper/UserFilesInfoMapper.java

@@ -39,4 +39,7 @@ public interface UserFilesInfoMapper extends BaseMapper<UserFilesInfo> {
 	 */
 	List<UserFilesInfoVO> selectUserFilesInfoPage(IPage page, UserFilesInfoVO userFilesInfo);
 
+	// 获取详情
+	UserFilesInfoVO getUserFileDetail(String id);
+
 }

+ 34 - 2
blade-service/blade-control/src/main/java/org/springblade/control/mapper/UserFilesInfoMapper.xml

@@ -30,8 +30,40 @@
     </resultMap>
 
 
-    <select id="selectUserFilesInfoPage" resultMap="userFilesInfoResultMap">
-        select * from c_user_files_info where is_deleted = 0
+    <!-- 通用查询映射结果 -->
+    <resultMap id="userFilesInfoResultVoMap" type="org.springblade.control.vo.UserFilesInfoVO">
+        <result column="id" property="id"/>
+        <result column="user_id" property="userId"/>
+        <result column="user_age" property="userAge"/>
+        <result column="car_name" property="carName"/>
+        <result column="nation" property="nation"/>
+        <result column="period_moth" property="periodMoth"/>
+        <result column="car_addr" property="carAddr"/>
+        <result column="car_aimg_url" property="carAimgUrl"/>
+        <result column="car_bimg_url" property="carBimgUrl"/>
+        <result column="marriage_status" property="marriageStatus"/>
+        <result column="renewal_count" property="renewalCount"/>
+        <result column="domicile_addr" property="domicileAddr"/>
+        <result column="education_type" property="educationType"/>
+        <result column="emergency_name" property="emergencyName"/>
+        <result column="emergency_phone" property="emergencyPhone"/>
+        <result column="emergency_relation" property="emergencyRelation"/>
+        <result column="speciality" property="speciality"/>
+        <result column="political" property="political"/>
+        <result column="bank_name" property="bankName"/>
+        <result column="user_status" property="userStatus"/>
+        <result column="bank_num" property="bankNum"/>
+        <result column="user_type" property="userType"/>
+        <result column="user_img_url" property="userImgUrl"/>
+        <!--试图 -->
+
+    </resultMap>
+
+    <select id="selectUserFilesInfoPage" resultMap="userFilesInfoResultVoMap">
+        select * from c_view_user_files_info where is_deleted = 0
     </select>
 
+    <select id="getUserFileDetail" resultMap="userFilesInfoResultVoMap">
+        select * from c_view_user_files_info where is_deleted = 0 and id=#{id}
+    </select>
 </mapper>

+ 1 - 0
blade-service/blade-control/src/main/java/org/springblade/control/service/IUserFilesInfoService.java

@@ -38,4 +38,5 @@ public interface IUserFilesInfoService extends BaseService<UserFilesInfo> {
 	 */
 	IPage<UserFilesInfoVO> selectUserFilesInfoPage(IPage<UserFilesInfoVO> page, UserFilesInfoVO userFilesInfo);
 
+	UserFilesInfoVO getUserFileDetail(String id);
 }

+ 0 - 1
blade-service/blade-control/src/main/java/org/springblade/control/service/IUserpayInfoService.java

@@ -42,5 +42,4 @@ public interface IUserpayInfoService extends BaseService<UserpayInfo> {
 
     boolean delUserPayInoByDate(String date);
 
-    R importUserpayInfo(MultipartFile file, String dateInfo);
 }

+ 5 - 0
blade-service/blade-control/src/main/java/org/springblade/control/service/impl/UserFilesInfoServiceImpl.java

@@ -38,4 +38,9 @@ public class UserFilesInfoServiceImpl extends BaseServiceImpl<UserFilesInfoMappe
 		return page.setRecords(baseMapper.selectUserFilesInfoPage(page, userFilesInfo));
 	}
 
+	@Override
+	public UserFilesInfoVO getUserFileDetail(String id) {
+		return baseMapper.getUserFileDetail(id);
+	}
+
 }

+ 2 - 10
blade-service/blade-control/src/main/java/org/springblade/control/service/impl/UserpayInfoServiceImpl.java

@@ -18,12 +18,14 @@ package org.springblade.control.service.impl;
 
 import org.springblade.control.entity.UserpayInfo;
 import org.springblade.control.excel.UserpayExcel;
+import org.springblade.control.vo.EMPurchaseInfoVO;
 import org.springblade.control.vo.UserpayInfoVO;
 import org.springblade.control.mapper.UserpayInfoMapper;
 import org.springblade.control.service.IUserpayInfoService;
 import org.springblade.core.excel.util.ExcelUtil;
 import org.springblade.core.mp.base.BaseServiceImpl;
 import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.BeanUtil;
 import org.springframework.stereotype.Service;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import org.springframework.web.multipart.MultipartFile;
@@ -49,14 +51,4 @@ public class UserpayInfoServiceImpl extends BaseServiceImpl<UserpayInfoMapper, U
         return baseMapper.delUserPayInoByDate(date);
     }
 
-    @Override
-    public R importUserpayInfo(MultipartFile file, String dateInfo) {
-        List<UserpayExcel> list = ExcelUtil.read(file, UserpayExcel.class);
-        if(list!=null && list.size()>=1){
-            //list.stream().
-        }
-
-        return null;
-    }
-
 }

+ 69 - 0
blade-service/blade-control/src/main/java/org/springblade/control/wrapper/UserFilesWrapper.java

@@ -0,0 +1,69 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.control.wrapper;
+
+import com.alibaba.fastjson.JSON;
+import org.springblade.control.vo.UserFilesInfoVO;
+import org.springblade.core.mp.support.BaseEntityWrapper;
+import org.springblade.core.tool.utils.BeanUtil;
+import org.springblade.core.tool.utils.Func;
+import org.springblade.core.tool.utils.ObjectUtil;
+import org.springblade.system.cache.DictCache;
+import org.springblade.system.cache.SysCache;
+import org.springblade.system.entity.Dict;
+import org.springblade.system.entity.Tenant;
+import org.springblade.system.enums.DictEnum;
+import org.springblade.system.user.entity.User;
+import org.springblade.system.user.vo.DeptUserVO;
+import org.springblade.system.user.vo.UserVO;
+
+import java.util.List;
+import java.util.Objects;
+
+/**
+ * 包装类,返回视图层所需的字段
+ *
+ * @author Chill
+ */
+public class UserFilesWrapper extends BaseEntityWrapper<UserFilesInfoVO, UserFilesInfoVO> {
+
+    public static UserFilesWrapper build() {
+        return new UserFilesWrapper();
+    }
+
+    @Override
+    public UserFilesInfoVO entityVO(UserFilesInfoVO userFilesInfo) {
+
+
+        List<String> deptName = SysCache.getDeptNames(userFilesInfo.getDeptId()+"");
+        List<String> postName = SysCache.getPostNames(userFilesInfo.getPostId()+"");
+
+        userFilesInfo.setDeptName(Func.join(deptName));
+        userFilesInfo.setPostName(Func.join(postName));
+        userFilesInfo.setSexName(DictCache.getValue(DictEnum.SEX, userFilesInfo.getSex()));
+        userFilesInfo.setMarriageStatusName(DictCache.getValue("marriage_status", userFilesInfo.getMarriageStatus()));;
+        userFilesInfo.setEducationName(DictCache.getValue("education_type", userFilesInfo.getEducationType()));;
+        userFilesInfo.setUserTypeName(DictCache.getValue("user_type", userFilesInfo.getUserType()));
+        userFilesInfo.setConTypeName(DictCache.getValue("con_type", userFilesInfo.getConType()));
+        userFilesInfo.setUserStatusName(DictCache.getValue("user_status", userFilesInfo.getUserStatus()));
+        List<Dict> userStatus = DictCache.getList("user_status");
+        System.out.println(userStatus);
+        userFilesInfo.setPoliticalName(DictCache.getValue("political_type", userFilesInfo.getPolitical()));
+        return userFilesInfo;
+    }
+
+}

+ 145 - 0
blade-service/blade-manager/src/main/java/org/springblade/manager/controller/TabBusstimeInfoController.java

@@ -0,0 +1,145 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.manager.controller;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import lombok.AllArgsConstructor;
+import javax.validation.Valid;
+
+import org.springblade.core.mp.support.Condition;
+import org.springblade.core.mp.support.Query;
+import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.Func;
+import org.springblade.core.tool.utils.StringUtil;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.annotation.RequestParam;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.springblade.manager.entity.TabBusstimeInfo;
+import org.springblade.manager.vo.TabBusstimeInfoVO;
+import org.springblade.manager.service.ITabBusstimeInfoService;
+import org.springblade.core.boot.ctrl.BladeController;
+
+/**
+ * 元素业务时间表 控制器
+ *
+ * @author BladeX
+ * @since 2023-07-11
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("/tabbusstimeinfo")
+@Api(value = "元素业务时间表", tags = "元素业务时间表接口")
+public class TabBusstimeInfoController extends BladeController {
+
+	private final ITabBusstimeInfoService tabBusstimeInfoService;
+
+/*	*//**
+	 * 详情
+	 *//*
+	@GetMapping("/detail")
+	@ApiOperationSupport(order = 1)
+	@ApiOperation(value = "详情", notes = "传入tabBusstimeInfo")
+	public R<TabBusstimeInfo> detail(TabBusstimeInfo tabBusstimeInfo) {
+		TabBusstimeInfo detail = tabBusstimeInfoService.getOne(Condition.getQueryWrapper(tabBusstimeInfo));
+		return R.data(detail);
+	}
+
+	*//**
+	 * 分页 元素业务时间表
+	 *//*
+	@GetMapping("/list")
+	@ApiOperationSupport(order = 2)
+	@ApiOperation(value = "分页", notes = "传入tabBusstimeInfo")
+	public R<IPage<TabBusstimeInfo>> list(TabBusstimeInfo tabBusstimeInfo, Query query) {
+		IPage<TabBusstimeInfo> pages = tabBusstimeInfoService.page(Condition.getPage(query), Condition.getQueryWrapper(tabBusstimeInfo));
+		return R.data(pages);
+	}
+
+	*//**
+	 * 自定义分页 元素业务时间表
+	 *//*
+	@GetMapping("/page")
+	@ApiOperationSupport(order = 3)
+	@ApiOperation(value = "分页", notes = "传入tabBusstimeInfo")
+	public R<IPage<TabBusstimeInfoVO>> page(TabBusstimeInfoVO tabBusstimeInfo, Query query) {
+		IPage<TabBusstimeInfoVO> pages = tabBusstimeInfoService.selectTabBusstimeInfoPage(Condition.getPage(query), tabBusstimeInfo);
+		return R.data(pages);
+	}
+
+	*//**
+	 * 新增 元素业务时间表
+	 *//*
+	@PostMapping("/save")
+	@ApiOperationSupport(order = 4)
+	@ApiOperation(value = "新增", notes = "传入tabBusstimeInfo")
+	public R save(@Valid @RequestBody TabBusstimeInfo tabBusstimeInfo) {
+		return R.status(tabBusstimeInfoService.save(tabBusstimeInfo));
+	}
+
+	*//**
+	 * 修改 元素业务时间表
+	 *//*
+	@PostMapping("/update")
+	@ApiOperationSupport(order = 5)
+	@ApiOperation(value = "修改", notes = "传入tabBusstimeInfo")
+	public R update(@Valid @RequestBody TabBusstimeInfo tabBusstimeInfo) {
+		return R.status(tabBusstimeInfoService.updateById(tabBusstimeInfo));
+	}
+
+	*//**
+	 * 新增或修改 元素业务时间表
+	 *//*
+	@PostMapping("/submit")
+	@ApiOperationSupport(order = 6)
+	@ApiOperation(value = "新增或修改", notes = "传入tabBusstimeInfo")
+	public R submit(@Valid @RequestBody TabBusstimeInfo tabBusstimeInfo) {
+		return R.status(tabBusstimeInfoService.saveOrUpdate(tabBusstimeInfo));
+	}
+
+	
+	*/
+
+
+	/**
+	 * 新增 元素业务时间表
+ 	*/
+	@PostMapping("/save-tabusstime-info")
+	@ApiOperationSupport(order = 1)
+	@ApiOperation(value = "新增元素业务时间表", notes = "传入tabBusstimeInfo")
+	@Transactional
+	public R saveTabBusstimeInfo(@Valid @RequestBody TabBusstimeInfo tabBusstimeInfo) {
+		String [] keys = tabBusstimeInfo.getColKey().split(":");
+		tabBusstimeInfo.setColKey(keys[1]);
+		tabBusstimeInfo.setTabEnName(keys[0]);
+		tabBusstimeInfoService.delTabBussTimeByColId(tabBusstimeInfo.getColId()+"");
+		return R.status(tabBusstimeInfoService.save(tabBusstimeInfo));
+	}
+
+	/**
+	 * 删除 元素业务时间表
+	 */
+	@PostMapping("/remove")
+	@ApiOperationSupport(order = 2)
+	@ApiOperation(value = "逻辑删除", notes = "传入ids")
+	public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+		return R.status(tabBusstimeInfoService.delTabBussTimeByColId(ids));
+	}
+}

+ 6 - 0
blade-service/blade-manager/src/main/java/org/springblade/manager/feign/WbsTreeContractClientImpl.java

@@ -419,4 +419,10 @@ public class WbsTreeContractClientImpl implements WbsTreeContractClient {
         return null; // 如果没有满足条件的节点,返回null
     }
 
+    @Override
+    public List<AppWbsTreeContractVO> searchNodeAllTable(String primaryKeyId, String type, String contractId, String projectId) {
+        List<AppWbsTreeContractVO> list = wbsTreeContractService.searchNodeAllTable(primaryKeyId, type, contractId, projectId);
+        return list;
+    }
+
 }

+ 43 - 0
blade-service/blade-manager/src/main/java/org/springblade/manager/mapper/TabBusstimeInfoMapper.java

@@ -0,0 +1,43 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.manager.mapper;
+
+import org.springblade.manager.entity.TabBusstimeInfo;
+import org.springblade.manager.vo.TabBusstimeInfoVO;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import java.util.List;
+
+/**
+ * 元素业务时间表 Mapper 接口
+ *
+ * @author BladeX
+ * @since 2023-07-11
+ */
+public interface TabBusstimeInfoMapper extends BaseMapper<TabBusstimeInfo> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param tabBusstimeInfo
+	 * @return
+	 */
+	List<TabBusstimeInfoVO> selectTabBusstimeInfoPage(IPage page, TabBusstimeInfoVO tabBusstimeInfo);
+
+	boolean delTabBussTimeByColId(String colId);
+}

+ 29 - 0
blade-service/blade-manager/src/main/java/org/springblade/manager/mapper/TabBusstimeInfoMapper.xml

@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.springblade.manager.mapper.TabBusstimeInfoMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="tabBusstimeInfoResultMap" type="org.springblade.manager.entity.TabBusstimeInfo">
+        <result column="id" property="id"/>
+        <result column="create_user" property="createUser"/>
+        <result column="create_dept" property="createDept"/>
+        <result column="create_time" property="createTime"/>
+        <result column="update_user" property="updateUser"/>
+        <result column="update_time" property="updateTime"/>
+        <result column="status" property="status"/>
+        <result column="is_deleted" property="isDeleted"/>
+        <result column="table_id" property="tableId"/>
+        <result column="col_id" property="colId"/>
+        <result column="tab_en_name" property="tabEnName"/>
+        <result column="col_key" property="colKey"/>
+    </resultMap>
+
+
+    <select id="selectTabBusstimeInfoPage" resultMap="tabBusstimeInfoResultMap">
+        select * from m_tab_busstime_info where is_deleted = 0
+    </select>
+
+    <delete id="delTabBussTimeByColId">
+        delete from m_tab_busstime_info where col_id = #{colId}
+    </delete>
+</mapper>

+ 3 - 1
blade-service/blade-manager/src/main/java/org/springblade/manager/mapper/WbsTreeMapper.xml

@@ -93,6 +93,7 @@
         <result column="initTableName" property="initTableName"/>
         <result column="nodeId" property="nodeId"/>
         <result column="globalFormula" property="globalFormula"/>
+        <result column="isBussTime" property="isBussTime"/>
     </resultMap>
 
     <insert id="addFormElement" parameterType="org.springblade.manager.dto.WbsFormElementDTO">
@@ -446,7 +447,8 @@
              , e_Inspection_method
              , CONCAT(a.tab_en_name, ':', e_key) as
                                                     tableElementKey
-             , a.tab_en_name                     as initTableName
+             , a.tab_en_name                     as initTableName,
+            if((SELECT count(d.tab_en_name) from  m_tab_busstime_info d where  b.id = d.col_id)>=1,2,0)  isBussTime
         from (select * from m_table_info where id = #{id}) a
                  INNER JOIN
              m_wbs_form_element b on a.id = b.f_id

+ 42 - 0
blade-service/blade-manager/src/main/java/org/springblade/manager/service/ITabBusstimeInfoService.java

@@ -0,0 +1,42 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.manager.service;
+
+import org.springblade.manager.entity.TabBusstimeInfo;
+import org.springblade.manager.vo.TabBusstimeInfoVO;
+import org.springblade.core.mp.base.BaseService;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 元素业务时间表 服务类
+ *
+ * @author BladeX
+ * @since 2023-07-11
+ */
+public interface ITabBusstimeInfoService extends BaseService<TabBusstimeInfo> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page
+	 * @param tabBusstimeInfo
+	 * @return
+	 */
+	IPage<TabBusstimeInfoVO> selectTabBusstimeInfoPage(IPage<TabBusstimeInfoVO> page, TabBusstimeInfoVO tabBusstimeInfo);
+
+	boolean delTabBussTimeByColId(String colId);
+}

+ 46 - 0
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/TabBusstimeInfoServiceImpl.java

@@ -0,0 +1,46 @@
+/*
+ *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: Chill 庄骞 (smallchill@163.com)
+ */
+package org.springblade.manager.service.impl;
+
+import org.springblade.manager.entity.TabBusstimeInfo;
+import org.springblade.manager.vo.TabBusstimeInfoVO;
+import org.springblade.manager.mapper.TabBusstimeInfoMapper;
+import org.springblade.manager.service.ITabBusstimeInfoService;
+import org.springblade.core.mp.base.BaseServiceImpl;
+import org.springframework.stereotype.Service;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 元素业务时间表 服务实现类
+ *
+ * @author BladeX
+ * @since 2023-07-11
+ */
+@Service
+public class TabBusstimeInfoServiceImpl extends BaseServiceImpl<TabBusstimeInfoMapper, TabBusstimeInfo> implements ITabBusstimeInfoService {
+
+	@Override
+	public IPage<TabBusstimeInfoVO> selectTabBusstimeInfoPage(IPage<TabBusstimeInfoVO> page, TabBusstimeInfoVO tabBusstimeInfo) {
+		return page.setRecords(baseMapper.selectTabBusstimeInfoPage(page, tabBusstimeInfo));
+	}
+
+	@Override
+	public boolean delTabBussTimeByColId(String colId) {
+		return baseMapper.delTabBussTimeByColId(colId);
+	}
+
+}

+ 0 - 2
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/WbsTreeContractServiceImpl.java

@@ -393,10 +393,8 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
             }
             tableOwnerList = Func.toStrList(tableOwners);
         }
-
         return baseMapper.selectWbsTreeContractList(tableOwnerNumbers, wbsTreeContract.getProjectId(), wbsTreeContract.getWbsId(),
                 wbsTreeContract.getContractId(), wbsTreeContract.getId(), wbsTreeContract.getContractIdRelation(), tableOwnerList);
-
     }
 
     @Override

+ 2 - 2
blade-service/blade-system/src/main/java/org/springblade/system/controller/DictController.java

@@ -139,7 +139,7 @@ public class DictController extends BladeController {
     @ApiOperationSupport(order = 6)
     @ApiOperation(value = "新增或修改", notes = "传入dict")
     public R submit(@Valid @RequestBody Dict dict) {
-        CacheUtil.clear(DICT_CACHE, Boolean.FALSE);
+        CacheUtil.clear(DICT_CACHE);
         return R.status(dictService.submit(dict));
     }
 
@@ -151,7 +151,7 @@ public class DictController extends BladeController {
     @ApiOperationSupport(order = 7)
     @ApiOperation(value = "删除", notes = "传入ids")
     public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
-        CacheUtil.clear(DICT_CACHE, Boolean.FALSE);
+        CacheUtil.clear(DICT_CACHE);
         return R.status(dictService.removeDict(ids));
     }