水运项目基础功能开发
This commit is contained in:
parent
3eeb9cd5d5
commit
99647f642e
|
|
@ -14,7 +14,7 @@ public class CadData {
|
|||
private Integer lineweight;
|
||||
private Double thickness;
|
||||
private Double transparency;
|
||||
|
||||
private String projectId;
|
||||
/**
|
||||
* 起点坐标(适用于 LINE)
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@ public class ModelServiceImpl implements ModelService {
|
|||
List<CadData> cadDataList = model.getSelectedEntities();
|
||||
if (cadDataList != null && !cadDataList.isEmpty()) {
|
||||
for (CadData data : cadDataList) {
|
||||
data.setProjectId(model.getProjectId());
|
||||
projectMapper.insertCadData(data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -141,11 +141,11 @@
|
|||
INSERT INTO cad_data (
|
||||
layer_name, entity_type, color, lineweight,
|
||||
thickness, transparency, start_point, end_point,
|
||||
center_point, radius, points, geometry, created_at
|
||||
center_point, radius, points, geometry, created_at,project_id
|
||||
) VALUES (
|
||||
#{layerName}, #{entityType}, #{color}, #{lineweight},
|
||||
#{thickness}, #{transparency}, #{startPoint}, #{endPoint},
|
||||
#{centerPoint}, #{radius}, #{points}, #{geometry}, #{createdAt}
|
||||
#{centerPoint}, #{radius}, #{points}, #{geometry}, #{createdAt},#{projectId}
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue