Merge remote-tracking branch 'origin/master'

# Conflicts:
#	dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgEfficiencyController.java
#	dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgEfficiencyService.java
#	dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgEfficiencyServiceImpl.java
master
chen 4 years ago
commit 30fb6e93e8
  1. 24
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgEfficiencyController.java
  2. 14
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgEfficiencyMapper.java
  3. 19
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/DgEfficiencyTeamRequest.java
  4. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/DgStatisticsRequest.java
  5. 10
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgStatisticsListResponse.java
  6. 6
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgEfficiencyService.java
  7. 22
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgEfficiencyServiceImpl.java
  8. 13
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgStatisticsServiceImpl.java
  9. 55
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/util/DateUtils.java
  10. 95
      dq-financial-guarantee/src/main/resources/mapper/guarantee/DgEfficiencyMapper.xml
  11. 23
      dq-financial-guarantee/src/main/resources/mapper/guarantee/DgStatisticsMapper.xml
  12. 57
      dq-framework-model/src/main/java/com/daqing/framework/domain/guarantee/po/DgEfficiencyPersonPO.java
  13. 57
      dq-framework-model/src/main/java/com/daqing/framework/domain/guarantee/po/DgEfficiencyTeamPO.java
  14. 11
      dq-framework-model/src/main/java/com/daqing/framework/domain/guarantee/po/DgStatisticsPO.java
  15. 16
      dq-framework-model/src/main/java/com/daqing/framework/domain/guarantee/po/DgStatisticsRefusePO.java
  16. 38
      dq-framework-model/src/main/java/com/daqing/framework/domain/guarantee/po/DgTeamEfficiencyPO.java

@ -1,21 +1,8 @@
package com.daqing.financial.guarantee.controller; package com.daqing.financial.guarantee.controller;
import com.daqing.financial.guarantee.model.request.GuaranteeLetterQueryRequest;
import com.daqing.financial.guarantee.model.response.GuaranteeLetterListResponse;
import com.daqing.financial.guarantee.model.response.PersonalEfficiencyListResponse;
import com.daqing.financial.guarantee.service.IDgEfficiencyService;
import com.daqing.framework.model.response.ResponseResult;
import com.daqing.framework.utils.PageUtils;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/** /**
* 流程效率 * 流程效率
* *
@ -25,15 +12,4 @@ import java.util.List;
@RestController @RestController
@RequestMapping("/guarantee/efficiency") @RequestMapping("/guarantee/efficiency")
public class DgEfficiencyController { public class DgEfficiencyController {
@Autowired
private IDgEfficiencyService iDgEfficiencyService;
@ApiOperation(value = "个人效率记录列表")
@PostMapping("/personalEfficiencyList")
public ResponseResult personalEfficiencyList(){
List<PersonalEfficiencyListResponse> responseList = iDgEfficiencyService.queryPersonalEfficiencyList();
return ResponseResult.SUCCESS(responseList);
}
} }

@ -1,18 +1,22 @@
package com.daqing.financial.guarantee.mapper; package com.daqing.financial.guarantee.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.daqing.financial.guarantee.model.request.DgEfficiencyTeamRequest;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.daqing.financial.guarantee.model.request.DgEfficiencyPersonRequest;
import com.daqing.framework.domain.guarantee.DgApplyAmountInfo; import com.daqing.framework.domain.guarantee.DgApplyAmountInfo;
import com.daqing.framework.domain.guarantee.po.DgEfficiencyPersonPO; import com.daqing.framework.domain.guarantee.po.DgTeamEfficiencyPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List;
/** /**
* @auther River * @auther River
* @date 2020/11/10 11:30 * @date 2020/11/10 11:30
*/ */
@Mapper
public interface DgEfficiencyMapper extends BaseMapper<DgApplyAmountInfo> { public interface DgEfficiencyMapper extends BaseMapper<DgApplyAmountInfo> {
IPage<DgEfficiencyPersonPO> personList(Page page, @Param("pr")DgEfficiencyPersonRequest dgEfficiencyPersonRequest); List<DgTeamEfficiencyPO> queryList(@Param("et") DgEfficiencyTeamRequest dgEfficiencyTeamRequest);
List<Integer> queryBusinessId(@Param("et") DgEfficiencyTeamRequest dgEfficiencyTeamRequest);
} }

