| | |
| | | |
| | | public Response searchByCondition(UserWork userWork){ |
| | | QueryWrapper<UserWork> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq(userWork.getUserId()!=null||userWork.getUserId()!=0,"userId",userWork.getUserId()); |
| | | queryWrapper.eq(userWork.getManagerId()!=null||userWork.getManagerId()!=0,"managerId",userWork.getManagerId()); |
| | | queryWrapper.eq(userWork.getWorkId()!=null||userWork.getWorkId()!=0,"workId",userWork.getWorkId()); |
| | | queryWrapper.eq(userWork.getUserId() != null && userWork.getUserId() != 0, "userId", userWork.getUserId()); |
| | | queryWrapper.eq(userWork.getManagerId() != null && userWork.getManagerId() != 0, "managerId", userWork.getManagerId()); |
| | | queryWrapper.eq(userWork.getWorkId() != null && userWork.getWorkId() != 0, "workId", userWork.getWorkId()); |
| | | List<UserWork> list = mapper.selectList(queryWrapper); |
| | | return new Response().set(1,list,"查询成功"); |
| | | return new Response().set(1, list, "查询成功"); |
| | | } |
| | | |
| | | |
| | |
| | | //打包版 |
| | | fileDirName = jarFile.toString(); |
| | | } |
| | | String root=fileDirName+"/stationsrc/alarm/"+ param.getStationId() + "/" + param.getAfterOrBefore() + "/"; |
| | | String root=fileDirName+"/fg_photo/stationsrc/alarm/"+ param.getStationId() + "/" + param.getAfterOrBefore() + "/"; |
| | | List<String> filePathList = new ArrayList<>(); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss"); |
| | | boolean isSuccess = false; |
| | |
| | | //打包版 |
| | | fileDirName = jarFile.toString(); |
| | | } |
| | | String root = fileDirName + "/stationsrc/alarm/" + stationId + File.separator + afterOrBefore + File.separator; |
| | | String root = fileDirName + "/fg_photo/stationsrc/alarm/" + stationId + File.separator + afterOrBefore + File.separator; |
| | | for (String name : names) { |
| | | String targetFilePath = root + name; |
| | | File file = new File(targetFilePath); |