Commit a2631fa3 authored by fangxinjiang's avatar fangxinjiang

项目档案无岗位更新岗位fxj 2024-04-17

parent 06b07945
...@@ -3611,6 +3611,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T ...@@ -3611,6 +3611,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
// 自动化处理 // 自动化处理
if (CommonConstants.ZERO_STRING.equals(autoFlag)){ if (CommonConstants.ZERO_STRING.equals(autoFlag)){
dis.setAutoFlag(CommonConstants.ZERO_STRING); dis.setAutoFlag(CommonConstants.ZERO_STRING);
socialTask.pushSoldier(dis.getId());
}else { }else {
dis.setAutoFlag(CommonConstants.ONE_STRING); dis.setAutoFlag(CommonConstants.ONE_STRING);
} }
......
...@@ -17,6 +17,7 @@ import com.yifu.cloud.plus.v1.yifu.social.mapper.TSendEkpErrorMapper; ...@@ -17,6 +17,7 @@ import com.yifu.cloud.plus.v1.yifu.social.mapper.TSendEkpErrorMapper;
import com.yifu.cloud.plus.v1.yifu.social.service.TForecastLibraryService; import com.yifu.cloud.plus.v1.yifu.social.service.TForecastLibraryService;
import com.yifu.cloud.plus.v1.yifu.social.service.TIncomeDetailService; import com.yifu.cloud.plus.v1.yifu.social.service.TIncomeDetailService;
import com.yifu.cloud.plus.v1.yifu.social.service.TIncomeService; import com.yifu.cloud.plus.v1.yifu.social.service.TIncomeService;
import com.yifu.cloud.plus.v1.yifu.social.service.TSocialSoldierService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -52,6 +53,9 @@ public class DoSocialTask { ...@@ -52,6 +53,9 @@ public class DoSocialTask {
@Autowired @Autowired
private TSendEkpErrorMapper sendEkpErrorMapper; private TSendEkpErrorMapper sendEkpErrorMapper;
@Autowired
private TSocialSoldierService socialSoldierService;
/** /**
* @Author fxj * @Author fxj
* @Description 异步处理相关信息 * @Description 异步处理相关信息
...@@ -257,4 +261,17 @@ public class DoSocialTask { ...@@ -257,4 +261,17 @@ public class DoSocialTask {
// 批量办理成功 收入不异步推送 // 批量办理成功 收入不异步推送
incomeService.saveDetail(detail,false); incomeService.saveDetail(detail,false);
} }
/**
* @Author fxj
* @Description 单个或批量审核 异步调用自动化派单任务
* @Date 11:22 2024/5/13
* @Param
* @return
**/
@Async
public void pushSoldier(String dispatchId){
List<String> dispatchIdList = new ArrayList<>();
dispatchIdList.add(dispatchId);
socialSoldierService.pushSoldier(dispatchIdList);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment