| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | import java.util.*; |
| | | |
| | | @Service |
| | | public class ProcessStreamServiceImpl extends ServiceImpl<ProcessStreamMapper, ProcessStream> implements IProcessStreamService { |
| | |
| | | ProductMix productMix; |
| | | if (stream.getPsvId() != null) { |
| | | productMix = new ProductMix(Long.parseLong(stream.getProcessId()),Long.parseLong(stream.getPsvId()) |
| | | ,stream.getProcessName(),stream.getProcessCode(),5); |
| | | ,stream.getProcessName(),stream.getProcessCode(),5,new Date()); |
| | | }else { |
| | | productMix = new ProductMix(Long.parseLong(stream.getProcessId()),Long.parseLong(stream.getComponentId()) |
| | | ,stream.getProcessName(),stream.getProcessCode(),5); |
| | | ,stream.getProcessName(),stream.getProcessCode(),5,new Date()); |
| | | } |
| | | productMixService.save(productMix); |
| | | //添加权限验证 |
| | |
| | | permissionStream.setUserId(userId); |
| | | permissionStream.setBusinessId(stream.getProcessId()); |
| | | permissionStream.setBusinessType("5"); |
| | | return permissionStreamNewService.save(permissionStream); |
| | | return permissionStreamNewService.addPermissionStreamNew(permissionStream); |
| | | } |
| | | |
| | | @Override |