parent
3d35a02d86
commit
7baed70455
7 changed files with 104 additions and 1 deletions
@ -0,0 +1,24 @@ |
|||||||
|
package com.daqing.financial.guarantee.model.response; |
||||||
|
|
||||||
|
import com.alibaba.excel.metadata.BaseRowModel; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.ToString; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
|
||||||
|
@Data |
||||||
|
@ToString |
||||||
|
public class EfficiencyApprovalResponse extends BaseRowModel implements Serializable { |
||||||
|
|
||||||
|
/** |
||||||
|
* 审批数量 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "审批数量") |
||||||
|
private Integer approvalNum; |
||||||
|
/** |
||||||
|
* 审批日期 |
||||||
|
*/ |
||||||
|
@ApiModelProperty(value = "审批日期") |
||||||
|
private Integer createTime2; |
||||||
|
} |
@ -1,14 +1,43 @@ |
|||||||
package com.daqing.financial.guarantee.service.impl; |
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.controller.DgApplyAmountInfoController; |
||||||
|
import com.daqing.financial.guarantee.mapper.DgAuditProcessMapper; |
||||||
import com.daqing.financial.guarantee.mapper.DgEfficiencyMapper; |
import com.daqing.financial.guarantee.mapper.DgEfficiencyMapper; |
||||||
|
import com.daqing.financial.guarantee.model.response.EfficiencyApprovalResponse; |
||||||
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 org.springframework.beans.factory.annotation.Autowired; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
|
||||||
|
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 { |
||||||
|
|
||||||
|
@Autowired |
||||||
|
private DgApplyAmountInfoController dgApplyAmountInfoController; |
||||||
|
@Autowired |
||||||
|
private DgAuditProcessMapper dgAuditProcessMapper; |
||||||
|
/** |
||||||
|
* 查询审批数目的值的数组 |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
@Override |
||||||
|
public String approvalNum() { |
||||||
|
//获取当前用户id
|
||||||
|
String userId = dgApplyAmountInfoController.getUserId(); |
||||||
|
//近十天的日期数组
|
||||||
|
List<String>timeList = dgAuditProcessMapper.selectTenDays(Integer.parseInt(userId)); |
||||||
|
System.out.println("timeList============"+timeList); |
||||||
|
//近十天审批数目的值的数组
|
||||||
|
List<EfficiencyApprovalResponse>approvalList = dgAuditProcessMapper.selectApprovalNum(Integer.parseInt(userId)); |
||||||
|
System.out.println("approvalList==========="+approvalList); |
||||||
|
|
||||||
|
return null; |
||||||
|
} |
||||||
} |
} |
Loading…
Reference in new issue