| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.LinkedHashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | @Service |
| | |
| | | if (param.getDkmj()!=null){ |
| | | queryWrapper.eq(LotInfo::getDkmj,param.getDkmj()); |
| | | } |
| | | if (param.getIsPlan() != null) { |
| | | queryWrapper.eq(LotInfo::getIsPlan, param.getIsPlan()); |
| | | if (param.getIsPush() != null) { |
| | | queryWrapper.eq(LotInfo::getIsPush, param.getIsPush()); |
| | | } |
| | | |
| | | // 执行分页查询 |
| | |
| | | .eq(MediaFileEntity::getWorkspaceId, workspaceId) |
| | | .eq(MediaFileEntity::getExamine,1)); |
| | | } |
| | | public List<MediaFileEntity> listPohto(String dkbh) { |
| | | return fileMapper.selectList(new LambdaQueryWrapper<MediaFileEntity>().like(MediaFileEntity::getFileName, "%" + dkbh + "%") |
| | | .eq(MediaFileEntity::getExamine,1)); |
| | | } |
| | | public LotInfo getLotinfo(String dkbh, String workspaceId) { |
| | | return mapper.selectOne(new LambdaQueryWrapper<LotInfo>().eq(LotInfo::getDkbh, dkbh) |
| | | .eq(LotInfo::getWorkspaceId, workspaceId)); |
| | | } |
| | | |
| | | public LotInfo getLotinfo(String dkbh) { |
| | | return mapper.selectOne(new LambdaQueryWrapper<LotInfo>().eq(LotInfo::getDkbh, dkbh)); |
| | | } |
| | | public void patchesPushed(String taskId, String dkbh, String workspaceId) { |
| | | LambdaUpdateWrapper<LotInfo> updateWrapper = new LambdaUpdateWrapper<>(); |
| | | updateWrapper.set(LotInfo::getIsPush, 1) |
| | | .eq(LotInfo::getWorkspaceId, workspaceId) |
| | | .eq(LotInfo::getDkbh, dkbh) |
| | | .eq(LotInfo::getTaskId, taskId); |
| | | mapper.update(null, updateWrapper); |
| | | } |
| | | public void patchesPushed(String taskId, String dkbh) { |
| | | LambdaUpdateWrapper<LotInfo> updateWrapper = new LambdaUpdateWrapper<>(); |
| | | updateWrapper.set(LotInfo::getIsPush, 1) |
| | | .eq(LotInfo::getDkbh, dkbh) |
| | | .eq(LotInfo::getTaskId, taskId); |
| | | mapper.update(null, updateWrapper); |
| | |
| | | queryWrapper.in(LotInfo::getId, ids); |
| | | return mapper.selectList(queryWrapper); |
| | | } |
| | | public List<LotInfo> listLotinfo() { |
| | | return mapper.selectList(null); |
| | | public List<LotInfo> listLotinfo(String workspaceId) { |
| | | return mapper.selectList(new LambdaQueryWrapper<LotInfo>().eq(LotInfo::getWorkspaceId,workspaceId)); |
| | | } |
| | | @Override |
| | | public LotInfo getPatchesFromId(String patchesId){ |
| | |
| | | mapper.insert(list.get(i)); |
| | | } |
| | | } |
| | | public List<LotInfo> getLotInfosByIDs(String idsStr) { |
| | | List<String> idList = Arrays.asList(idsStr.split(",")); |
| | | return mapper.selectBatchIds(idList); |
| | | } |
| | | } |