优化抄送相关问题

master
chen 4 years ago
parent ba415c136c
commit c4691be669
  1. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgCopyUserController.java
  2. 5
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/controller/DgEfficiencyController.java
  3. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/mapper/DgCopyUserMapper.java
  4. 2
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/IDgCopyUserService.java
  5. 9
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgCopyForServiceImpl.java
  6. 6
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgCopyUserServiceImpl.java
  7. 20
      dq-financial-guarantee/src/main/resources/mapper/guarantee/DgCopyUserMapper.xml

@ -43,7 +43,7 @@ public class DgCopyUserController {
@PostMapping("/queryCopyForMe")
public R queryCopyForMe(@RequestBody CopyForMeRequest copyForMeRequest){
List<CopyForMeResponse> copyForMeList = copyUserService.queryCopyForMe(copyForMeRequest);
return R.ok().data("copyForMeList",copyForMeList).data("total",copyForMeList.size());
return R.ok().data("copyForMeList",copyForMeList).data("total",copyUserService.queryTotal(copyForMeRequest));
}
@Log(detail = "导出抄送我的列表",level = 4,operationUnit = OperationUnit.COPYFOR,operationType = OperationType.SELECT)

@ -206,10 +206,9 @@ public class DgEfficiencyController {
String userId = DgApplyAmountInfoController.getUserId();
CopyForMeRequest copyForMeRequest = new CopyForMeRequest();
copyForMeRequest.setUserId(Integer.parseInt(userId));
List<CopyForMeResponse> copyForMeList = copyUserService.queryCopyForMe(copyForMeRequest);
int size = copyForMeList.size();
Integer total = copyUserService.queryTotal(copyForMeRequest);
NumResponse numResponse = new NumResponse();
numResponse.setCopySendNum(size);
numResponse.setCopySendNum(total);
//转换任务节点,并统计操作状态个数
responseList.forEach(personalEfficiencyListResponse -> {
//耗时为空,默认为0

@ -21,4 +21,6 @@ import java.util.List;
public interface DgCopyUserMapper extends BaseMapper<DgCopyUser> {
List<CopyForMeResponse> selectCopyForMe(CopyForMeRequest copyForMeRequest);
Integer selectCopyForMeTotal(CopyForMeRequest copyForMeRequest);
}

@ -22,5 +22,7 @@ public interface IDgCopyUserService extends IService<DgCopyUser> {
List<CopyForMeResponse> queryCopyForMe(CopyForMeRequest copyForMeRequest);
Integer queryTotal(CopyForMeRequest copyForMeRequest);
void exportCopyForMe(HttpServletResponse response) throws IOException;
}

@ -1,26 +1,19 @@
package com.daqing.financial.guarantee.service.impl;
import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.daqing.financial.guarantee.mapper.DgCopyForMapper;
import com.daqing.financial.guarantee.mapper.DgCopyUserMapper;
import com.daqing.financial.guarantee.mapper.DgProcessUserMapper;
import com.daqing.financial.guarantee.service.IDgCopyForService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.daqing.financial.guarantee.service.IDgCopyUserService;
import com.daqing.financial.guarantee.service.IDgProcessUserService;
import com.daqing.financial.guarantee.util.ImgUtil;
import com.daqing.framework.domain.guarantee.DgCopyFor;
import com.daqing.framework.domain.guarantee.DgCopyUser;
import com.daqing.framework.domain.guarantee.DgProcessUser;
import com.daqing.framework.model.response.PromptSuccess;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.io.File;
import java.io.IOException;
import java.util.List;

@ -119,12 +119,16 @@ public class DgCopyUserServiceImpl extends ServiceImpl<DgCopyUserMapper, DgCopyU
copyForMeResponse.setTaskNode(converter);
}
});
}
return copyForMeResponseList;
}
@Override
public Integer queryTotal(CopyForMeRequest copyForMeRequest) {
return baseMapper.selectCopyForMeTotal(copyForMeRequest);
}
/**
* 获取当前登录用户信息
*/

@ -57,4 +57,24 @@
limit #{page},#{size}
</select>
<select id="selectCopyForMeTotal" parameterType="com.daqing.financial.guarantee.model.request.CopyForMeRequest"
resultType="integer">
SELECT count(1)
FROM
dg_copy_user cu
JOIN dg_copy_for cf ON cu.copy_id = cf.id
LEFT JOIN dg_apply_amount_info aai ON cf.business_id = aai.id
LEFT JOIN crms_company_customer ccc ON aai.company_id = ccc.id
left join dg_loan_committee_consider lcc on cf.business_id = lcc.business_id
LEFT JOIN crms_customer cc ON ccc.customer_id = cc.id
LEFT JOIN dg_business_process_status bps ON bps.business_id = aai.id
WHERE cu.user_id = #{userId}
<if test="startTime != null and endTime != ''">
AND cf.update_time BETWEEN #{startTime} and #{endTime}
</if>
<if test="clientName != null and clientName != ''">
AND cc.name LIKE '%' #{clientName} '%'
</if>
</select>
</mapper>

Loading…
Cancel
Save