瀏覽代碼

FEM 求解

huangxingxing 2 年之前
父節點
當前提交
666678335b

+ 1 - 0
definitionsrc/returncode/returncode-business.properties

@@ -89,3 +89,4 @@ EB4000011 = \u914D\u7F6EID\u9519\u8BEF\uFF01
 EB4000012 = \u6CA1\u6709grid\u6587\u4EF6\uFF01
 EB4000012 = \u6CA1\u6709grid\u6587\u4EF6\uFF01
 EB4000013 = vector\u6E32\u67D3\u53C2\u6570\u5B58\u5728\u9519\u8BEF\uFF01
 EB4000013 = vector\u6E32\u67D3\u53C2\u6570\u5B58\u5728\u9519\u8BEF\uFF01
 EB4000014 = \u5207\u7247Lst\u6E32\u67D3\u53C2\u6570\u5B58\u5728\u9519\u8BEF\uFF01
 EB4000014 = \u5207\u7247Lst\u6E32\u67D3\u53C2\u6570\u5B58\u5728\u9519\u8BEF\uFF01
+EB4000015 = \u8BF7\u4E0A\u4F20\u6587\u4EF6\uFF01

+ 1 - 0
definitionsrc/returncode/returncode-business_zh_CN.properties

@@ -89,3 +89,4 @@ EB4000011 = \u914D\u7F6EID\u9519\u8BEF\uFF01
 EB4000012 = \u6CA1\u6709grid\u6587\u4EF6\uFF01
 EB4000012 = \u6CA1\u6709grid\u6587\u4EF6\uFF01
 EB4000013 = vector\u6E32\u67D3\u53C2\u6570\u5B58\u5728\u9519\u8BEF\uFF01
 EB4000013 = vector\u6E32\u67D3\u53C2\u6570\u5B58\u5728\u9519\u8BEF\uFF01
 EB4000014 = \u5207\u7247Lst\u6E32\u67D3\u53C2\u6570\u5B58\u5728\u9519\u8BEF\uFF01
 EB4000014 = \u5207\u7247Lst\u6E32\u67D3\u53C2\u6570\u5B58\u5728\u9519\u8BEF\uFF01
+EB4000015 = \u8BF7\u4E0A\u4F20\u6587\u4EF6\uFF01

+ 36 - 40
src/main/java/com/miniframe/aftercure/SliceMsg.java

@@ -13,12 +13,12 @@ public class SliceMsg<main> {
     private String type;//line contour
     private String type;//line contour
     private String variableName; //标量
     private String variableName; //标量
     private int level;
     private int level;
-    private double normalx;
-    private double normaly;
-    private double normalz;
-    private double positionx;
-    private double positiony;
-    private double positionz;
+    private double normal_x;
+    private double normal_y;
+    private double normal_z;
+    private double position_x;
+    private double position_y;
+    private double position_z;
 
 
     private Boolean scalar_value_state;
     private Boolean scalar_value_state;
     private Boolean solid_state;
     private Boolean solid_state;
@@ -30,15 +30,6 @@ public class SliceMsg<main> {
     private String zrange ;//0,0
     private String zrange ;//0,0
     private String areaRange; //区域范围
     private String areaRange; //区域范围
 
 
-
-    public String getAreaRange() {
-        return areaRange;
-    }
-
-    public void setAreaRange(String areaRange) {
-        this.areaRange = areaRange;
-    }
-
     public int getIndex() {
     public int getIndex() {
         return index;
         return index;
     }
     }
@@ -71,52 +62,52 @@ public class SliceMsg<main> {
         this.level = level;
         this.level = level;
     }
     }
 
 
-    public double getNormalx() {
-        return normalx;
+    public double getNormal_x() {
+        return normal_x;
     }
     }
 
 
-    public void setNormalx(double normalx) {
-        this.normalx = normalx;
+    public void setNormal_x(double normal_x) {
+        this.normal_x = normal_x;
     }
     }
 
 
-    public double getNormaly() {
-        return normaly;
+    public double getNormal_y() {
+        return normal_y;
     }
     }
 
 
-    public void setNormaly(double normaly) {
-        this.normaly = normaly;
+    public void setNormal_y(double normal_y) {
+        this.normal_y = normal_y;
     }
     }
 
 
-    public double getNormalz() {
-        return normalz;
+    public double getNormal_z() {
+        return normal_z;
     }
     }
 
 
-    public void setNormalz(double normalz) {
-        this.normalz = normalz;
+    public void setNormal_z(double normal_z) {
+        this.normal_z = normal_z;
     }
     }
 
 
-    public double getPositionx() {
-        return positionx;
+    public double getPosition_x() {
+        return position_x;
     }
     }
 
 
-    public void setPositionx(double positionx) {
-        this.positionx = positionx;
+    public void setPosition_x(double position_x) {
+        this.position_x = position_x;
     }
     }
 
 
-    public double getPositiony() {
-        return positiony;
+    public double getPosition_y() {
+        return position_y;
     }
     }
 
 
-    public void setPositiony(double positiony) {
-        this.positiony = positiony;
+    public void setPosition_y(double position_y) {
+        this.position_y = position_y;
     }
     }
 
 
-    public double getPositionz() {
-        return positionz;
+    public double getPosition_z() {
+        return position_z;
     }
     }
 
 
-    public void setPositionz(double positionz) {
-        this.positionz = positionz;
+    public void setPosition_z(double position_z) {
+        this.position_z = position_z;
     }
     }
 
 
     public Boolean getScalar_value_state() {
     public Boolean getScalar_value_state() {
@@ -175,6 +166,11 @@ public class SliceMsg<main> {
         this.zrange = zrange;
         this.zrange = zrange;
     }
     }
 
 
+    public String getAreaRange() {
+        return areaRange;
+    }
 
 
-
+    public void setAreaRange(String areaRange) {
+        this.areaRange = areaRange;
+    }
 }
 }

