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/pom.xml b/dq-financial-crms/pom.xml
index 54f97d16..4ced7f50 100644
--- a/dq-financial-crms/pom.xml
+++ b/dq-financial-crms/pom.xml
@@ -24,6 +24,7 @@
0.0.1-SNAPSHOT
compile
+
com.daqing.financial
dq-financial-api
@@ -65,6 +66,12 @@
maven-compiler-plugin
3.8.1
+
+ org.springframework.security
+ spring-security-core
+ 5.3.4.RELEASE
+ compile
+
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 c065f1e3..73751c3d 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
@@ -239,7 +239,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 1683d026..7ed07640 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
@@ -4,11 +4,9 @@ import com.alibaba.fastjson.JSONObject;
import com.daqing.financial.guarantee.feign.HrmsFeignService;
import com.daqing.financial.guarantee.model.request.DgEfficiencyTeamRequest;
import com.daqing.financial.guarantee.model.request.PersonalEfficiencyListRequest;
-import com.daqing.financial.guarantee.model.response.NumResponse;
import com.daqing.financial.guarantee.model.response.PersonalEfficiencyListResponse;
import com.daqing.financial.guarantee.service.IDgEfficiencyService;
import com.daqing.financial.guarantee.util.DateUtils;
-import com.daqing.financial.guarantee.util.R;
import com.daqing.financial.guarantee.util.TaskNodeUtil;
import com.daqing.framework.model.StatusCode;
import com.daqing.framework.model.response.ResponseResult;
@@ -64,7 +62,7 @@ public class DgEfficiencyController {
@ApiOperation(value = "个人效率记录列表 ")
@PostMapping("/personalEfficiencyList")
- public R personalEfficiencyList(
+ public ResponseResult personalEfficiencyList(
@ApiParam(name = "personalEfficiencyListRequest", value = "个人效率列表查询对象")
@RequestBody PersonalEfficiencyListRequest personalEfficiencyListRequest){
List responseList = dgEfficiencyService.queryPersonalEfficiencyList();
@@ -89,54 +87,23 @@ public class DgEfficiencyController {
}
}
}
-
- NumResponse numResponse = new NumResponse();
- //转换任务节点,并统计操作状态个数
- 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:
- numResponse.setInitiateNum(numResponse.getInitiateNum()+1);
- break;
- case 1:
- numResponse.setPendingNum(numResponse.getPendingNum()+1);
- break;
- case 2:
- numResponse.setProcessedNum(numResponse.getProcessedNum()+1);
- break;
- default:
- numResponse.setInitiateNum(0);
- numResponse.setPendingNum(0);
- numResponse.setProcessedNum(0);
- break;
- }
- }
- });
//根据条件筛选数据
- //迭代器进行筛选
if (personalEfficiencyListRequest.getOperatingStatus()!=null){
// 已发起
if (personalEfficiencyListRequest.getOperatingStatus().equals(StatusCode.CZ_LAUNCH)){
- responseList.removeIf(next -> !next.getOperatingStatus().equals(StatusCode.CZ_LAUNCH));
- // responseList = responseList.stream().filter(p -> !p.getOperatingStatus().equals(StatusCode.CZ_LAUNCH)).collect(Collectors.toList());
+ responseList = responseList.stream().filter(p -> p.getOperatingStatus().equals(StatusCode.CZ_LAUNCH)).collect(Collectors.toList());
// 待处理
}else if (personalEfficiencyListRequest.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){
- responseList.removeIf(next -> !next.getOperatingStatus().equals(StatusCode.CZ_ON_HAND));
- // responseList = responseList.stream().filter(p -> !p.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)).collect(Collectors.toList());
+ responseList = responseList.stream().filter(p -> p.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)).collect(Collectors.toList());
// 已处理
}else if (personalEfficiencyListRequest.getOperatingStatus().equals(StatusCode.CZ_PROCESSED)){
- responseList.removeIf(next -> !next.getOperatingStatus().equals(StatusCode.CZ_PROCESSED));
- // responseList = responseList.stream().filter(p -> !p.getOperatingStatus().equals(StatusCode.CZ_PROCESSED)).collect(Collectors.toList());
+ 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 HH:mm:ss");
+ SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
switch (personalEfficiencyListRequest.getCreateFixedTime()) {
case 0:
personalEfficiencyListRequest.setStartTime(dateFormat.format(DateUtils.getDayBegin()));
@@ -177,7 +144,26 @@ public class DgEfficiencyController {
}
}
}
- return R.ok().data("responseList",responseList).data("statistics",numResponse);
+ //转换任务节点,并统计操作状态个数
+ 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){
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/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/PersonalEfficiencyListResponse.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/PersonalEfficiencyListResponse.java
index 41f0ec5e..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
@@ -6,9 +6,12 @@ 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;
+import java.util.Date;
+
/**
* @Author chen
* @DATE 2020/12/28 16:31
@@ -35,7 +38,8 @@ public class PersonalEfficiencyListResponse {
@ApiModelProperty("申请日期")
@ExcelProperty(value = "申请日期",index = 3)
- private String applicationDate;
+ @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
+ private Date applicationDate;
@ApiModelProperty("累计耗时")
@ExcelProperty(value = "累计耗时",index = 4)
@@ -46,8 +50,8 @@ public class PersonalEfficiencyListResponse {
private String completeTime;
@ApiModelProperty("任务节点")
- @ExcelProperty(value = "任务节点",index = 6,converter = TaskNodeConverter.class)
- private String taskNode;
+ @ExcelProperty(value = "任务节点",index = 6)
+ private Double taskNode;
@ApiModelProperty("审批状态")
@ExcelProperty(value = "审批状态",index = 7,converter = ApprovalStatusConverter.class)
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 a7a4c729..55b398c2 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
@@ -2,12 +2,10 @@ package com.daqing.financial.guarantee.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.daqing.financial.guarantee.model.request.DgEfficiencyTeamRequest;
-import com.daqing.financial.guarantee.model.response.PersonalEfficiencyListResponse;
import com.daqing.framework.domain.guarantee.DgApplyAmountInfo;
import org.springframework.stereotype.Service;
import java.util.HashMap;
-import java.util.List;
import java.util.Map;
/**
@@ -17,7 +15,8 @@ import java.util.Map;
public interface IDgEfficiencyService extends IService {
Map approvalNum();
+
HashMap> queryList(DgEfficiencyTeamRequest dgEfficiencyTeamRequest);
- List queryPersonalEfficiencyList();
+ 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:
@@ -143,7 +103,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);
}
@@ -178,6 +137,15 @@ public class DgEfficiencyServiceImpl extends ServiceImpl getBusinessCount() {
+
+ return this.getBaseMapper().getBusinessCount();
+ }
+
/**
* 查询审批数目的值的数组
*
@@ -197,365 +165,4 @@ public class DgEfficiencyServiceImpl extends ServiceImpl queryPersonalEfficiencyList() {
- int size = 100;
- List efficiencyList = new ArrayList<>();
- //获取当前登录用户id
- int currentUser = Integer.parseInt(this.getUserId());
- //获取当前用户拥有的角色ids
- String roleIds = RedisUtil.get("dq:userRole:" + currentUser);
- //字符串格式
- List roleIdList = new ArrayList<>();
- if (roleIds != null) {
- String[] ids = roleIds.split(",");
- roleIdList = Arrays.asList(ids);
- }
- //数字格式
- List roleList = new ArrayList<>();
- if (roleIds != null) {
- String[] roleId = roleIds.split(",");
- for (String id : roleId) {
- roleList.add(Integer.parseInt(id));
- }
- }
- //查询用户处理过的业务
- QueryWrapper wrapper = new QueryWrapper<>();
- wrapper.eq("user_id", currentUser).groupBy("business_id").select("business_id");
- List auditProcessList = dgAuditProcessMapper.selectList(wrapper);
- if (auditProcessList != null && auditProcessList.size() != 0) {
- List businessIdList = new ArrayList<>();
- auditProcessList.forEach(dgAuditProcess -> {
- businessIdList.add(dgAuditProcess.getBusinessId());
- });
-
- //根据业务id查询业务流程,统计耗时,完成时间
- businessIdList.forEach(businessId -> {
- //new返回对象
- PersonalEfficiencyListResponse efficiencyListResponse = new PersonalEfficiencyListResponse();
- efficiencyListResponse.setBusinessId(businessId);
- //根据业务id查询业务
- DgApplyAmountInfo dgApplyAmountInfo = applyAmountInfoMapper.selectById(businessId);
- //业务申请日期
- Date createTime = dgApplyAmountInfo.getCreateTime();
- //客户公司id
- Integer companyId = dgApplyAmountInfo.getCompanyId();
- //提单人id
- Integer presenterId = dgApplyAmountInfo.getPresenterId();
- efficiencyListResponse.setApplicantId(presenterId);
- efficiencyListResponse.setApplicationDate(new SimpleDateFormat("yyyy-MM-dd").format(createTime));
- efficiencyListResponse.setClientName(String.valueOf(companyId));
- //获取累计耗时,完成时间,任务节点
- HashMap hashMap = getTime(businessId, currentUser);
- Object countTime = hashMap.get("countTime");
- Object endTime = hashMap.get("endTime");
- efficiencyListResponse.setTimeConsuming(String.valueOf(countTime));
- efficiencyListResponse.setCompleteTime(String.valueOf(endTime));
- efficiencyList.add(efficiencyListResponse);
- });
- //获取每个业务id的三种状态
- HashMap hashMap = Maps.newHashMap();
- //角色不为空
- //担保业务员角色、担保经理角色
- if (roleIdList.contains(String.valueOf(PromptSuccess.DB_YWY_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.DB_JL_ID))) {
- //业务申请列表查询
- IPage positionVO = applyAmountListMapper.pageByCondition(new Page(1, size), "", roleIdList, this.getUserId());
- List records = positionVO.getRecords();
- if (records!=null && records.size()!=0){
- records.forEach(businessApplicationListResponse -> {
- StatusPO statusPO = new StatusPO();
- Integer businessId = businessApplicationListResponse.getBusinessId();
- String name = businessApplicationListResponse.getName();
- Integer status = businessApplicationListResponse.getStatus();
- Integer operatingStatus = businessApplicationListResponse.getOperatingStatus();
- Integer businessStatus = businessApplicationListResponse.getBusinessStatus();
- statusPO.setBusinessStatus(businessStatus);
- statusPO.setName(name);
- statusPO.setOperatingStatus(operatingStatus);
- statusPO.setProcessId(1);
- statusPO.setStatus(status);
- hashMap.put(businessId, statusPO);
- });
- }
- }
- //担保经理角色、担保A角角色、担保B角角色、担保领导角色
- if (roleIdList.contains(String.valueOf(PromptSuccess.DB_JL_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.DB_A_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.DB_B_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.DB_LD_ID))) {
- // 担保部调查列表
- IPage positionVO = guaranteeAssignUserMapper.pageByCondition(new Page(1, size), "", roleIdList, this.getUserId(), null);
- List records = positionVO.getRecords();
- if (records!=null && records.size()!=0) {
- records.forEach(guaranteeListResponse -> {
- StatusPO statusPO = new StatusPO();
- Integer businessId = guaranteeListResponse.getBusinessId();
- Integer status = guaranteeListResponse.getStatus();
- String name = guaranteeListResponse.getName();
- Integer operatingStatus = guaranteeListResponse.getOperatingStatus();
- Integer businessStatus = guaranteeListResponse.getBusinessStatus();
- statusPO.setBusinessStatus(businessStatus);
- statusPO.setOperatingStatus(operatingStatus);
- statusPO.setProcessId(2);
- statusPO.setName(name);
- statusPO.setStatus(status);
- hashMap.put(businessId, statusPO);
- });
- }
- }
- //资产经理角色、资产专员角色、资产领导角色
- if (roleIdList.contains(String.valueOf(PromptSuccess.ZC_JL_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.ZC_ZY_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.ZC_LD_ID))) {
- // 资产部调查列表
- IPage positionVO = assetsInvestigationMapper.pageByCondition(new Page(1, size), "", roleIdList, this.getUserId(), null);
- List records = positionVO.getRecords();
- if (records!=null && records.size()!=0) {
- records.forEach(assetsInvestigationListResponse -> {
- StatusPO statusPO = new StatusPO();
- Integer businessId = assetsInvestigationListResponse.getBusinessId();
- Integer status = assetsInvestigationListResponse.getStatus();
- String name = assetsInvestigationListResponse.getName();
- Integer operatingStatus = assetsInvestigationListResponse.getOperatingStatus();
- Integer businessStatus = assetsInvestigationListResponse.getBusinessStatus();
- statusPO.setBusinessStatus(businessStatus);
- statusPO.setOperatingStatus(operatingStatus);
- statusPO.setProcessId(3);
- statusPO.setName(name);
- statusPO.setStatus(status);
- hashMap.put(businessId, statusPO);
- });
- }
- }
- //信息经理角色、信息专员角色、信息领导角色
- if (roleIdList.contains(String.valueOf(PromptSuccess.XX_JL_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.XX_ZY_ID)) | roleIdList.contains(String.valueOf(PromptSuccess.XX_LD_ID))) {
- // 信息部调查列表
- IPage positionVO = messageInvestigationMapper.pageByCondition(new Page(1, size), "", roleIdList, this.getUserId(), null);
- List records = positionVO.getRecords();
- if (records!=null && records.size()!=0) {
- records.forEach(messageInvestigationListResponse -> {
- StatusPO statusPO = new StatusPO();
- Integer businessId = messageInvestigationListResponse.getBusinessId();
- Integer status = messageInvestigationListResponse.getStatus();
- String name = messageInvestigationListResponse.getName();
- Integer operatingStatus = messageInvestigationListResponse.getOperatingStatus();
- Integer businessStatus = messageInvestigationListResponse.getBusinessStatus();
- statusPO.setBusinessStatus(businessStatus);
- statusPO.setOperatingStatus(operatingStatus);
- statusPO.setProcessId(4);
- statusPO.setName(name);
- statusPO.setStatus(status);
- hashMap.put(businessId, statusPO);
- });
- }
- }
- //担保部A/B角、法规经理角色、法规部C角、法规部分管领导
- if (roleIdList.contains(String.valueOf(PromptSuccess.DB_A_ID))|roleIdList.contains(String.valueOf(PromptSuccess.DB_B_ID))|roleIdList.contains(String.valueOf(PromptSuccess.FG_JL_ID))|roleIdList.contains(String.valueOf(PromptSuccess.FG_C_ID))|roleIdList.contains(String.valueOf(PromptSuccess.FG_LD_ID))) {
- // 合规调查列表
- DgComplianceInvestigationRequest dgComplianceInvestigationRequest = new DgComplianceInvestigationRequest();
- IPage list = complianceInvestigationMapper.list(new Page(1, size), dgComplianceInvestigationRequest, roleList, currentUser);
- List records = list.getRecords();
- if (records!=null && records.size()!=0) {
- records.forEach(dgComplianceInvestigationResponse -> {
- StatusPO statusPO = new StatusPO();
- Integer businessId = dgComplianceInvestigationResponse.getBusinessId();
- String name = dgComplianceInvestigationResponse.getName();
- Integer status = dgComplianceInvestigationResponse.getAuditStatus();
- Integer operatingStatus = dgComplianceInvestigationResponse.getOperationStatus();
- Integer businessStatus = dgComplianceInvestigationResponse.getBusinessStatus();
- statusPO.setBusinessStatus(businessStatus);
- statusPO.setOperatingStatus(operatingStatus);
- statusPO.setProcessId(5);
- statusPO.setName(name);
- statusPO.setStatus(status);
- hashMap.put(businessId, statusPO);
- });
- }
- }
- //工作会
- if (roleIdList.contains(String.valueOf(PromptSuccess.GZU_ID))) {
- IPage list = workConferenceConsiderMapper.list(new Page(1, size), "", roleList, currentUser);
- List records = list.getRecords();
- if (records!=null && records.size()!=0) {
- records.forEach(dgWorkConferencePO -> {
- StatusPO statusPO = new StatusPO();
- Integer businessId = dgWorkConferencePO.getBusinessId();
- String name = dgWorkConferencePO.getName();
- Integer status = dgWorkConferencePO.getAuditStatus();
- Integer operatingStatus = dgWorkConferencePO.getOperationStatus();
- Integer businessStatus = dgWorkConferencePO.getBusinessStatus();
- statusPO.setBusinessStatus(businessStatus);
- statusPO.setOperatingStatus(operatingStatus);
- statusPO.setProcessId(6);
- statusPO.setName(name);
- statusPO.setStatus(status);
- hashMap.put(businessId, statusPO);
- });
- }
- }
- //担保部A/B角、贷审会
- if (roleIdList.contains(String.valueOf(PromptSuccess.DB_A_ID))|roleIdList.contains(String.valueOf(PromptSuccess.DB_B_ID))|roleIdList.contains(String.valueOf(PromptSuccess.DSH_ID))) {
- IPage list = loanCommitteeConsiderMapper.list(new Page(1, size), "", roleList, currentUser);
- List records = list.getRecords();
- if (records!=null && records.size()!=0) {
- records.forEach(dgLoanCommitteeConsiderResponse -> {
- StatusPO statusPO = new StatusPO();
- Integer businessId = dgLoanCommitteeConsiderResponse.getBusinessId();
- Integer status = dgLoanCommitteeConsiderResponse.getStatus();
- String name = dgLoanCommitteeConsiderResponse.getName();
- Integer operatingStatus = dgLoanCommitteeConsiderResponse.getOperatingStatus();
- Integer businessStatus = dgLoanCommitteeConsiderResponse.getBusinessStatus();
- statusPO.setBusinessStatus(businessStatus);
- statusPO.setOperatingStatus(operatingStatus);
- statusPO.setProcessId(7);
- statusPO.setName(name);
- statusPO.setStatus(status);
- hashMap.put(businessId, statusPO);
- });
- }
- }
- //法规经理、担保部A/B角、资产部经理
- if (roleIdList.contains(String.valueOf(PromptSuccess.FG_JL_ID))|roleIdList.contains(String.valueOf(PromptSuccess.DB_A_ID))|roleIdList.contains(String.valueOf(PromptSuccess.DB_B_ID))|roleIdList.contains(String.valueOf(PromptSuccess.ZC_JL_ID)) ) {
- //担保函
- IPage iPage = guaranteeLetterAssignUserMapper.pageByCondition(new Page(1, size), currentUser, roleIdList, null, null);
- List records = iPage.getRecords();
- if (records!=null && records.size()!=0) {
- records.forEach(guaranteeLetterListResponse -> {
- StatusPO statusPO = new StatusPO();
- String name = guaranteeLetterListResponse.getName();
- Integer businessId = guaranteeLetterListResponse.getBusinessId();
- Integer status = guaranteeLetterListResponse.getStatus();
- Integer operatingStatus = guaranteeLetterListResponse.getOperatingStatus();
- Integer businessStatus = guaranteeLetterListResponse.getBusinessStatus();
- statusPO.setBusinessStatus(businessStatus);
- statusPO.setOperatingStatus(operatingStatus);
- statusPO.setProcessId(8);
- statusPO.setName(name);
- statusPO.setStatus(status);
- hashMap.put(businessId, statusPO);
- });
- }
- }
- //财务部、法规经理
- if (roleIdList.contains(String.valueOf(PromptSuccess.CWB_ID))|roleIdList.contains(String.valueOf(PromptSuccess.FG_JL_ID))) {
- //回款确认
- IPage iPage = paymentConfirmationConsiderMapper.pageByCondition(new Page(1, size), roleIdList, currentUser, null, null);
- List records = iPage.getRecords();
- if (records!=null && records.size()!=0) {
- records.forEach(paymentConfirmationListResponse -> {
- StatusPO statusPO = new StatusPO();
- String name = paymentConfirmationListResponse.getName();
- Integer businessId = paymentConfirmationListResponse.getBusinessId();
- Integer status = paymentConfirmationListResponse.getStatus();
- Integer operatingStatus = paymentConfirmationListResponse.getOperatingStatus();
- Integer businessStatus = paymentConfirmationListResponse.getBusinessStatus();
- statusPO.setBusinessStatus(businessStatus);
- statusPO.setOperatingStatus(operatingStatus);
- statusPO.setProcessId(9);
- statusPO.setName(name);
- statusPO.setStatus(status);
- hashMap.put(businessId, statusPO);
- });
- }
- }
- //法规经理
- if (roleIdList.contains(String.valueOf(PromptSuccess.FG_JL_ID))) {
- //放款通知
- IPage iPage = loanNoticeMapper.pageByCondition(new Page(1, size), roleIdList, currentUser, null, null);
- List records = iPage.getRecords();
- if (records!=null && records.size()!=0) {
- records.forEach(loanNoticeListResponse -> {
- StatusPO statusPO = new StatusPO();
- String name = loanNoticeListResponse.getName();
- Integer businessId = loanNoticeListResponse.getBusinessId();
- Integer status = loanNoticeListResponse.getStatus();
- Integer operatingStatus = loanNoticeListResponse.getOperatingStatus();
- Integer businessStatus = loanNoticeListResponse.getBusinessStatus();
- statusPO.setBusinessStatus(businessStatus);
- statusPO.setOperatingStatus(operatingStatus);
- statusPO.setProcessId(10);
- statusPO.setName(name);
- statusPO.setStatus(status);
- hashMap.put(businessId, statusPO);
- });
- }
- }
- //再次循环,拼接数据
- efficiencyList.forEach(personalEfficiencyListResponse -> {
- Integer businessId = personalEfficiencyListResponse.getBusinessId();
- Object o = hashMap.get(businessId);
- //有数据
- if (ObjectUtil.isNotNull(o)){
- //强制转换
- if (o instanceof StatusPO){
- StatusPO statusPO = (StatusPO)o;
- String name = statusPO.getName();
- Integer operatingStatus = statusPO.getOperatingStatus();
- Integer processId = statusPO.getProcessId();
- Integer status = statusPO.getStatus();
- Integer businessStatus = statusPO.getBusinessStatus();
- personalEfficiencyListResponse.setTaskNode(String.valueOf(processId));
- personalEfficiencyListResponse.setBusinessStatus(businessStatus);
- personalEfficiencyListResponse.setOperatingStatus(operatingStatus);
- personalEfficiencyListResponse.setApproveStatus(status);
- personalEfficiencyListResponse.setClientName(name);
- }
- }
- String timeConsuming = personalEfficiencyListResponse.getTimeConsuming();
- String totalTimeConsuming = countTime(timeConsuming);
- personalEfficiencyListResponse.setTimeConsuming(totalTimeConsuming);
- });
- }
- return efficiencyList;
- }
-
- //根据业务id和用户id统计耗时
- private HashMap getTime(Integer businessId, Integer userId) {
- HashMap hashMap = Maps.newHashMap();
- //根据业务id查询业务流程表
- QueryWrapper wrapper = new QueryWrapper<>();
- wrapper.eq("business_id", businessId).orderByAsc("create_time");
- List auditProcessList = dgAuditProcessMapper.selectList(wrapper);
- long countTime = 0L;
- if (auditProcessList.size()>1){
- //遍历业务流程数据,统计该用户的耗时
- for (int i = 1; i <= auditProcessList.size() - 1; i++) {
- //从第二条数据开始,获取该数据
- DgAuditProcess auditProcess = auditProcessList.get(i);
- //该数据是当前用户处理的
- if (auditProcess.getUserId().equals(userId)) {
- //获取上一流程的时间节点
- DgAuditProcess previousProcess = auditProcessList.get(i - 1);
- Date previousTime = previousProcess.getCreateTime();
- Date currentTime = auditProcess.getCreateTime();
- long currentTimeTime = currentTime.getTime();
- long previousTimeTime = previousTime.getTime();
- //累计耗时,毫秒
- countTime = currentTimeTime - previousTimeTime;
- }
- }
- }
- //查询结束时间
- QueryWrapper wrapperTime = new QueryWrapper<>();
- wrapperTime.eq("business_id", businessId).eq("user_id", userId).orderByDesc("create_time").last("limit 1");
- DgAuditProcess auditProcess = dgAuditProcessMapper.selectOne(wrapperTime);
- Date endTime = auditProcess.getCreateTime();
- hashMap.put("countTime", countTime);
- hashMap.put("endTime", new SimpleDateFormat("yyyy-MM-dd").format(endTime));
- return hashMap;
- }
-
- public static String countTime(String totalTime) {
- long time = Long.parseLong(totalTime);
- long days = time/ (1000 * 60 * 60 * 24);
- long hours = (time% (1000 * 60 * 60 * 24)) / (1000 * 60 * 60);
- long minutes = (time% (1000 * 60 * 60)) / (1000 * 60);
- long seconds = (time% (1000 * 60)) / 1000;
- return days + "天" + hours + "小时"+ minutes +"分钟";
- }
-
- /**
- * 获取当前登录用户信息
- */
- private String getUserId() {
- HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
- String token = request.getHeader("token");
- return RedisUtil.get("dq:token:" + token);
- }
}
\ No newline at end of file
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/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