@ -22,22 +22,17 @@ public class DgEfficiencyTeamRequest implements Serializable {
@ApiModelProperty("申请时间,固定类型,0:今天,1:昨天,2:本周,3:本月,4:本年") @ApiModelProperty("申请时间,固定类型,0:今天,1:昨天,2:本周,3:本月,4:本年")
private Integer createFixedTime; private Integer createFixedTime;
@ApiModelProperty("申请时间,自定义时间") @ApiModelProperty("业务状态,0->已完成,1->已否决,3->进行中,4->已撤销")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date createCustomTime;
@ApiModelProperty("流程状态,1->审核中,2->已审核,3->拒绝,4->驳回,5->撤销")
private Integer flowStatus; private Integer flowStatus;
@ApiModelProperty("提单人或者客户名称") @ApiModelProperty("部门id")
private String empOrName; private Integer departmentId;
@ApiModelProperty("该团队(部门)下所有提单人(员工)")
private List<Integer> empIds;
@ApiModelProperty("辅助字段,不用管,起始时间") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@ApiModelProperty("起始时间")
private String startTime; private String startTime;
@ApiModelProperty("辅助字段,不用管,结束时间") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@ApiModelProperty("结束时间")
private String endTime; private String endTime;
} }

@ -43,6 +43,4 @@ public class DgStatisticsRequest implements Serializable {
@ApiModelProperty("辅助字段,不用管,结束时间") @ApiModelProperty("辅助字段,不用管,结束时间")
private String endTime; private String endTime;
@ApiModelProperty("辅助字段,不用管,流程状态")
private String status;
} }

@ -50,13 +50,9 @@ public class DgStatisticsListResponse extends BaseRowModel implements Serializab
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date createTime; private Date createTime;
@ApiModelProperty("当前审批人") @ApiModelProperty("完成任务节点id")
@ExcelProperty(value = "当前审批人",index = 7) @ExcelProperty(value = "完成任务节点id",index = 8)
private String empNames; private Integer processId;
@ApiModelProperty("任务节点")
@ExcelProperty(value = "任务节点",index = 8)
private String taskNode;
@ApiModelProperty("最新操作时间") @ApiModelProperty("最新操作时间")
@ExcelProperty(value = "任务分配时间",index = 9) @ExcelProperty(value = "任务分配时间",index = 9)

@ -1,18 +1,12 @@
package com.daqing.financial.guarantee.service; package com.daqing.financial.guarantee.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.daqing.financial.guarantee.model.response.PersonalEfficiencyListResponse;
import com.daqing.framework.domain.guarantee.DgApplyAmountInfo; import com.daqing.framework.domain.guarantee.DgApplyAmountInfo;
import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* @auther River * @auther River
* @date 2020/11/10 11:33 * @date 2020/11/10 11:33
*/ */
public interface IDgEfficiencyService extends IService<DgApplyAmountInfo> { public interface IDgEfficiencyService extends IService<DgApplyAmountInfo> {
List<PersonalEfficiencyListResponse> queryPersonalEfficiencyList();
} }

@ -2,35 +2,13 @@ package com.daqing.financial.guarantee.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.daqing.financial.guarantee.mapper.DgEfficiencyMapper; import com.daqing.financial.guarantee.mapper.DgEfficiencyMapper;
import com.daqing.financial.guarantee.model.request.GuaranteeLetterQueryRequest;
import com.daqing.financial.guarantee.model.response.GuaranteeLetterListResponse;
import com.daqing.financial.guarantee.model.response.PersonalEfficiencyListResponse;
import com.daqing.financial.guarantee.service.IDgEfficiencyService; import com.daqing.financial.guarantee.service.IDgEfficiencyService;
import com.daqing.framework.domain.guarantee.DgApplyAmountInfo; import com.daqing.framework.domain.guarantee.DgApplyAmountInfo;
import com.daqing.framework.model.response.ResponseResult;
import com.daqing.framework.utils.PageUtils;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List;
/** /**
* @auther River * @auther River
* @date 2020/11/10 11:34 * @date 2020/11/10 11:34
*/ */
@Service
public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgApplyAmountInfo> implements IDgEfficiencyService { public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgApplyAmountInfo> implements IDgEfficiencyService {
@Override
public List<PersonalEfficiencyListResponse> queryPersonalEfficiencyList() {
return null;
}
} }

