Showing
2 changed files
with
13 additions
and
5 deletions
| ... | ... | @@ -7,6 +7,7 @@ import com.lframework.starter.mq.core.utils.ExportTaskUtil; |
| 7 | 7 | import com.lframework.starter.web.core.annotations.security.HasPermission; |
| 8 | 8 | import com.lframework.starter.web.core.components.security.SecurityUtil; |
| 9 | 9 | import com.lframework.starter.web.core.controller.DefaultBaseController; |
| 10 | +import com.lframework.starter.web.core.utils.JsonUtil; | |
| 10 | 11 | import com.lframework.starter.web.inner.entity.SysUser; |
| 11 | 12 | import com.lframework.starter.web.inner.service.system.SysUserService; |
| 12 | 13 | import com.lframework.xingyun.basedata.entity.*; |
| ... | ... | @@ -30,6 +31,7 @@ import com.lframework.starter.common.exceptions.impl.DefaultClientException; |
| 30 | 31 | import io.swagger.annotations.ApiOperation; |
| 31 | 32 | import com.lframework.starter.common.utils.CollectionUtil; |
| 32 | 33 | import io.swagger.annotations.Api; |
| 34 | +import lombok.extern.slf4j.Slf4j; | |
| 33 | 35 | import org.apache.commons.collections4.CollectionUtils; |
| 34 | 36 | import org.apache.commons.lang3.StringUtils; |
| 35 | 37 | import org.springframework.web.bind.annotation.DeleteMapping; |
| ... | ... | @@ -56,6 +58,7 @@ import java.util.stream.Collectors; |
| 56 | 58 | @Validated |
| 57 | 59 | @RestController |
| 58 | 60 | @RequestMapping("/customer/develop") |
| 61 | +@Slf4j | |
| 59 | 62 | public class CustomerDevelopPlanController extends DefaultBaseController { |
| 60 | 63 | |
| 61 | 64 | |
| ... | ... | @@ -88,6 +91,7 @@ public class CustomerDevelopPlanController extends DefaultBaseController { |
| 88 | 91 | if (!CollectionUtil.isEmpty(dataList)) { |
| 89 | 92 | results = this.packCustomerDevelopData(dataList); |
| 90 | 93 | } |
| 94 | + log.info("====================== CustomerDevelopPlanController.query results:{}", JsonUtil.toJsonString(results)); | |
| 91 | 95 | return InvokeResultBuilder.success(PageResultUtil.rebuild(pageResult, results)); |
| 92 | 96 | } |
| 93 | 97 | |
| ... | ... | @@ -220,9 +224,12 @@ public class CustomerDevelopPlanController extends DefaultBaseController { |
| 220 | 224 | if (CollectionUtils.isNotEmpty(officeList)) { |
| 221 | 225 | officeMap = officeList.stream().collect(Collectors.toMap(Office::getId, Function.identity())); |
| 222 | 226 | } |
| 227 | + log.info("=================== packCustomerDevelopData SecurityUtil.getCurrentUser.getId =================={}" | |
| 228 | + , JsonUtil.toJsonString(SecurityUtil.getCurrentUser().getId())); | |
| 223 | 229 | // 获取流程任务数据 |
| 224 | 230 | List<FlowTaskDto> flowTaskList = flowTaskWrapperMapper.queryTodoList(new QueryTodoTaskListVo() |
| 225 | 231 | , SecurityUtil.getCurrentUser().getId()); |
| 232 | + log.info("=================== packCustomerDevelopData flowTaskList =================={}", JsonUtil.toJsonString(flowTaskList)); | |
| 226 | 233 | Map<String, FlowTaskDto> flowTaskMap = new HashMap<>(); |
| 227 | 234 | if (CollectionUtils.isNotEmpty(flowTaskList)) { |
| 228 | 235 | flowTaskMap = flowTaskList.stream().collect(Collectors.toMap(FlowTaskDto::getBusinessId, Function.identity())); | ... | ... |
xingyun-sc/src/main/java/com/lframework/xingyun/sc/impl/customer/CustomerDevelopPlanServiceImpl.java
| ... | ... | @@ -3,11 +3,7 @@ package com.lframework.xingyun.sc.impl.customer; |
| 3 | 3 | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| 4 | 4 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| 5 | 5 | import com.github.pagehelper.PageInfo; |
| 6 | -import com.lframework.starter.bpm.dto.FlowInstanceExtDto; | |
| 7 | 6 | import com.lframework.starter.bpm.dto.FlowTaskDto; |
| 8 | -import com.lframework.starter.bpm.entity.FlowDefinitionWrapper; | |
| 9 | -import com.lframework.starter.bpm.enums.FlowDefinitionExtBizType; | |
| 10 | -import com.lframework.starter.bpm.enums.FlowDefinitionIsPublish; | |
| 11 | 7 | import com.lframework.starter.bpm.mappers.FlowTaskWrapperMapper; |
| 12 | 8 | import com.lframework.starter.bpm.service.FlowDefinitionWrapperService; |
| 13 | 9 | import com.lframework.starter.bpm.service.FlowInstanceWrapperService; |
| ... | ... | @@ -24,9 +20,9 @@ import com.lframework.starter.web.core.annotations.oplog.OpLog; |
| 24 | 20 | import com.lframework.starter.common.utils.Assert; |
| 25 | 21 | import com.lframework.starter.web.inner.components.oplog.OtherOpLogType; |
| 26 | 22 | import com.lframework.xingyun.sc.enums.CustomerDevelopStatus; |
| 23 | +import lombok.extern.slf4j.Slf4j; | |
| 27 | 24 | import org.apache.commons.collections4.CollectionUtils; |
| 28 | 25 | import org.apache.commons.lang3.StringUtils; |
| 29 | -import org.dromara.warm.flow.core.dto.FlowParams; | |
| 30 | 26 | import org.dromara.warm.flow.core.entity.Instance; |
| 31 | 27 | import org.dromara.warm.flow.core.service.InsService; |
| 32 | 28 | import org.springframework.transaction.annotation.Transactional; |
| ... | ... | @@ -42,7 +38,9 @@ import java.util.ArrayList; |
| 42 | 38 | import java.util.List; |
| 43 | 39 | import java.util.stream.Collectors; |
| 44 | 40 | |
| 41 | + | |
| 45 | 42 | @Service |
| 43 | +@Slf4j | |
| 46 | 44 | public class CustomerDevelopPlanServiceImpl extends BaseMpServiceImpl<CustomerDevelopPlanMapper, CustomerDevelopPlan> implements CustomerDevelopPlanService { |
| 47 | 45 | |
| 48 | 46 | |
| ... | ... | @@ -89,8 +87,11 @@ public class CustomerDevelopPlanServiceImpl extends BaseMpServiceImpl<CustomerDe |
| 89 | 87 | if ("COMPLETED".equals(todoType)) { |
| 90 | 88 | vo.setStatus(CustomerDevelopStatus.PASS.getCode()); |
| 91 | 89 | } else if ("WAIT".equals(todoType)) { |
| 90 | + log.info("=================== CustomerDevelopPlanService.query SecurityUtil.getCurrentUser.getId =================={}" | |
| 91 | + , JsonUtil.toJsonString(SecurityUtil.getCurrentUser().getId())); | |
| 92 | 92 | // 获取当前人员的待办任务数据 |
| 93 | 93 | List<FlowTaskDto> flowTaskList = flowTaskWrapperMapper.queryTodoList(new QueryTodoTaskListVo(), SecurityUtil.getCurrentUser().getId()); |
| 94 | + log.info("=================== CustomerDevelopPlanService.query flowTaskList =================={}", JsonUtil.toJsonString(flowTaskList)); | |
| 94 | 95 | if (CollectionUtils.isEmpty(flowTaskList)) { |
| 95 | 96 | return new PageResult<>(); |
| 96 | 97 | } | ... | ... |