diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 89d5c3e1..7b320794 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -7,16 +7,16 @@
+
+
-
-
-
-
-
-
+
+
+
+
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
index 8703e7ad..8c3bc4a0 100644
--- a/.idea/encodings.xml
+++ b/.idea/encodings.xml
@@ -1,6 +1,8 @@
+
+
@@ -13,8 +15,11 @@
+
+
+
diff --git a/dq-financial-api/src/main/java/com/daqing/financial/hrms/DeptControllerApi.java b/dq-financial-api/src/main/java/com/daqing/financial/hrms/DeptControllerApi.java
index a07fff28..443503fe 100644
--- a/dq-financial-api/src/main/java/com/daqing/financial/hrms/DeptControllerApi.java
+++ b/dq-financial-api/src/main/java/com/daqing/financial/hrms/DeptControllerApi.java
@@ -70,6 +70,12 @@ public interface DeptControllerApi {
@ApiOperation(value = "查询该部门下所有子部门及部门下的的员工", notes = "查询该部门下所有子部门及部门下的的员工")
ResponseResult children(Long id);
+ /**
+ * 获取所有部门id和名称(用户团队效率的部门筛选)
+ */
+ @ApiOperation(value = "获取所有部门id和名称(用户团队效率的部门筛选)", notes = "获取所有部门id和名称(用户团队效率的部门筛选)")
+ ResponseResult listDepartment();
+
/**
* 根据部门id查询该部门下所有员工
*/
diff --git a/dq-financial-api/target/classes/com/daqing/financial/DqFinancialApiApplication.class b/dq-financial-api/target/classes/com/daqing/financial/DqFinancialApiApplication.class
deleted file mode 100644
index 38b18cb5..00000000
Binary files a/dq-financial-api/target/classes/com/daqing/financial/DqFinancialApiApplication.class and /dev/null differ
diff --git a/dq-financial-api/target/classes/com/daqing/financial/config/SwaggerConfig.class b/dq-financial-api/target/classes/com/daqing/financial/config/SwaggerConfig.class
index dd3c1ee4..3a33f86e 100644
Binary files a/dq-financial-api/target/classes/com/daqing/financial/config/SwaggerConfig.class and b/dq-financial-api/target/classes/com/daqing/financial/config/SwaggerConfig.class differ
diff --git a/dq-financial-api/target/classes/com/daqing/financial/crms/CustomerControllerApi.class b/dq-financial-api/target/classes/com/daqing/financial/crms/CustomerControllerApi.class
index 4edb2409..73a0e029 100644
Binary files a/dq-financial-api/target/classes/com/daqing/financial/crms/CustomerControllerApi.class and b/dq-financial-api/target/classes/com/daqing/financial/crms/CustomerControllerApi.class differ
diff --git a/dq-financial-api/target/classes/com/daqing/financial/hrauth/UserLoginControllerApi.class b/dq-financial-api/target/classes/com/daqing/financial/hrauth/UserLoginControllerApi.class
index ce4e2fc4..89a9bd55 100644
Binary files a/dq-financial-api/target/classes/com/daqing/financial/hrauth/UserLoginControllerApi.class and b/dq-financial-api/target/classes/com/daqing/financial/hrauth/UserLoginControllerApi.class differ
diff --git a/dq-financial-api/target/classes/com/daqing/financial/hrms/DeptControllerApi.class b/dq-financial-api/target/classes/com/daqing/financial/hrms/DeptControllerApi.class
index 5ab93650..9119628c 100644
Binary files a/dq-financial-api/target/classes/com/daqing/financial/hrms/DeptControllerApi.class and b/dq-financial-api/target/classes/com/daqing/financial/hrms/DeptControllerApi.class differ
diff --git a/dq-financial-api/target/classes/com/daqing/financial/hrms/EmployeeControllerApi.class b/dq-financial-api/target/classes/com/daqing/financial/hrms/EmployeeControllerApi.class
index e6b3b9e4..f910927a 100644
Binary files a/dq-financial-api/target/classes/com/daqing/financial/hrms/EmployeeControllerApi.class and b/dq-financial-api/target/classes/com/daqing/financial/hrms/EmployeeControllerApi.class differ
diff --git a/dq-financial-api/target/classes/com/daqing/financial/hrms/PermissionControllerApi.class b/dq-financial-api/target/classes/com/daqing/financial/hrms/PermissionControllerApi.class
index feb1f657..9c20bb1d 100644
Binary files a/dq-financial-api/target/classes/com/daqing/financial/hrms/PermissionControllerApi.class and b/dq-financial-api/target/classes/com/daqing/financial/hrms/PermissionControllerApi.class differ
diff --git a/dq-financial-api/target/classes/com/daqing/financial/hrms/PositionControllerApi.class b/dq-financial-api/target/classes/com/daqing/financial/hrms/PositionControllerApi.class
index 11730f47..6db5f2a2 100644
Binary files a/dq-financial-api/target/classes/com/daqing/financial/hrms/PositionControllerApi.class and b/dq-financial-api/target/classes/com/daqing/financial/hrms/PositionControllerApi.class differ
diff --git a/dq-financial-crms/src/main/java/com/daqing/financial/crms/model/request/CompanyCustomerRequest.java b/dq-financial-crms/src/main/java/com/daqing/financial/crms/model/request/CompanyCustomerRequest.java
index 2b911495..a321465e 100644
--- a/dq-financial-crms/src/main/java/com/daqing/financial/crms/model/request/CompanyCustomerRequest.java
+++ b/dq-financial-crms/src/main/java/com/daqing/financial/crms/model/request/CompanyCustomerRequest.java
@@ -68,7 +68,7 @@ public class CompanyCustomerRequest implements Serializable {
@ApiModelProperty(value = "联系人")
private String linkman;
- @ApiModelProperty(value = "联系人的联系电话")
+ @ApiModelProperty(value = "联系人电话")
private String linkPhone;
@ApiModelProperty(value = "经营地址")
diff --git a/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerServiceImpl.java b/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerServiceImpl.java
index 794f185c..9b0fff26 100644
--- a/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerServiceImpl.java
+++ b/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerServiceImpl.java
@@ -240,7 +240,7 @@ public class CustomerServiceImpl extends ServiceImpl().FAIL("导入数据失败,员工" + manager.getManager() + "不存在");
}
}
- this.saveCustomerCompany(customerCompanyTOI);
+ this.insertCompany(companyCustomerRequest);
+ // this.saveCustomerCompany(customerCompanyTOI);
}
return ResponseResult.SUCCESS();
} catch (Exception e) {
diff --git a/dq-financial-crms/src/main/resources/mapper/crms/CompanyCustomerDao.xml b/dq-financial-crms/src/main/resources/mapper/crms/CompanyCustomerDao.xml
index deee2166..7acd5e86 100644
--- a/dq-financial-crms/src/main/resources/mapper/crms/CompanyCustomerDao.xml
+++ b/dq-financial-crms/src/main/resources/mapper/crms/CompanyCustomerDao.xml
@@ -33,7 +33,7 @@
diff --git a/dq-financial-crms/target/classes/META-INF/dq-financial-crms.kotlin_module b/dq-financial-crms/target/classes/META-INF/dq-financial-crms.kotlin_module
deleted file mode 100644
index 8fb60192..00000000
Binary files a/dq-financial-crms/target/classes/META-INF/dq-financial-crms.kotlin_module and /dev/null differ
diff --git a/dq-financial-crms/target/classes/bootstrap.properties b/dq-financial-crms/target/classes/bootstrap.properties
index 95bb071b..fe1ce1cd 100644
--- a/dq-financial-crms/target/classes/bootstrap.properties
+++ b/dq-financial-crms/target/classes/bootstrap.properties
@@ -1,7 +1,8 @@
+# 开发和测试环境(dev)
#服务名称
spring.application.name=dq-financial-crms
#配置中心地址
-spring.cloud.nacos.config.server-addr=192.168.31.142:8848
+spring.cloud.nacos.config.server-addr=192.168.31.140:8848
spring.cloud.nacos.config.namespace=1f69d47e-0aeb-4a1e-8ab4-0e84dfb86354
#spring.cloud.nacos.config.group=prod
@@ -15,4 +16,80 @@ spring.cloud.nacos.config.ext-config[1].refresh=true
spring.cloud.nacos.config.ext-config[2].data-id=other.yml
spring.cloud.nacos.config.ext-config[2].group=dev
-spring.cloud.nacos.config.ext-config[2].refresh=true
\ No newline at end of file
+spring.cloud.nacos.config.ext-config[2].refresh=true
+
+spring.redis.host=127.0.0.1
+spring.redis.port=6379
+spring.redis.password=123456
+spring.redis.database=0
+spring.redis.timeout=30000
+spring.redis.jedis.pool.max-active=8
+spring.redis.jedis.pool.max-wait=-1
+spring.redis.jedis.pool.max-idle=8
+spring.redis.jedis.pool.min-idle=0
+
+#请求处理的超时时间
+ribbon.ReadTimeout: 120000
+#请求连接的超时时间
+ribbon.ConnectTimeout: 120000
+
+# 正式环境(prod)
+#服务名称
+#spring.application.name=dq-financial-crms
+###配置中心地址
+#spring.cloud.nacos.config.server-addr=120.78.127.12:8848
+#spring.cloud.nacos.config.namespace=25ce05e2-a0eb-4842-92e4-d8b550a489dd
+##spring.cloud.nacos.config.group=prod
+#
+#spring.cloud.nacos.config.ext-config[0].data-id=datasource.yml
+#spring.cloud.nacos.config.ext-config[0].group=prod
+#spring.cloud.nacos.config.ext-config[0].refresh=true
+#
+#spring.cloud.nacos.config.ext-config[1].data-id=mybatis.yml
+#spring.cloud.nacos.config.ext-config[1].group=prod
+#spring.cloud.nacos.config.ext-config[1].refresh=true
+#
+#spring.cloud.nacos.config.ext-config[2].data-id=other.yml
+#spring.cloud.nacos.config.ext-config[2].group=prod
+#spring.cloud.nacos.config.ext-config[2].refresh=true
+#
+#spring.redis.host=127.0.0.1
+#spring.redis.port=6379
+#spring.redis.password=dq123456
+#spring.redis.database=0
+#spring.redis.timeout=30000
+#spring.redis.jedis.pool.max-active=8
+#spring.redis.jedis.pool.max-wait=-1
+#spring.redis.jedis.pool.max-idle=8
+#spring.redis.jedis.pool.min-idle=0
+
+
+# 测试环境(prod)
+#服务名称
+#spring.application.name=dq-financial-crms
+##配置中心地址
+#spring.cloud.nacos.config.server-addr=127.0.0.1:8848
+#spring.cloud.nacos.config.namespace=1912aa66-6e18-4680-8943-5b8fae71414c
+##spring.cloud.nacos.config.group=prod
+#
+#spring.cloud.nacos.config.ext-config[0].data-id=datasource.yml
+#spring.cloud.nacos.config.ext-config[0].group=prod
+#spring.cloud.nacos.config.ext-config[0].refresh=true
+#
+#spring.cloud.nacos.config.ext-config[1].data-id=mybatis.yml
+#spring.cloud.nacos.config.ext-config[1].group=prod
+#spring.cloud.nacos.config.ext-config[1].refresh=true
+#
+#spring.cloud.nacos.config.ext-config[2].data-id=other.yml
+#spring.cloud.nacos.config.ext-config[2].group=prod
+#spring.cloud.nacos.config.ext-config[2].refresh=true
+#
+#spring.redis.host=127.0.0.1
+#spring.redis.port=6379
+#spring.redis.password=
+#spring.redis.database=0
+#spring.redis.timeout=30000
+#spring.redis.jedis.pool.max-active=8
+#spring.redis.jedis.pool.max-wait=-1
+#spring.redis.jedis.pool.max-idle=8
+#spring.redis.jedis.pool.min-idle=0
\ No newline at end of file
diff --git a/dq-financial-crms/target/classes/com/daqing/financial/crms/DqFinancialCrmsApplication.class b/dq-financial-crms/target/classes/com/daqing/financial/crms/DqFinancialCrmsApplication.class
index 518270b3..a37e7e3b 100644
Binary files a/dq-financial-crms/target/classes/com/daqing/financial/crms/DqFinancialCrmsApplication.class and b/dq-financial-crms/target/classes/com/daqing/financial/crms/DqFinancialCrmsApplication.class differ
diff --git a/dq-financial-crms/target/classes/com/daqing/financial/crms/config/CorsConfig.class b/dq-financial-crms/target/classes/com/daqing/financial/crms/config/CorsConfig.class
deleted file mode 100644
index 6f152156..00000000
Binary files a/dq-financial-crms/target/classes/com/daqing/financial/crms/config/CorsConfig.class and /dev/null differ
diff --git a/dq-financial-crms/target/classes/com/daqing/financial/crms/config/IPageConfig.class b/dq-financial-crms/target/classes/com/daqing/financial/crms/config/IPageConfig.class
deleted file mode 100644
index 176a6cff..00000000
Binary files a/dq-financial-crms/target/classes/com/daqing/financial/crms/config/IPageConfig.class and /dev/null differ
diff --git a/dq-financial-crms/target/classes/com/daqing/financial/crms/controller/CustomerController.class b/dq-financial-crms/target/classes/com/daqing/financial/crms/controller/CustomerController.class
index 8dfdaae2..b5038199 100644
Binary files a/dq-financial-crms/target/classes/com/daqing/financial/crms/controller/CustomerController.class and b/dq-financial-crms/target/classes/com/daqing/financial/crms/controller/CustomerController.class differ
diff --git a/dq-financial-crms/target/classes/com/daqing/financial/crms/dao/CompanyCustomerDao.class b/dq-financial-crms/target/classes/com/daqing/financial/crms/dao/CompanyCustomerDao.class
index 364a01cf..843b829f 100644
Binary files a/dq-financial-crms/target/classes/com/daqing/financial/crms/dao/CompanyCustomerDao.class and b/dq-financial-crms/target/classes/com/daqing/financial/crms/dao/CompanyCustomerDao.class differ
diff --git a/dq-financial-crms/target/classes/com/daqing/financial/crms/dao/CustomerDao.class b/dq-financial-crms/target/classes/com/daqing/financial/crms/dao/CustomerDao.class
index 060ed43c..a4266a6b 100644
Binary files a/dq-financial-crms/target/classes/com/daqing/financial/crms/dao/CustomerDao.class and b/dq-financial-crms/target/classes/com/daqing/financial/crms/dao/CustomerDao.class differ
diff --git a/dq-financial-crms/target/classes/com/daqing/financial/crms/feign/HrmsFeignService.class b/dq-financial-crms/target/classes/com/daqing/financial/crms/feign/HrmsFeignService.class
index 19fe26e9..51fac9d9 100644
Binary files a/dq-financial-crms/target/classes/com/daqing/financial/crms/feign/HrmsFeignService.class and b/dq-financial-crms/target/classes/com/daqing/financial/crms/feign/HrmsFeignService.class differ
diff --git a/dq-financial-crms/target/classes/com/daqing/financial/crms/service/CustomerService.class b/dq-financial-crms/target/classes/com/daqing/financial/crms/service/CustomerService.class
index c7838668..2acef682 100644
Binary files a/dq-financial-crms/target/classes/com/daqing/financial/crms/service/CustomerService.class and b/dq-financial-crms/target/classes/com/daqing/financial/crms/service/CustomerService.class differ
diff --git a/dq-financial-crms/target/classes/com/daqing/financial/crms/service/impl/CustomerServiceImpl.class b/dq-financial-crms/target/classes/com/daqing/financial/crms/service/impl/CustomerServiceImpl.class
index cb384b7c..d6bb34fa 100644
Binary files a/dq-financial-crms/target/classes/com/daqing/financial/crms/service/impl/CustomerServiceImpl.class and b/dq-financial-crms/target/classes/com/daqing/financial/crms/service/impl/CustomerServiceImpl.class differ
diff --git a/dq-financial-crms/target/classes/mapper/crms/CompanyCustomerDao.xml b/dq-financial-crms/target/classes/mapper/crms/CompanyCustomerDao.xml
index 7ca13ac9..deee2166 100644
--- a/dq-financial-crms/target/classes/mapper/crms/CompanyCustomerDao.xml
+++ b/dq-financial-crms/target/classes/mapper/crms/CompanyCustomerDao.xml
@@ -5,18 +5,31 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT code,`name` from crms_customer where `type` =#{type} and del_or_not = 0 and status = 0
+
+
+
+
+ SELECT code FROM crms_customer WHERE type = #{type} AND del_or_not = 0 ORDER BY create_time DESC LIMIT 0,1
+
\ No newline at end of file
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgApplyAmountInfoController.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgApplyAmountInfoController.java
index 5c09e546..97a9e1d3 100644
--- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgApplyAmountInfoController.java
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgApplyAmountInfoController.java
@@ -18,6 +18,7 @@ import com.daqing.financial.guarantee.model.response.GuaranteeLetterListResponse
import com.daqing.financial.guarantee.service.IDgApplyAmountInfoService;
import com.daqing.financial.guarantee.service.IDgApplyAmountListService;
import com.daqing.framework.domain.crms.request.DgApplyAmountInfoRequest;
+import com.daqing.framework.domain.guarantee.DgApplyField;
import com.daqing.framework.domain.guarantee.response.EmployeeMessageResponse;
import com.daqing.framework.domain.hrms.UserEntity;
import com.daqing.framework.domain.hrms.ext.EmployeeTO;
@@ -327,6 +328,25 @@ public class DgApplyAmountInfoController implements DgApplyAmountInfoControllerA
}
+ /**
+ * 获取业务申请所有字段
+ */
+ @GetMapping("/queryFieldField")
+ @ApiOperation(value = "获取业务申请所有字段")
+ public ResponseResult queryApplyField(){
+ return ResponseResult.SUCCESS(applyAmountInfoService.queryApplyField());
+ }
+ /**
+ * 修改业务申请字段
+ */
+ @ApiOperation(value = "修改业务申请字段")
+ @PostMapping("/updateApplyField")
+ public ResponseResult updateApplyField(@RequestBody DgApplyField dgApplyField){
+
+ Boolean result = applyAmountInfoService.updateApplyField(dgApplyField);
+
+ return result ? ResponseResult.SUCCESS() : ResponseResult.FAIL();
+ }
}
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgEfficiencyController.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgEfficiencyController.java
index 8e842a8d..514a973b 100644
--- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgEfficiencyController.java
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgEfficiencyController.java
@@ -3,18 +3,26 @@ package com.daqing.financial.guarantee.controller;
import com.daqing.financial.guarantee.model.request.DgEfficiencyTeamRequest;
import com.daqing.financial.guarantee.service.IDgEfficiencyService;
import com.daqing.framework.model.response.ResponseResult;
+import com.daqing.framework.utils.excel.EasyExcelUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.daqing.financial.guarantee.service.IDgEfficiencyService;
import com.daqing.framework.model.response.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
+import java.io.IOException;
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.util.stream.Collectors;
/**
* 流程效率
@@ -59,4 +67,154 @@ public class DgEfficiencyController {
List result = dgEfficiencyService.notice();
return ResponseResult.SUCCESS(result);
}
+
+ @ApiOperation(value = "个人效率记录列表 ")
+ @PostMapping("/personalEfficiencyList")
+ public ResponseResult personalEfficiencyList(
+ @ApiParam(name = "personalEfficiencyListRequest", value = "个人效率列表查询对象")
+ @RequestBody PersonalEfficiencyListRequest personalEfficiencyListRequest){
+ List responseList = dgEfficiencyService.queryPersonalEfficiencyList();
+
+ if(responseList.size()>0){
+ List arr = new ArrayList<>();
+ for (PersonalEfficiencyListResponse res : responseList) {
+ arr.add(res.getApplicantId());
+ }
+ //根据提单人id查询其部门名称
+ ResponseResult responseResult = hrmsFeignService.getAccountAndDeptNameById(arr);
+ List employeeMessage = null;
+ if(responseResult.getData() != null){
+ employeeMessage = (List) responseResult.getData();
+ }
+
+ for (PersonalEfficiencyListResponse response:responseList) {
+ for(LinkedHashMap res : employeeMessage){
+ if(response.getApplicantId().equals(res.get("id"))){//如果提单人id相同情况下,就往对象里面赋值
+ response.setApplicant(JSONObject.toJSONString(res.get("account")).replace("\"",""));
+ }
+ }
+ }
+ }
+ //根据条件筛选数据
+ if (personalEfficiencyListRequest.getOperatingStatus()!=null){
+ // 已发起
+ if (personalEfficiencyListRequest.getOperatingStatus().equals(StatusCode.CZ_LAUNCH)){
+ responseList = responseList.stream().filter(p -> p.getOperatingStatus().equals(StatusCode.CZ_LAUNCH)).collect(Collectors.toList());
+ // 待处理
+ }else if (personalEfficiencyListRequest.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){
+ responseList = responseList.stream().filter(p -> p.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)).collect(Collectors.toList());
+ // 已处理
+ }else if (personalEfficiencyListRequest.getOperatingStatus().equals(StatusCode.CZ_PROCESSED)){
+ responseList = responseList.stream().filter(p -> p.getOperatingStatus().equals(StatusCode.CZ_PROCESSED)).collect(Collectors.toList());
+ }
+ }
+
+ // 时间筛选(固定时间)
+ if (personalEfficiencyListRequest.getCreateFixedTime() != null && personalEfficiencyListRequest.getStartTime() == null && personalEfficiencyListRequest.getEndTime() == null) {
+ SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
+ switch (personalEfficiencyListRequest.getCreateFixedTime()) {
+ case 0:
+ personalEfficiencyListRequest.setStartTime(dateFormat.format(DateUtils.getDayBegin()));
+ personalEfficiencyListRequest.setEndTime(dateFormat.format(DateUtils.getDayEnd()));// 今天
+ break;
+ case 1:
+ personalEfficiencyListRequest.setStartTime(dateFormat.format(DateUtils.getBeginDayOfYesterday()));
+ personalEfficiencyListRequest.setEndTime(dateFormat.format(DateUtils.getEndDayOfYesterDay()));// 昨天
+ break;
+ case 2:
+ personalEfficiencyListRequest.setStartTime(dateFormat.format(DateUtils.getBeginDayOfWeek()));
+ personalEfficiencyListRequest.setEndTime(dateFormat.format(DateUtils.getEndDayOfWeek()));// 本周
+ break;
+ case 3:
+ personalEfficiencyListRequest.setStartTime(dateFormat.format(DateUtils.getBeginDayOfMonth()));
+ personalEfficiencyListRequest.setEndTime(dateFormat.format(DateUtils.getEndDayOfMonth()));// 本月
+ break;
+ case 4:
+ personalEfficiencyListRequest.setStartTime(dateFormat.format(DateUtils.getBeginDayOfYear()));
+ personalEfficiencyListRequest.setEndTime(dateFormat.format(DateUtils.getEndDayOfYear()));// 本年
+ break;
+ default:
+ personalEfficiencyListRequest.setStartTime(null);
+ personalEfficiencyListRequest.setEndTime(null);
+ }
+ //获取毫秒数
+ long longStart = getLongDate(personalEfficiencyListRequest.getStartTime());
+ long longEnd = getLongDate(personalEfficiencyListRequest.getEndTime());
+ //迭代器进行筛选
+ Iterator iterator = responseList.iterator();
+ while (iterator.hasNext()){
+ PersonalEfficiencyListResponse next = iterator.next();
+ String applicationDate = next.getApplicationDate();
+ long longDate = getLongDate(applicationDate);
+ //当前日期小于开始日期或当前日期大于结束日期,删除该元素
+ if (longDatelongEnd){
+ iterator.remove();
+ }
+ }
+ }
+ //转换任务节点,并统计操作状态个数
+ responseList.forEach(personalEfficiencyListResponse -> {
+ String taskNode = personalEfficiencyListResponse.getTaskNode();
+ if (taskNode!=null){
+ String converter = TaskNodeUtil.converter(taskNode);
+ personalEfficiencyListResponse.setTaskNode(converter);
+ }
+ if (personalEfficiencyListResponse.getOperatingStatus()!=null){
+ switch (personalEfficiencyListResponse.getOperatingStatus()){
+ case 0:
+ personalEfficiencyListResponse.setInitiateNum(personalEfficiencyListResponse.getInitiateNum()+1);
+ case 1:
+ personalEfficiencyListResponse.setPendingNum(personalEfficiencyListResponse.getPendingNum()+1);
+ case 2:
+ personalEfficiencyListResponse.setProcessedNum(personalEfficiencyListResponse.getProcessedNum()+1);
+ }
+ }
+ });
+
+ return ResponseResult.SUCCESS(responseList);
+ }
+
+ public static long getLongDate(String stringDate){
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+ try {
+ Date date = sdf.parse(stringDate);
+ return date.getTime();
+ } catch (ParseException e) {
+ e.printStackTrace();
+ }
+ return 0L;
+ }
+
+ @ApiOperation(value = "个人效率记录列表导出")
+ @GetMapping("/personalEfficiencyListExport")
+ public void personalEfficiencyListExport(HttpServletResponse httpServletResponse){
+ List responseList = dgEfficiencyService.queryPersonalEfficiencyList();
+ if(responseList.size()>0){
+ List arr = new ArrayList<>();
+ for (PersonalEfficiencyListResponse res : responseList) {
+ arr.add(res.getApplicantId());
+ }
+ //根据提单人id查询其部门名称
+ ResponseResult responseResult = hrmsFeignService.getAccountAndDeptNameById(arr);
+ List employeeMessage = null;
+ if(responseResult.getData() != null){
+ employeeMessage = (List) responseResult.getData();
+ }
+
+ for (PersonalEfficiencyListResponse response:responseList) {
+ for(LinkedHashMap res : employeeMessage){
+ if(response.getApplicantId().equals(res.get("id"))){//如果提单人id相同情况下,就往对象里面赋值
+ response.setApplicant(JSONObject.toJSONString(res.get("account")).replace("\"",""));
+ }
+ }
+ }
+ }
+ try {
+ EasyExcelUtil.download(httpServletResponse,PersonalEfficiencyListResponse.class,responseList,"个人效率记录列表","第一页");
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
+ }
+
}
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgStatisticsController.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgStatisticsController.java
index 1218375e..8db0079d 100644
--- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgStatisticsController.java
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgStatisticsController.java
@@ -23,7 +23,7 @@ import javax.servlet.http.HttpServletResponse;
*/
@RestController
@RequestMapping("/guarantee/statistics")
-@Api(value = "担保业务统计",tags = "提供业务统计增删改查的方法")
+@Api(value = "担保业务统计", tags = "提供业务统计增删改查的方法")
public class DgStatisticsController {
@Autowired
@@ -33,18 +33,18 @@ public class DgStatisticsController {
* 列表
*/
@GetMapping("/list")
- @ApiOperation(value = "业务统计列表",notes = "业务统计列表",response = DgStatisticsListResponse.class)
+ @ApiOperation(value = "业务统计列表", notes = "业务统计列表", response = DgStatisticsListResponse.class)
public ResponseResult list(@RequestParam("page") Integer page,
@RequestParam("size") Integer size, DgStatisticsRequest dgStatisticsRequest) {
- return ResponseResult.SUCCESS(iDgStatisticsService.list(page,size,dgStatisticsRequest));
+ return ResponseResult.SUCCESS(iDgStatisticsService.list(page, size, dgStatisticsRequest));
}
/**
* 列表导出
*/
- @ApiOperation(value = "统计列表导出",notes = "统计列表导出")
+ @ApiOperation(value = "统计列表导出", notes = "统计列表导出")
@GetMapping("/excelExport")
- public ResponseResult excelExport(HttpServletResponse response){
+ public ResponseResult excelExport(HttpServletResponse response) {
Boolean result = iDgStatisticsService.excelExport(response);
@@ -55,18 +55,18 @@ public class DgStatisticsController {
* 拒绝列表
*/
@GetMapping("/listRefuse")
- @ApiOperation(value = "业务统计拒绝列表",notes = "业务统计拒绝列表",response = DgStatisticsListRefuseResponse.class)
+ @ApiOperation(value = "业务统计拒绝列表", notes = "业务统计拒绝列表", response = DgStatisticsListRefuseResponse.class)
public ResponseResult listRefuse(@RequestParam("page") Integer page,
- @RequestParam("size") Integer size, DgStatisticsRequest dgStatisticsRequest) {
- return ResponseResult.SUCCESS(iDgStatisticsService.listRefuse(page,size,dgStatisticsRequest));
+ @RequestParam("size") Integer size, DgStatisticsRequest dgStatisticsRequest) {
+ return ResponseResult.SUCCESS(iDgStatisticsService.listRefuse(page, size, dgStatisticsRequest));
}
/**
* 拒绝列表导出
*/
- @ApiOperation(value = "统计拒绝列表导出",notes = "统计拒绝列表导出")
+ @ApiOperation(value = "统计拒绝列表导出", notes = "统计拒绝列表导出")
@GetMapping("/excelExportRefuse")
- public ResponseResult excelExportRefuse(HttpServletResponse response){
+ public ResponseResult excelExportRefuse(HttpServletResponse response) {
Boolean result = iDgStatisticsService.excelExportRefuse(response);
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgApplyAmountInfoMapper.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgApplyAmountInfoMapper.java
index 4eadf931..3980a1c3 100644
--- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgApplyAmountInfoMapper.java
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgApplyAmountInfoMapper.java
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.daqing.financial.guarantee.model.response.BusinessApplicationListResponse;
import com.daqing.financial.guarantee.model.response.DgApplyAmountInfoResponse;
import com.daqing.framework.domain.guarantee.DgApplyAmountInfo;
+import com.daqing.framework.domain.guarantee.DgApplyField;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@@ -30,7 +31,7 @@ public interface DgApplyAmountInfoMapper extends BaseMapper {
List selectListByIds(List ids);
- int selectBusinessTaday(@Param("dateTime") String dateTime);
+ DgApplyField queryApplyField();
- String selectMaxBusinessTaday(String dateTime);
+ Boolean updateApplyField(@Param("af") DgApplyField dgApplyField);
}
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgEfficiencyMapper.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgEfficiencyMapper.java
index 7c7cd8c3..4b57155b 100644
--- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgEfficiencyMapper.java
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgEfficiencyMapper.java
@@ -8,6 +8,7 @@ import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
+import java.util.Map;
/**
* @auther River
@@ -19,4 +20,6 @@ public interface DgEfficiencyMapper extends BaseMapper {
List queryList(@Param("et") DgEfficiencyTeamRequest dgEfficiencyTeamRequest);
List queryBusinessId(@Param("et") DgEfficiencyTeamRequest dgEfficiencyTeamRequest);
+
+ Map getBusinessCount();
}
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/DgStatisticsRequest.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/DgStatisticsRequest.java
index 85e1c8d6..9c6ff595 100644
--- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/DgStatisticsRequest.java
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/DgStatisticsRequest.java
@@ -18,8 +18,8 @@ import java.util.Date;
@ToString
public class DgStatisticsRequest implements Serializable {
- @ApiModelProperty("部门id")
- private Integer deptId;
+ @ApiModelProperty("部门名称")
+ private String deptId;
@ApiModelProperty("业务类型")
private String type;
@@ -30,17 +30,13 @@ public class DgStatisticsRequest implements Serializable {
@ApiModelProperty("申请时间,固定类型,0:今天,1:昨天,2:本周,3:本月,4:本年")
private Integer createFixedTime;
- @ApiModelProperty("申请时间,自定义时间")
- @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
- private Date createCustomTime;
-
@ApiModelProperty("客户名称或者编号")
private String codeOrName;
- @ApiModelProperty("辅助字段,不用管,起始时间")
+ @ApiModelProperty("起始时间")
private String startTime;
- @ApiModelProperty("辅助字段,不用管,结束时间")
+ @ApiModelProperty("结束时间")
private String endTime;
}
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/PersonalEfficiencyListRequest.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/PersonalEfficiencyListRequest.java
new file mode 100644
index 00000000..91571f33
--- /dev/null
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/PersonalEfficiencyListRequest.java
@@ -0,0 +1,30 @@
+package com.daqing.financial.guarantee.model.request;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.ToString;
+
+/**
+ * @Author chen
+ * @DATE 2020/12/31 15:35
+ * @Version 1.0
+ */
+@Data
+@ToString
+public class PersonalEfficiencyListRequest {
+
+ @ApiModelProperty("申请时间,固定类型,0:今天,1:昨天,2:本周,3:本月,4:本年")
+ private Integer createFixedTime;
+
+ @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
+ @ApiModelProperty("起始时间")
+ private String startTime;
+
+ @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
+ @ApiModelProperty("结束时间")
+ private String endTime;
+
+ @ApiModelProperty("操作状态")
+ private Integer operatingStatus;
+}
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgStatisticsExcelRefuseResponse.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgStatisticsExcelRefuseResponse.java
new file mode 100644
index 00000000..b393322c
--- /dev/null
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgStatisticsExcelRefuseResponse.java
@@ -0,0 +1,76 @@
+package com.daqing.financial.guarantee.model.response;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.alibaba.excel.metadata.BaseRowModel;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.ToString;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 业务统计拒绝列表导出到excel实体类
+ *
+ * @auther River
+ * @date 2021/1/4 15:11
+ */
+@Data
+@ToString
+public class DgStatisticsExcelRefuseResponse extends BaseRowModel implements Serializable {
+
+ @ApiModelProperty("业务编号")
+ @ExcelProperty(value = "业务编号",index = 0)
+ private String businessCode;
+
+ @ApiModelProperty("客户姓名")
+ @ExcelProperty(value = "客户姓名",index = 1)
+ private String name;
+
+ @ApiModelProperty("客户联系方式")
+ @ExcelProperty(value = "联系电话",index = 2)
+ private String phone;
+
+ @ApiModelProperty("业务类型")
+ @ExcelProperty(value = "产品类型",index = 3)
+ private String businessType;
+
+ @ApiModelProperty("申请额度")
+ @ExcelProperty(value = "金额",index = 4)
+ private Double applyAmount;
+
+ @ApiModelProperty("申请期限")
+ @ExcelProperty(value = "期数",index = 5)
+ private String applyTime;
+
+ @ApiModelProperty("申请日期")
+ @ExcelProperty(value = "申请日期",index = 6)
+ @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
+ private Date createTime;
+
+ @ApiModelProperty("拒绝人")
+ @ExcelProperty(value = "当前审批人",index = 7)
+ private String refuseName;
+
+ @ApiModelProperty("拒绝节点id")
+ @ExcelProperty(value = "任务节点",index = 8)
+ private Integer processId;
+
+ @ApiModelProperty("拒绝时间")
+ @ExcelProperty(value = "拒绝时间",index = 9)
+ @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
+ private Date refuseTime;
+
+ @ApiModelProperty("拒绝原因")
+ @ExcelProperty(value = "拒绝原因",index = 10)
+ private String refuseOpinion;
+
+ @ApiModelProperty("提单人姓名")
+ @ExcelProperty(value = "提单人",index = 11)
+ private String employeeName;
+
+ @ApiModelProperty("部门")
+ @ExcelProperty(value = "所属部门",index = 12)
+ private String department;
+}
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgStatisticsExcelResponse.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgStatisticsExcelResponse.java
new file mode 100644
index 00000000..e3852870
--- /dev/null
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgStatisticsExcelResponse.java
@@ -0,0 +1,69 @@
+package com.daqing.financial.guarantee.model.response;
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.alibaba.excel.metadata.BaseRowModel;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.ToString;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 业务统计列表导出到excel实体类
+ *
+ * @auther River
+ * @date 2021/1/4 14:48
+ */
+@Data
+@ToString
+public class DgStatisticsExcelResponse extends BaseRowModel implements Serializable {
+
+ @ApiModelProperty("业务编号")
+ @ExcelProperty(value = "业务编号",index = 0)
+ private String businessCode;
+
+ @ApiModelProperty("客户姓名")
+ @ExcelProperty(value = "客户姓名",index = 1)
+ private String name;
+
+ @ApiModelProperty("客户联系方式")
+ @ExcelProperty(value = "联系电话",index = 2)
+ private String phone;
+
+ @ApiModelProperty("业务类型")
+ @ExcelProperty(value = "产品类型",index = 3)
+ private String businessType;
+
+ @ApiModelProperty("申请额度")
+ @ExcelProperty(value = "金额",index = 4)
+ private Double applyAmount;
+
+ @ApiModelProperty("申请期限")
+ @ExcelProperty(value = "期数",index = 5)
+ private String applyTime;
+
+ @ApiModelProperty("申请日期")
+ @ExcelProperty(value = "申请日期",index = 6)
+ @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
+ private Date createTime;
+
+ @ApiModelProperty("完成任务节点id")
+ @ExcelProperty(value = "完成任务节点id",index = 7)
+ private Integer processId;
+
+ @ApiModelProperty("最新操作时间")
+ @ExcelProperty(value = "任务分配时间",index = 8)
+ @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
+ private Date operationTime;
+
+ @ApiModelProperty("提单人姓名")
+ @ExcelProperty(value = "提单人",index = 9)
+ private String employeeName;
+
+ @ApiModelProperty("部门")
+ @ExcelProperty(value = "所属部门",index = 10)
+ private String department;
+
+}
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgStatisticsListRefuseResponse.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgStatisticsListRefuseResponse.java
index c265b9a9..8d9c5d3d 100644
--- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgStatisticsListRefuseResponse.java
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgStatisticsListRefuseResponse.java
@@ -45,27 +45,27 @@ public class DgStatisticsListRefuseResponse extends BaseRowModel implements Seri
@ExcelProperty(value = "期数",index = 5)
private String applyTime;
- @ApiModelProperty("创建时间")
+ @ApiModelProperty("申请日期")
@ExcelProperty(value = "申请日期",index = 6)
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
+ @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date createTime;
@ApiModelProperty("拒绝人")
@ExcelProperty(value = "当前审批人",index = 7)
- private String empName;
+ private String refuseName;
- @ApiModelProperty("节点状态")
+ @ApiModelProperty("拒绝节点id")
@ExcelProperty(value = "任务节点",index = 8)
- private String status;
+ private Integer processId;
@ApiModelProperty("拒绝时间")
- @ExcelProperty(value = "任务分配时间",index = 9)
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
- private Date dateTime;
+ @ExcelProperty(value = "拒绝时间",index = 9)
+ @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
+ private Date refuseTime;
@ApiModelProperty("拒绝原因")
@ExcelProperty(value = "拒绝原因",index = 10)
- private String remark;
+ private String refuseOpinion;
@ApiModelProperty("提单人姓名")
@ExcelProperty(value = "提单人",index = 11)
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/NumResponse.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/NumResponse.java
new file mode 100644
index 00000000..f5de0dfd
--- /dev/null
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/NumResponse.java
@@ -0,0 +1,22 @@
+package com.daqing.financial.guarantee.model.response;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+/**
+ * @Author chen
+ * @DATE 2021/1/5 11:32
+ * @Version 1.0
+ */
+@Data
+public class NumResponse {
+
+ @ApiModelProperty("发起数")
+ private Integer initiateNum = 0;
+
+ @ApiModelProperty("待处理数")
+ private Integer pendingNum = 0;
+
+ @ApiModelProperty("已处理数 ")
+ private Integer processedNum = 0;
+}
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/PersonalEfficiencyListResponse.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/PersonalEfficiencyListResponse.java
index b35bfdcf..3e807e7c 100644
--- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/PersonalEfficiencyListResponse.java
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/PersonalEfficiencyListResponse.java
@@ -1,9 +1,11 @@
package com.daqing.financial.guarantee.model.response;
+import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.daqing.framework.utils.excel.ApprovalStatusConverter;
import com.daqing.framework.utils.excel.BusinessStatusConverter;
import com.daqing.framework.utils.excel.OperatingStatusConverter;
+import com.daqing.framework.utils.excel.TaskNodeConverter;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -18,6 +20,14 @@ import java.util.Date;
@Data
public class PersonalEfficiencyListResponse {
+ @ExcelIgnore
+ @ApiModelProperty(value = " 业务id")
+ private Integer businessId;
+
+ @ExcelIgnore
+ @ApiModelProperty(value = "提单人")
+ private Integer applicantId;
+
@ApiModelProperty(value = "提单人")
@ExcelProperty(value = "提单人",index = 1)
private String applicant;
@@ -44,7 +54,7 @@ public class PersonalEfficiencyListResponse {
private Double taskNode;
@ApiModelProperty("审批状态")
- @ExcelProperty(value = "审核状态",index = 7,converter = ApprovalStatusConverter.class)
+ @ExcelProperty(value = "审批状态",index = 7,converter = ApprovalStatusConverter.class)
private Integer approveStatus;
@ApiModelProperty("业务状态")
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgApplyAmountInfoService.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgApplyAmountInfoService.java
index c1b5b286..8f321a6e 100644
--- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgApplyAmountInfoService.java
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgApplyAmountInfoService.java
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
import com.daqing.financial.guarantee.model.request.BusinessApplicationRequest;
import com.daqing.financial.guarantee.model.response.BusinessApplicationDetailResponse;
import com.daqing.framework.domain.guarantee.DgApplyAmountInfo;
+import com.daqing.framework.domain.guarantee.DgApplyField;
import com.daqing.framework.utils.PageUtils;
import javax.servlet.http.HttpServletResponse;
@@ -34,4 +35,8 @@ public interface IDgApplyAmountInfoService extends IService {
int approvalBusinessApplication(Integer id, Integer status, String remark, Integer companyId);
String getRoles();
+
+ DgApplyField queryApplyField();
+
+ Boolean updateApplyField(DgApplyField dgApplyField);
}
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgEfficiencyService.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgEfficiencyService.java
index d5387beb..82525389 100644
--- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgEfficiencyService.java
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgEfficiencyService.java
@@ -16,7 +16,10 @@ import java.util.Map;
public interface IDgEfficiencyService extends IService {
Map approvalNum();
+
HashMap> queryList(DgEfficiencyTeamRequest dgEfficiencyTeamRequest);
List notice();
+
+ Map getBusinessCount();
}
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java
index 1a00b383..ca15ff73 100644
--- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java
@@ -10,7 +10,10 @@ import com.daqing.financial.guarantee.feign.CrmsFeignService;
import com.daqing.financial.guarantee.feign.HrmsFeignService;
import com.daqing.financial.guarantee.mapper.*;
import com.daqing.financial.guarantee.model.request.BusinessApplicationRequest;
-import com.daqing.financial.guarantee.model.response.*;
+import com.daqing.financial.guarantee.model.response.BusinessApplicationDetailResponse;
+import com.daqing.financial.guarantee.model.response.BusinessApplicationListResponse;
+import com.daqing.financial.guarantee.model.response.DgApplyAmountInfoResponse;
+import com.daqing.financial.guarantee.model.response.DgEnclosureInfoResponse;
import com.daqing.financial.guarantee.service.IDgApplyAmountInfoService;
import com.daqing.financial.guarantee.util.ArraysUtil;
import com.daqing.financial.guarantee.util.AuditProcessUtil;
@@ -37,7 +40,6 @@ import org.springframework.web.context.request.ServletRequestAttributes;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import java.text.SimpleDateFormat;
import java.util.*;
/**
@@ -50,7 +52,8 @@ import java.util.*;
*/
@Slf4j
@Service
-public class DgApplyAmountInfoServiceImpl extends ServiceImpl implements IDgApplyAmountInfoService {
+public class DgApplyAmountInfoServiceImpl extends ServiceImpl
+ implements IDgApplyAmountInfoService {
@Resource
private DgApplyAmountInfoMapper dgApplyAmountInfoMapper;
@@ -92,6 +95,27 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl> queryList(DgEfficiencyTeamRequest dgEfficiencyTeamRequest) {
// 时间筛选(固定时间)
- if (dgEfficiencyTeamRequest.getCreateFixedTime() != null && dgEfficiencyTeamRequest.getStartTime() == null &&
- dgEfficiencyTeamRequest.getEndTime() == null) {
+ if (dgEfficiencyTeamRequest.getCreateFixedTime() != null && (dgEfficiencyTeamRequest.getStartTime() == null ||
+ dgEfficiencyTeamRequest.getStartTime().length() == 0) && (dgEfficiencyTeamRequest.getEndTime() == null ||
+ dgEfficiencyTeamRequest.getEndTime().length() == 0)) {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
switch (dgEfficiencyTeamRequest.getCreateFixedTime()) {
case 0:
@@ -123,7 +126,7 @@ public class DgEfficiencyServiceImpl extends ServiceImpl existMap = hashMap.get(Integer.parseInt(departmentId));
if (existMap.get(processId) == null) {
- existMap.put(processId, time + "(1)");
+ existMap.put(processId, time + ",1");
} else {
// 计算当前部门在当前节点的操作次数
- int count = Integer.parseInt(existMap.get(processId).substring(existMap.get(processId).indexOf("(") + 1,
- existMap.get(processId).indexOf(")"))) + 1;
+ int count = Integer.parseInt(existMap.get(processId).substring(existMap.get(processId).indexOf(",") + 1)) + 1;
// 计算当前部门在当前节点的累计时间
- String existTime = existMap.get(processId).substring(0, existMap.get(processId).indexOf("("));
+ String existTime = existMap.get(processId).substring(0, existMap.get(processId).indexOf(","));
// 累计时间加上本次时间
- existMap.put(processId, (Integer.parseInt(existTime) + Integer.parseInt(time)) + "(" + count + ")");
+ existMap.put(processId, (Integer.parseInt(existTime) + Integer.parseInt(time)) + "," + count);
}
hashMap.put(Integer.parseInt(departmentId), existMap);
}
@@ -157,8 +159,19 @@ public class DgEfficiencyServiceImpl extends ServiceImpl getBusinessCount() {
+
+ return this.getBaseMapper().getBusinessCount();
+ }
+
/**
* 查询审批数目的值的数组
+ *
* @return
*/
@Override
@@ -166,12 +179,12 @@ public class DgEfficiencyServiceImpl extends ServiceImpltimeList = dgAuditProcessMapper.selectTenDays(Integer.parseInt(userId));
+ List timeList = dgAuditProcessMapper.selectTenDays(Integer.parseInt(userId));
//近十天审批数目的值的数组
- ListapprovalList = dgAuditProcessMapper.selectApprovalNum(Integer.parseInt(userId));
+ List approvalList = dgAuditProcessMapper.selectApprovalNum(Integer.parseInt(userId));
Map map = new HashMap();
- map.put("timeArr",timeList);
- map.put("approvalNumArr",approvalList);
+ map.put("timeArr", timeList);
+ map.put("approvalNumArr", approvalList);
return map;
}
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgStatisticsServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgStatisticsServiceImpl.java
index a9e52f76..0a7b1e04 100644
--- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgStatisticsServiceImpl.java
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgStatisticsServiceImpl.java
@@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.daqing.financial.guarantee.feign.HrmsFeignService;
import com.daqing.financial.guarantee.mapper.DgStatisticsMapper;
import com.daqing.financial.guarantee.model.request.DgStatisticsRequest;
+import com.daqing.financial.guarantee.model.response.DgStatisticsExcelRefuseResponse;
+import com.daqing.financial.guarantee.model.response.DgStatisticsExcelResponse;
import com.daqing.financial.guarantee.model.response.DgStatisticsListRefuseResponse;
import com.daqing.financial.guarantee.model.response.DgStatisticsListResponse;
import com.daqing.financial.guarantee.service.IDgStatisticsService;
@@ -51,7 +53,8 @@ public class DgStatisticsServiceImpl extends ServiceImpl iPage = this.getBaseMapper().list(new Page(page, size), dgStatisticsRequest);
List dgStatisticsPOList = iPage.getRecords();
if (dgStatisticsPOList == null) {
return null;
}
- // 部门筛选
- if (dgStatisticsRequest.getDeptId() != null && dgStatisticsRequest.getEmpId() == null) {
- ResponseResult> result = hrmsFeignService.listEmployeeByDeptId(dgStatisticsRequest.getDeptId().longValue());
- if (result.getData() == null || result.getData().size() == 0) {
- return null;
- }
- for (int i = 0; i < dgStatisticsPOList.size(); i++) {
- boolean flag = false;
- for (EmployeeVO employeeVO : result.getData()) {
- if (Objects.equals(dgStatisticsPOList.get(i).getPresenterId().longValue(), employeeVO.getId())) {
- flag = true;
- }
- }
- if (!flag) {
- dgStatisticsPOList.remove(i);
- i--; // 索引要减一,不然会触发"快速失败"异常
- }
- }
- iPage.setTotal(dgStatisticsPOList.size());
- iPage.setSize(iPage.getTotal() % size == 0 ? iPage.getTotal() / size : iPage.getTotal() / size + 1);
- }
- // 提单人筛选
- if (dgStatisticsRequest.getEmpId() != null) {
- for (int i = 0; i < dgStatisticsPOList.size(); i++) {
- if (!Objects.equals(dgStatisticsPOList.get(i).getPresenterId(), dgStatisticsRequest.getEmpId())) {
- dgStatisticsPOList.remove(i);
- i--;// 索引要减一,不然会触发"快速失败"异常
- }
- }
- iPage.setTotal(dgStatisticsPOList.size());
- iPage.setSize(iPage.getTotal() % size == 0 ? iPage.getTotal() / size : iPage.getTotal() / size + 1);
- }
// 获取所有的提单人id
Integer[] presenterIds = dgStatisticsPOList.stream().map(DgStatisticsPO::getPresenterId).toArray(Integer[]::new);
if (presenterIds.length != 0) {
@@ -167,8 +132,25 @@ public class DgStatisticsServiceImpl extends ServiceImpl> empAndDeptList = hrmsFeignService.getEmployeeAndDeptById(ids);
if (empAndDeptList.getData() != null) {
List listResponse = this.jointStatistics(dgStatisticsPOList, empAndDeptList.getData());
+ List excelResponse = new ArrayList<>();
+ for (DgStatisticsListResponse dgStatisticsListResponse : listResponse) {
+ DgStatisticsExcelResponse dgStatisticsExcelResponse = new DgStatisticsExcelResponse();
+ StringBuilder stringBuilder = new StringBuilder();
+ if (dgStatisticsListResponse.getDepartment() != null && dgStatisticsListResponse.getDepartment().size() != 0) {
+ for (int i = 0; i < dgStatisticsListResponse.getDepartment().size(); i++) {
+ if (i == dgStatisticsListResponse.getDepartment().size() - 1) {
+ stringBuilder.append(dgStatisticsListResponse.getDepartment().get(i));
+ } else {
+ stringBuilder.append(dgStatisticsListResponse.getDepartment().get(i)).append(",");
+ }
+ }
+ }
+ dgStatisticsExcelResponse.setDepartment(stringBuilder.toString());
+ BeanUtils.copyProperties(dgStatisticsListResponse, dgStatisticsExcelResponse);
+ excelResponse.add(dgStatisticsExcelResponse);
+ }
try {
- ExcelUtil.writeExcelWithSheets(response, listResponse, "业务统计信息一览表", "statistics", new DgStatisticsListResponse())
+ ExcelUtil.writeExcelWithSheets(response, excelResponse, "业务统计信息一览表", "statistics", new DgStatisticsExcelResponse())
.finish();
} catch (Exception e) {
ExceptionCast.cast(CrmsCode.CUSTOMER_EXPORT_EXSIT);
@@ -191,7 +173,8 @@ public class DgStatisticsServiceImpl extends ServiceImpl iPage = this.getBaseMapper().listRefuse(new Page(page, size), dgStatisticsRequest);
List dgStatisticsRefusePOList = iPage.getRecords();
@@ -232,7 +209,7 @@ public class DgStatisticsServiceImpl extends ServiceImpl> result = hrmsFeignService.listEmployeeByDeptId(dgStatisticsRequest.getDeptId().longValue());
if (result.getData() == null || result.getData().size() == 0) {
return null;
@@ -251,18 +228,7 @@ public class DgStatisticsServiceImpl extends ServiceImpl listResponse = this.jointRefuseStatistics(statisticsRefusePOList, empAndDeptList.getData());
+ List excelResponse = new ArrayList<>();
+ for (DgStatisticsListRefuseResponse listRefuseResponse : listResponse) {
+ DgStatisticsExcelRefuseResponse excelRefuseResponse = new DgStatisticsExcelRefuseResponse();
+ StringBuilder stringBuilder = new StringBuilder();
+ if (listRefuseResponse.getDepartment() != null && listRefuseResponse.getDepartment().size() != 0) {
+ for (int i = 0; i < listRefuseResponse.getDepartment().size(); i++) {
+ if (i == listRefuseResponse.getDepartment().size() - 1) {
+ stringBuilder.append(listRefuseResponse.getDepartment().get(i));
+ } else {
+ stringBuilder.append(listRefuseResponse.getDepartment().get(i)).append(",");
+ }
+ }
+ }
+ excelRefuseResponse.setDepartment(stringBuilder.toString());
+ BeanUtils.copyProperties(listRefuseResponse, excelRefuseResponse);
+ excelResponse.add(excelRefuseResponse);
+ }
try {
- ExcelUtil.writeExcelWithSheets(response, listResponse, "业务统计拒绝信息一览表", "statisticsRefuse", new DgStatisticsListRefuseResponse())
+ ExcelUtil.writeExcelWithSheets(response, excelResponse, "业务统计拒绝信息一览表", "statisticsRefuse", new DgStatisticsExcelRefuseResponse())
.finish();
} catch (Exception e) {
ExceptionCast.cast(CrmsCode.CUSTOMER_EXPORT_EXSIT);
}
- return true;
- } else {
- return false;
}
+ return false;
+ } else {
+ return false;
}
- return false;
}
private List jointStatistics(List dgStatisticsPOList, List empAndDeptList) {
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/R.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/R.java
new file mode 100644
index 00000000..4f8360d4
--- /dev/null
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/R.java
@@ -0,0 +1,71 @@
+package com.daqing.financial.guarantee.util;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * @Author chen
+ * @DATE 2021/1/5 11:43
+ * @Version 1.0
+ */
+@Data
+public class R {
+
+ @ApiModelProperty(value = " 是否成功")
+ private Boolean success;
+
+ @ApiModelProperty(value = "返回码")
+ private Integer code;
+
+ @ApiModelProperty(value = "返回消息")
+ private String message;
+
+ @ApiModelProperty(value = "返回数据")
+ private Map data = new HashMap();
+
+ private R(){}
+
+ public static R ok(){
+ R r = new R();
+ r.setSuccess(true);
+ r.setCode(ResultCode.SUCCESS);
+ r.setMessage(ResultCode.SUCCESS_MESSAGE);
+ return r;
+ }
+
+ public static R error(){
+ R r = new R();
+ r.setSuccess(false);
+ r.setCode(ResultCode.FAILURE);
+ r.setMessage(ResultCode.FAILURE_MESSAGE);
+ return r;
+ }
+
+ public R success(Boolean success){
+ this.setSuccess(success);
+ return this;
+ }
+
+ public R message(String message){
+ this.setMessage(message);
+ return this;
+ }
+
+ public R code(Integer code){
+ this.setCode(code);
+ return this;
+ }
+
+ public R data(String key, Object value){
+ this.data.put(key, value);
+ return this;
+ }
+
+ public R data(Map map){
+ this.setData(map);
+ return this;
+ }
+}
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/ResultCode.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/ResultCode.java
new file mode 100644
index 00000000..a8f8edd0
--- /dev/null
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/ResultCode.java
@@ -0,0 +1,13 @@
+package com.daqing.financial.guarantee.util;
+
+/**
+ * @Author chen
+ * @DATE 2021/1/5 11:43
+ * @Version 1.0
+ */
+public interface ResultCode {
+ Integer SUCCESS = 10000;// 成功
+ Integer FAILURE = 20000;//失败
+ String SUCCESS_MESSAGE = "成功";
+ String FAILURE_MESSAGE = "失败";
+}
diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/TaskNodeUtil.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/TaskNodeUtil.java
new file mode 100644
index 00000000..130eb60e
--- /dev/null
+++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/TaskNodeUtil.java
@@ -0,0 +1,36 @@
+package com.daqing.financial.guarantee.util;
+
+
+/**
+ * @Author chen
+ * @DATE 2021/1/4 9:38
+ * @Version 1.0
+ */
+public class TaskNodeUtil {
+ public static String converter(String taskNode){
+ switch (taskNode){
+ case "1":
+ return "业务申请";
+ case "2":
+ return "担保部调查";
+ case "3":
+ return "资产部调查";
+ case "4":
+ return "信息部调查";
+ case "5":
+ return "合规调查";
+ case "6":
+ return "工作会";
+ case "7":
+ return "贷审会";
+ case "8":
+ return "担保函";
+ case "9":
+ return "回款确认";
+ case "10":
+ return "放款通知";
+ default:
+ return "";
+ }
+ }
+}
diff --git a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgApplyAmountInfoMapper.xml b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgApplyAmountInfoMapper.xml
index 68c53837..9b38217f 100644
--- a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgApplyAmountInfoMapper.xml
+++ b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgApplyAmountInfoMapper.xml
@@ -60,15 +60,21 @@
-
- select count(0) from dg_apply_amount_info where create_time LIKE CONCAT('%',#{dateTime},'%')
+
+ SELECT * FROM dg_apply_field
-
- select business_code
- from dg_apply_amount_info
- where create_time LIKE CONCAT('%',#{dateTime},'%')
- order by id desc limit 1
-
+
+ UPDATE dg_apply_field SET
+ customer_type = #{af.customerType},customer_code = #{af.customerCode},customer_name = #{af.customerName},customer_unicode = #{af.customerUnicode},customer_phone = #{af.customerPhone},register_time = #{af.registerTime},
+ register_fund =#{af.registerFund},register_addr = #{af.registerAddr},employee_number = #{af.employeeNumber},business_addr = #{af.businessAddr},business_type = #{af.businessType},business_scope = #{af.businessScope},
+ legal_person_name = #{af.legalPersonName},legal_person_sex = #{af.legalPersonSex},legal_person_card = #{af.legalPersonCard},legal_person_phone = #{af.legalPersonPhone},legal_person_account = #{af.legalPersonAccount},
+ legal_person_addr = #{af.legalPersonAddr},legal_person_affiliated_person = #{af.legalPersonAffiliatedPerson},loans_amount = #{af.loansAmount},loans_time_limit = #{af.loansTimeLimit},loans_bank = #{af.loansBank} ,
+ loans_use = #{af.loansUse},loans_else_use = #{af.loansElseUse},loans_measure = #{af.loansMeasure},accessory_business_license = #{af.accessoryBusinessLicense},
+ accessory_id_card = #{af.accessoryIdCard},accessory_marriage_certificate = #{af.accessoryMarriageCertificate},accessory_person_card = #{af.accessoryPersonCard},accessory_constitution = #{af.accessoryConstitution},
+ accessory_audit = #{af.accessoryAudit},accessory_credit = #{af.accessoryCredit},accessory_couple_credit = #{af.accessoryCoupleCredit},accessory_commitment = #{af.accessoryCommitment},accessory_prove = #{af.accessoryProve},
+ accessory_conference = #{af.accessoryConference},accessory_assess = #{af.accessoryAssess},update_time = #{af.updateTime}
+ WHERE id = #{af.id}
+
diff --git a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgEfficiencyMapper.xml b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgEfficiencyMapper.xml
index 1f26c8ed..27fab062 100644
--- a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgEfficiencyMapper.xml
+++ b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgEfficiencyMapper.xml
@@ -43,4 +43,14 @@
ORDER BY p.create_time ASC
+
+
+ SELECT
+ SUM(CASE WHEN (business_status = 0) THEN 1 ELSE 0 END) AS '0',
+ SUM(CASE WHEN (business_status = 1) THEN 1 ELSE 0 END) AS '1',
+ SUM(CASE WHEN (business_status = 2) THEN 1 ELSE 0 END) AS '2',
+ SUM(CASE WHEN (business_status = 3) THEN 1 ELSE 0 END) AS '3'
+ FROM dg_business_process_status
+
+
\ No newline at end of file
diff --git a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgStatisticsMapper.xml b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgStatisticsMapper.xml
index 7830e8f1..8de2fb6d 100644
--- a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgStatisticsMapper.xml
+++ b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgStatisticsMapper.xml
@@ -36,6 +36,9 @@
AND a.business_type = #{sr.type}
+
+ AND a.presenter_id = #{sr.empId}
+
AND a.create_time >= #{sr.startTime}
@@ -68,6 +71,9 @@
AND a.business_type = #{sr.type}
+
+ AND a.presenter_id = #{sr.empId}
+
AND a.create_time >= #{sr.startTime}
diff --git a/dq-financial-hrms-auth/target/classes/bootstrap.properties b/dq-financial-hrms-auth/target/classes/bootstrap.properties
index 3187c1a2..89e224ba 100644
--- a/dq-financial-hrms-auth/target/classes/bootstrap.properties
+++ b/dq-financial-hrms-auth/target/classes/bootstrap.properties
@@ -1,8 +1,7 @@
-
-#��������
+# 开发和测试环境(dev)
spring.application.name=dq-financial-hrms-auth
-#�������ĵ�ַ
-spring.cloud.nacos.config.server-addr=192.168.31.142:8848
+
+spring.cloud.nacos.config.server-addr=192.168.31.140:8848
spring.cloud.nacos.config.namespace=7632bdaa-3381-4669-b3f9-2fc73be451e8
#spring.cloud.nacos.config.group=prod
@@ -18,12 +17,71 @@ spring.cloud.nacos.config.ext-config[2].data-id=other.yml
spring.cloud.nacos.config.ext-config[2].group=dev
spring.cloud.nacos.config.ext-config[2].refresh=true
-spring.redis.host=192.168.232.128
+spring.redis.host=127.0.0.1
spring.redis.port=6379
-spring.redis.password=
+spring.redis.password=123456
spring.redis.database=0
spring.redis.timeout=30000
spring.redis.jedis.pool.max-active=8
spring.redis.jedis.pool.max-wait=-1
spring.redis.jedis.pool.max-idle=8
spring.redis.jedis.pool.min-idle=0
+
+
+#正式环境(prod)
+#spring.application.name=dq-financial-hrms-auth
+#
+#spring.cloud.nacos.config.server-addr=120.78.127.12:8848
+#spring.cloud.nacos.config.namespace=b590c830-7ada-44b7-968f-e8d0c81990c4
+##spring.cloud.nacos.config.group=prod
+#
+#spring.cloud.nacos.config.ext-config[0].data-id=datasource.yml
+#spring.cloud.nacos.config.ext-config[0].group=prod
+#spring.cloud.nacos.config.ext-config[0].refresh=true
+#
+#spring.cloud.nacos.config.ext-config[1].data-id=mybatis.yml
+#spring.cloud.nacos.config.ext-config[1].group=prod
+#spring.cloud.nacos.config.ext-config[1].refresh=true
+#
+#spring.cloud.nacos.config.ext-config[2].data-id=other.yml
+#spring.cloud.nacos.config.ext-config[2].group=prod
+#spring.cloud.nacos.config.ext-config[2].refresh=true
+#
+#spring.redis.host=127.0.0.1
+#spring.redis.port=6379
+#spring.redis.password=dq123456
+#spring.redis.database=0
+#spring.redis.timeout=30000
+#spring.redis.jedis.pool.max-active=8
+#spring.redis.jedis.pool.max-wait=-1
+#spring.redis.jedis.pool.max-idle=8
+#spring.redis.jedis.pool.min-idle=0
+
+#测试环境(prod)
+#spring.application.name=dq-financial-hrms-auth
+#
+#spring.cloud.nacos.config.server-addr=127.0.0.1:8848
+#spring.cloud.nacos.config.namespace=d4e087eb-2a9b-4ef1-9f22-76269a30d081
+##spring.cloud.nacos.config.group=prod
+#
+#spring.cloud.nacos.config.ext-config[0].data-id=datasource.yml
+#spring.cloud.nacos.config.ext-config[0].group=prod
+#spring.cloud.nacos.config.ext-config[0].refresh=true
+#
+#spring.cloud.nacos.config.ext-config[1].data-id=mybatis.yml
+#spring.cloud.nacos.config.ext-config[1].group=prod
+#spring.cloud.nacos.config.ext-config[1].refresh=true
+#
+#spring.cloud.nacos.config.ext-config[2].data-id=other.yml
+#spring.cloud.nacos.config.ext-config[2].group=prod
+#spring.cloud.nacos.config.ext-config[2].refresh=true
+#
+#spring.redis.host=127.0.0.1
+#spring.redis.port=6379
+#spring.redis.password=
+#spring.redis.database=0
+#spring.redis.timeout=30000
+#spring.redis.jedis.pool.max-active=8
+#spring.redis.jedis.pool.max-wait=-1
+#spring.redis.jedis.pool.max-idle=8
+#spring.redis.jedis.pool.min-idle=0
\ No newline at end of file
diff --git a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/aspect/Operation.class b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/aspect/Operation.class
index 3ebaf4a1..ea04fc2a 100644
Binary files a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/aspect/Operation.class and b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/aspect/Operation.class differ
diff --git a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/aspect/SysLogAspect.class b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/aspect/SysLogAspect.class
index be705675..d5f7743a 100644
Binary files a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/aspect/SysLogAspect.class and b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/aspect/SysLogAspect.class differ
diff --git a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/controller/UserLoginController.class b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/controller/UserLoginController.class
index 801167bd..4b008810 100644
Binary files a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/controller/UserLoginController.class and b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/controller/UserLoginController.class differ
diff --git a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/dao/LoginLogMapper.class b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/dao/LoginLogMapper.class
index 82809c1e..79a3df4d 100644
Binary files a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/dao/LoginLogMapper.class and b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/dao/LoginLogMapper.class differ
diff --git a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/dao/SystemLogMapper.class b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/dao/SystemLogMapper.class
index dee69d4e..c4b8e108 100644
Binary files a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/dao/SystemLogMapper.class and b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/dao/SystemLogMapper.class differ
diff --git a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/dao/UserLoginDao.class b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/dao/UserLoginDao.class
index 59edb131..73ae249e 100644
Binary files a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/dao/UserLoginDao.class and b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/dao/UserLoginDao.class differ
diff --git a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/LoginLogService.class b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/LoginLogService.class
index 1cc34945..64604e55 100644
Binary files a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/LoginLogService.class and b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/LoginLogService.class differ
diff --git a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/UserLoginService.class b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/UserLoginService.class
index 47578bf1..69c7d872 100644
Binary files a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/UserLoginService.class and b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/UserLoginService.class differ
diff --git a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/impl/LoginLogServiceImpl.class b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/impl/LoginLogServiceImpl.class
index d71db32d..ea0e13d6 100644
Binary files a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/impl/LoginLogServiceImpl.class and b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/impl/LoginLogServiceImpl.class differ
diff --git a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.class b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.class
index cb47481a..e6933ee4 100644
Binary files a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.class and b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.class differ
diff --git a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/util/IpUtils.class b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/util/IpUtils.class
index 07f13442..bbdd262f 100644
Binary files a/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/util/IpUtils.class and b/dq-financial-hrms-auth/target/classes/com/daqing/financial/hrauth/util/IpUtils.class differ
diff --git a/dq-financial-hrms-auth/target/classes/mapper/hrmsauth/UserLoginMapper.xml b/dq-financial-hrms-auth/target/classes/mapper/hrmsauth/UserLoginMapper.xml
deleted file mode 100644
index 9a66957d..00000000
--- a/dq-financial-hrms-auth/target/classes/mapper/hrmsauth/UserLoginMapper.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- update hrms_user set password = #{password} where phone_account = #{phoneAccount}
-
-
-
- SELECT account,password FROM hrms_user WHERE account = #{account}
-
-
- select count(1) from hrms_user where phone_account = #{phoneAccount}
-
-
-
- select id,account,phone_account,password,login_num from hrms_user
- where del_or_not = 0 and status = 0
-
- and phone_account = #{phone}
-
-
- and wechat_id = #{wechatId}
-
-
-
-
- SELECT id,account FROM hrms_user WHERE phone_account = #{phoneAccount}
-
-
-
\ No newline at end of file
diff --git a/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/controller/DeptController.java b/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/controller/DeptController.java
index c80c4399..e2e96909 100644
--- a/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/controller/DeptController.java
+++ b/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/controller/DeptController.java
@@ -134,6 +134,14 @@ public class DeptController implements DeptControllerApi {
return ResponseResult.SUCCESS(deptService.listEmployeeByDeptId(deptId));
}
+ /**
+ * 获取所有的部门id和名称(用户团队效率的部门筛选)
+ */
+ @GetMapping("/listDepartment")
+ public ResponseResult listDepartment(){
+ return ResponseResult.SUCCESS(deptService.listDepartment());
+ }
+
/**
* 根据员工id获取对应部门下所有的客户经理
*/
diff --git a/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/dao/DeptDao.java b/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/dao/DeptDao.java
index 54473c64..8d9205ce 100644
--- a/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/dao/DeptDao.java
+++ b/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/dao/DeptDao.java
@@ -9,6 +9,7 @@ import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
+import java.util.Map;
/**
* 记录部门信息
@@ -34,4 +35,6 @@ public interface DeptDao extends BaseMapper {
List listEmployeeById(Long id);
List listEmployeeByDeptId(Long deptId);
+
+ List