@ -226,7 +226,6 @@ public class DgStatisticsServiceImpl extends ServiceImpl<DgStatisticsMapper, DgA
dgStatisticsRequest.setEndTime(dateFormat.format(DateUtils.getDayEndTime(dgStatisticsRequest.getCreateCustomTime()))); dgStatisticsRequest.setEndTime(dateFormat.format(DateUtils.getDayEndTime(dgStatisticsRequest.getCreateCustomTime())));
} }
// 拒绝列表 // 拒绝列表
dgStatisticsRequest.setStatus(PromptSuccess.STATUS_REFUSE);
IPage<DgStatisticsRefusePO> iPage = this.getBaseMapper().listRefuse(new Page(page, size), dgStatisticsRequest); IPage<DgStatisticsRefusePO> iPage = this.getBaseMapper().listRefuse(new Page(page, size), dgStatisticsRequest);
List<DgStatisticsRefusePO> dgStatisticsRefusePOList = iPage.getRecords(); List<DgStatisticsRefusePO> dgStatisticsRefusePOList = iPage.getRecords();
if (dgStatisticsRefusePOList == null) { if (dgStatisticsRefusePOList == null) {
@ -292,10 +291,8 @@ public class DgStatisticsServiceImpl extends ServiceImpl<DgStatisticsMapper, DgA
*/ */
@Override @Override
public Boolean excelExportRefuse(HttpServletResponse response) { public Boolean excelExportRefuse(HttpServletResponse response) {
DgStatisticsRequest dgStatisticsRequest = new DgStatisticsRequest();
dgStatisticsRequest.setStatus(PromptSuccess.STATUS_REFUSE);
// 列表查询 // 列表查询
IPage<DgStatisticsRefusePO> listRefuse = this.getBaseMapper().listRefuse(new Page(), dgStatisticsRequest); IPage<DgStatisticsRefusePO> listRefuse = this.getBaseMapper().listRefuse(new Page(), new DgStatisticsRequest());
List<DgStatisticsRefusePO> statisticsRefusePOList = listRefuse.getRecords(); List<DgStatisticsRefusePO> statisticsRefusePOList = listRefuse.getRecords();
if (statisticsRefusePOList == null) { if (statisticsRefusePOList == null) {
return false; return false;
@ -353,16 +350,12 @@ public class DgStatisticsServiceImpl extends ServiceImpl<DgStatisticsMapper, DgA
dgStatisticsListRefuseResponse = new DgStatisticsListRefuseResponse(); dgStatisticsListRefuseResponse = new DgStatisticsListRefuseResponse();
for (EmployeeTO employeeTO : empAndDeptList) { for (EmployeeTO employeeTO : empAndDeptList) {
if (Objects.equals(dgStatisticsRefusePO.getPresenterId().longValue(), employeeTO.getId())) { if (Objects.equals(dgStatisticsRefusePO.getPresenterId().longValue(), employeeTO.getId())) {
BeanUtils.copyProperties(dgStatisticsRefusePO, dgStatisticsListRefuseResponse);
dgStatisticsListRefuseResponse.setEmployeeName(employeeTO.getEmpName()); dgStatisticsListRefuseResponse.setEmployeeName(employeeTO.getEmpName());
dgStatisticsListRefuseResponse.setDepartment(employeeTO.getDeptNames()); dgStatisticsListRefuseResponse.setDepartment(employeeTO.getDeptNames());
listResponse.add(dgStatisticsListRefuseResponse);
} }
} }
if (dgStatisticsListRefuseResponse.getEmployeeName() == null || dgStatisticsListRefuseResponse.getEmployeeName().length() == 0) { BeanUtils.copyProperties(dgStatisticsRefusePO, dgStatisticsListRefuseResponse);
BeanUtils.copyProperties(dgStatisticsRefusePO, dgStatisticsListRefuseResponse); listResponse.add(dgStatisticsListRefuseResponse);
listResponse.add(dgStatisticsListRefuseResponse);
}
} }
return listResponse; return listResponse;
} }

@ -1,11 +1,7 @@
package com.daqing.financial.guarantee.util; package com.daqing.financial.guarantee.util;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.util.ArrayList; import java.util.*;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
/** /**
* @auther River * @auther River
@ -322,5 +318,54 @@ public class DateUtils {
list.add(begincal.getTime()); list.add(begincal.getTime());
return list; return list;
} }
// 将毫秒数转换为年月日
public static String getYearMonthDayHourMinuteSecond(long timeMillis) {
Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("GMT+8"));
calendar.setTimeInMillis(timeMillis);
int year=calendar.get(Calendar.YEAR);
int month=calendar.get(Calendar.MONTH) + 1;
String mToMonth=null;
if (String.valueOf(month).length()==1) {
mToMonth="0"+month;
} else {
mToMonth=String.valueOf(month);
}
int day=calendar.get(Calendar.DAY_OF_MONTH);
String dToDay=null;
if (String.valueOf(day).length()==1) {
dToDay="0"+day;
} else {
dToDay=String.valueOf(day);
}
int hour=calendar.get(Calendar.HOUR_OF_DAY);
String hToHour=null;
if (String.valueOf(hour).length()==1) {
hToHour="0"+hour;
} else {
hToHour=String.valueOf(hour);
}
int minute=calendar.get(Calendar.MINUTE);
String mToMinute=null;
if (String.valueOf(minute).length()==1) {
mToMinute="0"+minute;
} else {
mToMinute=String.valueOf(minute);
}
int second=calendar.get(Calendar.SECOND);
String sToSecond=null;
if (String.valueOf(second).length()==1) {
sToSecond="0"+second;
} else {
sToSecond=String.valueOf(second);
}
return year+ "-" +mToMonth+ "-" +dToDay+ " "+hToHour+ ":" +mToMinute+ ":" +sToSecond;
}
} }

@ -2,64 +2,45 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.daqing.financial.guarantee.mapper.DgEfficiencyMapper"> <mapper namespace="com.daqing.financial.guarantee.mapper.DgEfficiencyMapper">
<resultMap id="BaseResultMap" type="com.daqing.framework.domain.guarantee.DgApplyAmountInfo"> <select id="queryList" resultType="com.daqing.framework.domain.guarantee.po.DgTeamEfficiencyPO">
<id column="id" property="id" /> SELECT p.business_id AS business_id,p.process_id AS process_id,p.department_id AS department_id,p.create_time AS create_time
<result column="company_id" property="companyId" /> FROM dg_audit_process AS p
<result column="presenter_id" property="presenterId" /> LEFT JOIN dg_apply_amount_info AS a
<result column="apply_amount" property="applyAmount" /> ON p.business_id = a.id
<result column="apply_time" property="applyTime" /> LEFT JOIN dg_business_process_status AS s
<result column="bank" property="bank" /> ON p.business_id = s.business_id
<result column="amount_wide" property="amountWide" /> WHERE 1 = 1
<result column="en_guarantee_measures" property="enGuaranteeMeasures" /> <if test="et.flowStatus != null">
<result column="business_type" property="businessType" /> AND s.business_status = #{et.flowStatus}
<result column="create_time" property="createTime" /> </if>
<result column="update_time" property="updateTime" /> <if test="et.startTime != null and et.startTime != ''">
</resultMap> AND a.create_time &gt;= #{et.startTime}
</if>
<select id="teamList" parameterType="com.daqing.financial.guarantee.model.request.DgEfficiencyTeamRequest" resultType="com.daqing.framework.domain.guarantee.po.DgEfficiencyTeamPO"> <if test="et.endTime != null and et.endTime != ''">
SELECT c.id AS id,c.name AS name,a.presenter_id AS presenter_id,a.create_time AS create_time,a.,p.emp_name AS emp_name, AND a.create_time &lt;= #{et.endTime}
p.status AS status,p.date_time AS date_time </if>
FROM dg_apply_amount_info AS a ORDER BY p.create_time ASC
LEFT JOIN (SELECT apply_amount_info_id,emp_name,status,date_time FROM dg_audit_process WHERE (apply_amount_info_id,date_time) IN
(SELECT apply_amount_info_id,MAX(date_time) FROM dg_audit_process GROUP BY apply_amount_info_id)) AS p
ON a.id = p.apply_amount_info_id
LEFT JOIN crms_customer AS c
ON a.company_id = c.id
WHERE c.del_or_not = 0
</select> </select>
<select id="personList" parameterType="com.daqing.financial.guarantee.model.request.DgEfficiencyPersonRequest" resultType="com.daqing.framework.domain.guarantee.po.DgEfficiencyPersonPO"> <select id="queryBusinessId" resultType="integer">
SELECT c.id AS id,c.name AS name,a.presenter_id AS presenter_id,a.create_time AS create_time,a.status AS flow_status, SELECT p.business_id AS business_id
p.emp_name AS emp_name,p.status AS status,p.date_time AS date_time FROM dg_audit_process AS p
FROM dg_apply_amount_info AS a LEFT JOIN dg_apply_amount_info AS a
LEFT JOIN (SELECT apply_amount_info_id,emp_name,status,date_time,emp_id FROM dg_audit_process WHERE (apply_amount_info_id,date_time) IN ON p.business_id = a.id
(SELECT apply_amount_info_id,MAX(date_time) FROM dg_audit_process GROUP BY apply_amount_info_id)) AS p LEFT JOIN dg_business_process_status AS s
ON a.id = p.apply_amount_info_id ON p.business_id = s.business_id
LEFT JOIN crms_customer AS c WHERE 1 = 1
ON a.company_id = c.id <if test="et.flowStatus != null">
WHERE c.del_or_not = 0 AND s.business_status = #{et.flowStatus}
<if test="pr.flowStatus == null"> </if>
AND ( <if test="et.startTime != null and et.startTime != ''">
a.presenter_id = #{pr.personId} AND a.create_time &gt;= #{et.startTime}
OR </if>
p.emp_id = #{pr.personId} <if test="et.endTime != null and et.endTime != ''">
) AND a.create_time &lt;= #{et.endTime}
</if> </if>
<if test="pr.flowStatus == 0"> GROUP BY business_id
AND a.presenter_id = #{pr.personId} ORDER BY p.create_time ASC
</if>
<if test="pr.flowStatus == 1">
AND p.emp_id = #{pr.personId}
</if>
<if test="pr.empOrName != null and pr.empOrName != ''">
AND c.name LIKE CONCAT('%',#{sr.empOrName},'%')
</if>
<if test="pr.startTime != null and pr.startTime != ''">
AND a.create_time &gt;= #{pr.startTime}
</if>
<if test="pr.endTime != null and pr.endTime != ''">
AND a.create_time &lt;= #{pr.endTime}
</if>
ORDER BY a.create_time DESC
</select> </select>
</mapper> </mapper>

@ -19,10 +19,10 @@
<!-- 业务统计列表 --> <!-- 业务统计列表 -->
<select id="list" parameterType="com.daqing.financial.guarantee.model.request.DgStatisticsRequest" resultType="com.daqing.framework.domain.guarantee.po.DgStatisticsPO"> <select id="list" parameterType="com.daqing.financial.guarantee.model.request.DgStatisticsRequest" resultType="com.daqing.framework.domain.guarantee.po.DgStatisticsPO">
SELECT c.name AS name,c.phone AS phone,a.presenter_id AS presenter_id,a.apply_amount AS apply_amount,a.apply_time AS apply_time, SELECT c.name AS name,c.phone AS phone,a.presenter_id AS presenter_id,a.apply_amount AS apply_amount,a.apply_time AS apply_time,
a.business_type AS business_type,a.create_time AS create_time,a.business_code AS business_code,a.id AS business_id, a.business_type AS business_type,a.create_time AS create_time,a.business_code AS business_code,p.process_id AS process_id,
p.role_id AS role_id,p.create_time AS operation_time p.create_time AS operation_time
FROM dg_apply_amount_info AS a FROM dg_apply_amount_info AS a
LEFT JOIN (SELECT business_id,role_id,create_time FROM dg_audit_process WHERE (business_id,create_time) IN LEFT JOIN (SELECT business_id,process_id,create_time FROM dg_audit_process WHERE (business_id,create_time) IN
(SELECT business_id,MAX(create_time) FROM dg_audit_process GROUP BY business_id)) AS p (SELECT business_id,MAX(create_time) FROM dg_audit_process GROUP BY business_id)) AS p
ON a.id = p.business_id ON a.id = p.business_id
LEFT JOIN crms_company_customer AS cc LEFT JOIN crms_company_customer AS cc
@ -48,15 +48,20 @@
<!-- 业务统计拒绝列表 --> <!-- 业务统计拒绝列表 -->
<select id="listRefuse" parameterType="com.daqing.financial.guarantee.model.request.DgStatisticsRequest" resultType="com.daqing.framework.domain.guarantee.po.DgStatisticsRefusePO"> <select id="listRefuse" parameterType="com.daqing.financial.guarantee.model.request.DgStatisticsRequest" resultType="com.daqing.framework.domain.guarantee.po.DgStatisticsRefusePO">
SELECT c.name AS name,c.phone AS phone,a.presenter_id AS presenter_id,a.apply_amount AS apply_amount,a.apply_time AS apply_time, SELECT c.name AS name,c.phone AS phone,a.presenter_id AS presenter_id,a.apply_amount AS apply_amount,a.apply_time AS apply_time,
a.business_type AS business_type,a.create_time AS create_time,a.business_code AS business_code,p.emp_name AS emp_name, a.business_type AS business_type,a.create_time AS create_time,a.business_code AS business_code,p.process_id AS process_id,
p.status AS status,p.date_time AS date_time,p.remark AS remark p.approver AS refuse_name,p.create_time AS refuse_time,p.audit_opinion AS refuse_opinion
FROM dg_apply_amount_info AS a FROM dg_apply_amount_info AS a
LEFT JOIN dg_audit_process AS p LEFT JOIN (SELECT business_id,process_id,create_time,approver,audit_opinion FROM dg_audit_process WHERE (business_id,create_time) IN
ON a.id = p.apply_amount_info_id (SELECT business_id,MAX(create_time) FROM dg_audit_process GROUP BY business_id)) AS p
ON a.id = p.business_id
LEFT JOIN dg_business_process_status AS ps
ON a.id = ps.business_id
LEFT JOIN crms_company_customer AS cc
ON cc.id = a.company_id
LEFT JOIN crms_customer AS c LEFT JOIN crms_customer AS c
ON a.company_id = c.id ON cc.customer_id = c.id
WHERE c.del_or_not = 0 WHERE c.del_or_not = 0
AND p.status LIKE CONCAT('%',#{sr.status},'%') AND ps.business_status = 3
<if test="sr.codeOrName != null and sr.codeOrName != ''"> <if test="sr.codeOrName != null and sr.codeOrName != ''">
AND (a.business_code LIKE CONCAT('%',#{sr.codeOrName},'%') OR c.name LIKE CONCAT('%',#{sr.codeOrName},'%')) AND (a.business_code LIKE CONCAT('%',#{sr.codeOrName},'%') OR c.name LIKE CONCAT('%',#{sr.codeOrName},'%'))
</if> </if>

@ -1,57 +0,0 @@
package com.daqing.framework.domain.guarantee.po;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
/**
* 业务效率个人
*
* @auther River
* @date 2020/11/11 10:41
*/
@Data
@ToString
public class DgEfficiencyPersonPO implements Serializable {
/**
* id
*/
private Integer id;
/**
* 提单人id
*/
private Integer presenterId;
/**
* 客户名称
*/
private String name;
/**
* 申请日期
*/
private Date createTime;
/**
* 当前审批人
*/
private String empName;
/**
* 任务节点
*/
private String status;
/**
* 完成时间
*/
private Date finishTime;
/**
* 流程状态
*/
private Integer flowStatus;
}

@ -1,57 +0,0 @@
package com.daqing.framework.domain.guarantee.po;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
/**
* 业务效率团队
*
* @auther River
* @date 2020/11/10 11:50
*/
@Data
@ToString
public class DgEfficiencyTeamPO implements Serializable {
/**
* id
*/
private Integer id;
/**
* 提单人id
*/
private Integer presenterId;
/**
* 客户名称
*/
private String name;
/**
* 申请日期
*/
private Date createTime;
/**
* 当前审批人
*/
private String empName;
/**
* 任务节点
*/
private String status;
/**
* 完成时间
*/
private Date finishTime;
/**
* 流程状态
*/
private Integer flowStatus;
}

@ -39,11 +39,6 @@ public class DgStatisticsPO {
*/ */
private String applyTime; private String applyTime;
/**
* 业务id
*/
private Integer businessId;
/** /**
* 业务类型 * 业务类型
*/ */
@ -60,12 +55,12 @@ public class DgStatisticsPO {
private Date createTime; private Date createTime;
/** /**
* 审批角色id * 完成任务节点id
*/ */
private Integer roleId; private Integer processId;
/** /**
* 最新操作时间 * 完成操作时间
*/ */
private Date operationTime; private Date operationTime;
} }

@ -50,27 +50,27 @@ public class DgStatisticsRefusePO implements Serializable {
private String businessCode; private String businessCode;
/** /**
* 创建时间 * 申请时间
*/ */
private Date createTime; private Date createTime;
/** /**
* 拒绝人 * 任务节点id
*/ */
private String empName; private Integer processId;
/** /**
* 节点状态 * 拒绝人
*/ */
private String status; private String refuseName;
/** /**
* 达到时间 * 拒绝时间
*/ */
private Date dateTime; private Date refuseTime;
/** /**
* 拒绝原因 * 拒绝原因
*/ */
private String remark; private String refuseOpinion;
} }

@ -0,0 +1,38 @@
package com.daqing.framework.domain.guarantee.po;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
/**
* 团队效率数据接收类
*
* @auther River
* @date 2020/12/28 10:26
*/
@Data
@ToString
public class DgTeamEfficiencyPO implements Serializable {
/**
* 业务id
*/
private Integer businessId;
/**
* 进程id
*/
private Integer processId;
/**
* 部门ids
*/
private String departmentId;
/**
* 创建时间
*/
private Date createTime;
}
Loading…
Cancel
Save