| | |
| | | import com.whyc.mapper.UserWorkMapper; |
| | | import com.whyc.mapper.WorkAlarmMapper; |
| | | import com.whyc.pojo.UserWork; |
| | | import com.whyc.util.ActionUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.system.ApplicationHome; |
| | | import org.springframework.core.env.Environment; |
| | |
| | | |
| | | |
| | | public Response deleteAlarmFile(String fileNames, int stationId, String afterOrBefore) { |
| | | //过滤特殊字符,避免路径遍历攻击 |
| | | afterOrBefore = ActionUtil.filterFileName(afterOrBefore); |
| | | String names[] = fileNames.split(","); |
| | | String fileDirName = ""; |
| | | int configType = Integer.parseInt(environment.getProperty("configFile.type")); |