+ 4 - 4
src/main/java/com/miniframe/bisiness/system/AFT001Service.java

@@ -69,13 +69,13 @@ public class AFT001Service extends AFT001BaseModel implements ExecProcessFlow {
 				sc.andPidEqualTo(proId);
 				sc.andPidEqualTo(proId);
 				List<AdiModeling> modelings =modelingMapper.selectByExample(sb);
 				List<AdiModeling> modelings =modelingMapper.selectByExample(sb);
 				if(modelings.isEmpty()){
 				if(modelings.isEmpty()){
-					throw new BusinessException("EB4000008");
+					throw new BusinessException("EB4000015");
 				}else{
 				}else{
 					AdiModeling modeling = modelings.get(0);
 					AdiModeling modeling = modelings.get(0);
 					SysFileMapper fileMapper = UtilTools.getBean(SysFileMapper.class);
 					SysFileMapper fileMapper = UtilTools.getBean(SysFileMapper.class);
 					SysFile file =fileMapper.selectByPrimaryKey(modeling.getGridFile());
 					SysFile file =fileMapper.selectByPrimaryKey(modeling.getGridFile());
 					if(file==null){
 					if(file==null){
-						throw new BusinessException("EB4000012");
+						throw new BusinessException("EB4000015");
 					}
 					}
 					JSONObject obj  = new JSONObject();
 					JSONObject obj  = new JSONObject();
 					obj.put("filePath",XIFileUtils.getRootPathStr()+ MFConstant.separator+file.getFilepath());
 					obj.put("filePath",XIFileUtils.getRootPathStr()+ MFConstant.separator+file.getFilepath());
@@ -89,13 +89,13 @@ public class AFT001Service extends AFT001BaseModel implements ExecProcessFlow {
 				sc.andPidEqualTo(proId);
 				sc.andPidEqualTo(proId);
 				List<AdiModeling> modelings =modelingMapper.selectByExample(sb);
 				List<AdiModeling> modelings =modelingMapper.selectByExample(sb);
 				if(modelings.isEmpty()){
 				if(modelings.isEmpty()){
-					throw new BusinessException("EB4000008");
+					throw new BusinessException("EB4000015");
 				}else{
 				}else{
 					AdiModeling modeling = modelings.get(0);
 					AdiModeling modeling = modelings.get(0);
 					SysFileMapper fileMapper = UtilTools.getBean(SysFileMapper.class);
 					SysFileMapper fileMapper = UtilTools.getBean(SysFileMapper.class);
 					SysFile file =fileMapper.selectByPrimaryKey(modeling.getVtkFile());
 					SysFile file =fileMapper.selectByPrimaryKey(modeling.getVtkFile());
 					if(file==null){
 					if(file==null){
-						throw new BusinessException("EB4000012");
+						throw new BusinessException("EB4000015");
 					}
 					}
 					JSONObject obj  = new JSONObject();
 					JSONObject obj  = new JSONObject();
 					obj.put("filePath",XIFileUtils.getRootPathStr()+ MFConstant.separator+file.getFilepath());
 					obj.put("filePath",XIFileUtils.getRootPathStr()+ MFConstant.separator+file.getFilepath());

+ 7 - 7
src/test/java/com/miniframe/FileMain.java

@@ -83,14 +83,14 @@ public class FileMain {
         SliceMsg  b= new SliceMsg();
         SliceMsg  b= new SliceMsg();
         b.setIndex(id);
         b.setIndex(id);
         b.setLevel(10);
         b.setLevel(10);
-        b.setNormalx(12.0);
-        b.setNormaly(2.0);
-        b.setNormalz(3.0);
-        b.setPositionx(0.23);
+        b.setNormal_x(12.0);
+        b.setNormal_y(2.0);
+        b.setNormal_z(3.0);
+        b.setPosition_x(0.23);
 //		b.setAreaRange("(0,0)");
 //		b.setAreaRange("(0,0)");
-        b.setPositiony(0.25);
-        b.setPositionx(0.35);
-        b.setPositionz(0.22);
+        b.setPosition_y(0.25);
+        b.setPosition_x(0.35);
+        b.setPosition_z(0.22);
         b.setScalar_value_state(true);
         b.setScalar_value_state(true);
         b.setSectional_contour_state(true);
         b.setSectional_contour_state(true);
         b.setSectional_plane_state(true);
         b.setSectional_plane_state(true);

+ 3 - 1
系统设计/数据定义/返 回 码/business(业务系统).csv

@@ -100,4 +100,6 @@
 4000011,EB4000011,配置ID错误!
 4000011,EB4000011,配置ID错误!
 4000012,EB4000012,没有grid文件!
 4000012,EB4000012,没有grid文件!
 4000013,EB4000013,vector 渲染参数存在错误!
 4000013,EB4000013,vector 渲染参数存在错误!
-4000014,EB4000014,切片Lst 渲染参数存在错误!
+4000014,EB4000014,切片Lst 渲染参数存在错误!
+
+4000015,EB4000015,请上传文件!