水运项目基础功能开发

This commit is contained in:
lizhenhua 2025-07-23 13:45:49 +08:00
parent 3eeb9cd5d5
commit 99647f642e
3 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,7 @@ public class CadData {
private Integer lineweight;
private Double thickness;
private Double transparency;
private String projectId;
/**
* 起点坐标适用于 LINE
*/

View File

@ -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);
}
}

View File

@ -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>