文件名从 lxzn-module-dnc/src/main/java/org/jeecg/modules/flow/service/impl/AssignFileStreamServiceImpl.java 修改 |
| | |
| | | package org.jeecg.modules.flow.service.impl; |
| | | package org.jeecg.modules.dncFlow.service.impl; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | |
| | | import org.flowable.task.api.Task; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.modules.flow.entity.ToEquipmentTask; |
| | | import org.jeecg.modules.flow.service.IActivitiDefinitionService; |
| | | import org.jeecg.modules.flow.service.IAssignFileStreamService; |
| | | import org.jeecg.modules.flow.service.IToEquipmentTaskService; |
| | | import org.jeecg.modules.flow.entity.AssignFileStream; |
| | | import org.jeecg.modules.flow.ext.AssignFileStreamExt; |
| | | import org.jeecg.modules.flow.mapper.AssignFileStreamMapper; |
| | | import org.jeecg.modules.flow.request.ApproveBatchRequest; |
| | | import org.jeecg.modules.flow.request.AssignFileRequest; |
| | | import org.jeecg.modules.flow.request.AssignFileStreamQueryRequest; |
| | | import org.jeecg.modules.flow.request.TaskRequest; |
| | | import org.jeecg.modules.dnc.entity.*; |
| | | import org.jeecg.modules.dnc.exception.ExceptionCast; |
| | | import org.jeecg.modules.dnc.ext.NcTxtFilePathInfo; |
| | |
| | | import org.jeecg.modules.dnc.utils.ValidateUtil; |
| | | import org.jeecg.modules.dnc.utils.date.DateUtil; |
| | | import org.jeecg.modules.dnc.utils.file.FileUtilS; |
| | | import org.jeecg.modules.flow.vo.AssignFlowTaskVo; |
| | | import org.jeecg.modules.dncFlow.entity.AssignFileStream; |
| | | import org.jeecg.modules.dncFlow.entity.ToEquipmentTask; |
| | | import org.jeecg.modules.dncFlow.ext.AssignFileStreamExt; |
| | | import org.jeecg.modules.dncFlow.mapper.AssignFileStreamMapper; |
| | | import org.jeecg.modules.dncFlow.request.ApproveBatchRequest; |
| | | import org.jeecg.modules.dncFlow.request.AssignFileRequest; |
| | | import org.jeecg.modules.dncFlow.request.AssignFileStreamQueryRequest; |
| | | import org.jeecg.modules.dncFlow.request.TaskRequest; |
| | | import org.jeecg.modules.dncFlow.service.IAssignFileStreamService; |
| | | import org.jeecg.modules.dncFlow.service.IToEquipmentTaskService; |
| | | import org.jeecg.modules.dncFlow.vo.AssignFlowTaskVo; |
| | | import org.jeecg.modules.flowable.apithird.business.entity.FlowMyBusiness; |
| | | import org.jeecg.modules.flowable.apithird.service.FlowCallBackServiceI; |
| | | import org.jeecg.modules.flowable.apithird.service.FlowCommonService; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.IOException; |
| | | import java.util.*; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | @Service("IAssignFileStreamService") |
| | |
| | | @Autowired |
| | | private IDocFileService docFileService; |
| | | @Autowired |
| | | private IActivitiDefinitionService definitionService; |
| | | @Autowired |
| | | private IDocRelativeService docRelativeService; |
| | | @Autowired |
| | | private ISynchronizedFlagService synchronizedFlagService; |
| | |
| | | @Autowired |
| | | private IFlowTaskService flowTaskService; |
| | | |
| | | @Value("${securedoc.serverIp}") |
| | | private String serverIp; |
| | | @Value("${securedoc.serverPort}") |
| | | private int serverPort; |
| | | @Value("${securedoc.whether}") |
| | | private String whether; |
| | | @Value("${securedoc.localFilePath}") |
| | |
| | | return departIds; |
| | | } |
| | | |
| | | //鑾峰彇澶氫釜閮ㄩ棬鐨勫鎵逛汉 鍘婚噸 |
| | | private List<String> getUserIdList(List<String> departIds) { |
| | | List<String> userIdList = definitionService.getByDepartIds(departIds); |
| | | if (userIdList == null || userIdList.isEmpty()) { |
| | | ExceptionCast.cast(ActivitiCode.ACT_APPROVE_USERS_NONE); |
| | | } |
| | | return userIdList; |
| | | } |
| | | |
| | | //灏佽鏁版嵁 |
| | | private void saveBusinessObject(AssignFileStream stream, String userId) { |