|
@@ -191,47 +191,31 @@ public class AFT001Service extends AFT001BaseModel implements ExecProcessFlow {
|
|
|
obj.put("showHideState","1".equals(showHideState)?true:false);
|
|
|
msg.setParamJson(obj.toString());
|
|
|
}else if(action.equals("SliceDisplayAdd")){
|
|
|
+ String index = this.getA_aft001().getIndex();
|
|
|
JSONObject obj = new JSONObject();
|
|
|
- obj.put("index","1");
|
|
|
+ obj.put("index",index);
|
|
|
msg.setParamJson(obj.toString());
|
|
|
}else if(action.equals("SliceDisplayUpdate")){
|
|
|
|
|
|
|
|
|
}else if(action.equals("SliceDisplayDel")){
|
|
|
+ String index = this.getA_aft001().getIndex();
|
|
|
JSONObject obj = new JSONObject();
|
|
|
- obj.put("index","1");
|
|
|
+ obj.put("index",index);
|
|
|
msg.setParamJson(obj.toString());
|
|
|
- }else if(action.equals("SliceDisplayApple")){
|
|
|
- List<SliceMsg> b =new ArrayList<>();
|
|
|
- for (int i = 0; i <2 ; i++) {
|
|
|
- b.add( inib(i));
|
|
|
+ }else if(action.equals("SliceDisplayApply")){
|
|
|
+ try {
|
|
|
+ List<SliceMsg> list = XiJsonUtil.jsonToList(paramJson,SliceMsg.class);
|
|
|
+ System.out.println(XiJsonUtil.objectToJson(list));
|
|
|
+ MFMqUtils.get(CaeMQ.class).sendCaein(XiJsonUtil.objectToJson(msg));
|
|
|
+ }catch (Exception e){
|
|
|
+ throw new BusinessException("EB4000013");
|
|
|
}
|
|
|
- String t= XiJsonUtil.objectToJson(b);
|
|
|
- msg.setParamJson(t);
|
|
|
}
|
|
|
- System.out.println(XiJsonUtil.objectToJson(msg));
|
|
|
- MFMqUtils.get(CaeMQ.class).sendCaein(XiJsonUtil.objectToJson(msg));
|
|
|
+
|
|
|
|
|
|
}
|
|
|
- private static SliceMsg inib(int id) {
|
|
|
- SliceMsg b= new SliceMsg();
|
|
|
- b.setIndex(id);
|
|
|
- b.setLevel(2);
|
|
|
- b.setNormalx(12.0);
|
|
|
- b.setNormaly(2.0);
|
|
|
- b.setNormalz(3.0);
|
|
|
- b.setPositionx(0.23);
|
|
|
-// b.setAreaRange("(0,0)");
|
|
|
- b.setPositiony(0.25);
|
|
|
- b.setPositionx(0.35);
|
|
|
- b.setPositionz(0.22);
|
|
|
- b.setScalar_value_state(true);
|
|
|
- b.setSectional_contour_state(true);
|
|
|
- b.setSectional_plane_state(true);
|
|
|
- b.setVariableName("p");
|
|
|
- b.setType("contour");
|
|
|
- return b;
|
|
|
- }
|
|
|
+
|
|
|
/**
|
|
|
* 基础系统,“后处理消息发送”业务前处理
|
|
|
*/
|