车辆管理列表获取登录人写死值更新
parent
f7e908d3e4
commit
2ebe1810d5
|
@ -0,0 +1,46 @@
|
|||
package com.god.base.server.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.god.base.server.common.domain.Car;
|
||||
import com.god.base.server.mapper.CarMapper;
|
||||
import com.god.base.server.service.CarService;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.common.security.utils.SecurityUtils;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 车辆管理业务层
|
||||
*/
|
||||
@Log4j2
|
||||
@Service
|
||||
public class CarServiceImpl extends ServiceImpl<CarMapper,Car> implements CarService {
|
||||
@Autowired
|
||||
private CarMapper carMapper;
|
||||
|
||||
@Override
|
||||
public R<List<Car>> carList(String userId) {
|
||||
// Long userId1 = SecurityUtils.getUserId();
|
||||
// if (null == userId1){
|
||||
// throw new SecurityException("请先登录");
|
||||
// }
|
||||
int userId1 = 1;
|
||||
List<Car> carList = carMapper.getList(userId1);
|
||||
return R.ok(carList);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改车辆管理信息
|
||||
* @param vinId
|
||||
*/
|
||||
@Override
|
||||
public void updateById(String vinId) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -81,9 +81,64 @@
|
|||
}
|
||||
};
|
||||
}
|
||||
//多边形样式;
|
||||
mouseTool.poltgon({
|
||||
strokeColor:"#1E9FFF",
|
||||
strokeWeight:2,
|
||||
strokeStyle:'dashed',
|
||||
strokeOpacity:1,
|
||||
fillOpacity:1,
|
||||
fillColor:'#1E9FFF',
|
||||
zIndex:50,
|
||||
});
|
||||
//清除覆盖物
|
||||
document.getElementsByName('func');
|
||||
document.getElementById('clear').onclick=function ({
|
||||
map.remove(overlays)
|
||||
overlays = [];
|
||||
})
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
<meta http-equiv="Accept">
|
||||
<meta name="viewport" content="initial-scale=1.0">
|
||||
<style>
|
||||
#container{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="5.html">
|
||||
<script src="Test2.html"></script>
|
||||
<div id="container">
|
||||
<button class="btn" onclick="clearWrite()"></button>
|
||||
<button class="btn" onclick="polyEditor()"></button>
|
||||
</div>
|
||||
<script>
|
||||
var map =new map.AMapUI
|
||||
center:21;
|
||||
viewMode:'3D';
|
||||
var path = [
|
||||
[1241,134513];
|
||||
[13451,13451],
|
||||
[23q45,1234],
|
||||
]
|
||||
var polygon1 = new AMap.Polygon({
|
||||
path:path1,
|
||||
strokeColor:"green",
|
||||
stroleWeight:6
|
||||
,
|
||||
strokeOpacity:0.2,
|
||||
fillOpacity: 0.4,
|
||||
fillColorL20,
|
||||
bubble:true,
|
||||
})
|
||||
map.addAdsorbpolygons([path,polygon1])
|
||||
// ..缩放地图到合适的视野级别
|
||||
ployEditor.addAdsorbpolygons(polygon1)
|
||||
polyEditor.open();
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue