| | |
| | | import com.moon.server.entity.all.ResponseMsg; |
| | | import com.moon.server.entity.all.StaticData; |
| | | import com.moon.server.entity.ctrl.PubEntity; |
| | | import com.moon.server.entity.ctrl.RegisterEntity; |
| | | import com.moon.server.entity.data.MetaEntity; |
| | | import com.moon.server.entity.data.PublishEntity; |
| | | import com.moon.server.entity.sys.UserEntity; |
| | | import com.moon.server.helper.PathHelper; |
| | | import com.moon.server.helper.RestHelper; |
| | | import com.moon.server.helper.StringHelper; |
| | |
| | | PublishMapper publishMapper; |
| | | |
| | | @Resource |
| | | FmeService fmeService; |
| | | |
| | | @Resource |
| | | PathHelper pathHelper; |
| | | |
| | | @Resource |
| | | TokenService tokenService; |
| | | |
| | | private final static Log log = LogFactory.getLog(PublishService.class); |
| | | |
| | |
| | | String cmd = String.format("cmd /c rd \"%s\" /s /q", path); |
| | | WebHelper.exec(cmd); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除发布文件 |
| | | */ |
| | | public void deleteFiles(List<Integer> ids, HttpServletRequest req) { |
| | | PubEntity entity = new PubEntity(); |
| | | entity.setIds(ids); |
| | | entity.setDircode("00"); |
| | | |
| | | UserEntity ue = tokenService.getCurrentUser(req); |
| | | if (ue != null) { |
| | | entity.setUserId(ue.getId()); |
| | | entity.setToken(WebHelper.getToken(req)); |
| | | } |
| | | |
| | | long rows = postForPub(entity, "/Convert/DeleteFiles"); |
| | | } |
| | | |
| | | /** |