| | |
| | | import com.moon.server.entity.all.StaticData; |
| | | import com.moon.server.entity.ctrl.PubEntity; |
| | | import com.moon.server.entity.data.MetaEntity; |
| | | import com.moon.server.entity.data.MetaPubEntity; |
| | | import com.moon.server.entity.data.PublishEntity; |
| | | import com.moon.server.helper.RestHelper; |
| | | import com.moon.server.helper.StringHelper; |
| | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 数据发布 |
| | | * @author WWW |
| | | */ |
| | | @Service |
| | | @SuppressWarnings("ALL") |
| | | public class PublishService implements PublishMapper { |
| | | @Value("${sys.exportServer}") |
| | | private String exportServer; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<MetaEntity> selectMetasByPubid(Integer pubid) { |
| | | return publishMapper.selectMetasByPubid(pubid); |
| | | } |
| | | |
| | | @Override |
| | | public List<PublishEntity> selectRaster() { |
| | | return publishMapper.selectRaster(); |
| | | } |
| | | |
| | | @Override |
| | | public PublishEntity selectByLayerId(Integer layerId) { |
| | | return publishMapper.selectByLayerId(layerId); |
| | | } |
| | | |
| | | @Override |
| | | public List<String> selectCodesForDir(String dircode, Integer isDom) { |
| | | return publishMapper.selectCodesForDir(dircode, isDom); |
| | | } |
| | |
| | | @Override |
| | | public Integer insertPubDown(Integer pubid, Integer downid, Integer createUser) { |
| | | return publishMapper.insertPubDown(pubid, downid, createUser); |
| | | } |
| | | |
| | | @Override |
| | | public Integer insertMetaPub(MetaPubEntity mp) { |
| | | return publishMapper.insertMetaPub(mp); |
| | | } |
| | | |
| | | @Override |
| | |
| | | return publishMapper.selectMetasByPage(depcode, dircode, verid, types, name, limit, offset); |
| | | } |
| | | |
| | | /** |
| | | * 发送发布请求 |
| | | */ |
| | | public long postForPub(PubEntity entity, String method, HttpServletRequest req) { |
| | | Map<String, Object> map = getMapData(entity); |
| | | |
| | |
| | | return msg.getCount(); |
| | | } |
| | | |
| | | /** |
| | | * 获取Map数据 |
| | | */ |
| | | private Map<String, Object> getMapData(PubEntity entity) { |
| | | Map<String, Object> map = new HashMap<>(3); |
| | | |
| | |
| | | return map; |
| | | } |
| | | |
| | | /** |
| | | * 发送发布请求 |
| | | */ |
| | | public long postForPub(PubEntity entity, String method) { |
| | | Map<String, Object> map = getMapData(entity); |
| | | |