| | |
| | | import com.lf.server.helper.RestHelper; |
| | | import com.lf.server.helper.StringHelper; |
| | | import com.lf.server.helper.WebHelper; |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | |
| | | @Value("${sys.fmeToken}") |
| | | private String fmeToken; |
| | | |
| | | private final static Log log = LogFactory.getLog(FmeService.class); |
| | | |
| | | /** |
| | | * 获取任务状态 |
| | |
| | | * d.服务申请 |
| | | */ |
| | | public void serverApply(String id, Integer pubid, HttpServletRequest req) { |
| | | String url = getUrl("resource/res/request", req) + "&resourceid=" + id; |
| | | try { |
| | | String url = getUrl("resource/res/request", req) + "&resourceid=" + id; |
| | | |
| | | RegisterEntity entity = new RegisterEntity(pubid); |
| | | RegisterEntity entity = new RegisterEntity(pubid); |
| | | |
| | | RestHelper.postForRest(url, entity); |
| | | RestHelper.postForRest(url, entity); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | /** |
| | | * f.计算面积 |
| | | */ |
| | | public String calcArea(String sjfl, String id, String wjlj, HttpServletRequest req) { |
| | | String url = getUrl("datax/task/run/数据占地面积计算", req); |
| | | public String calcArea(String sjfl, String id, String wjlj) { |
| | | String url = getUrl("datax/task/run/数据占地面积计算"); |
| | | |
| | | List<NameValueEntity> list = new ArrayList<>(); |
| | | list.add(new NameValueEntity("_name", String.format("%s_%s", "数据占地面积计算", StringHelper.YMDHMS2_FORMAT.format(new Date())))); |