MdoMapper.java 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. package com.miniframe.model.mdo.dao;
  2. import org.apache.ibatis.annotations.Mapper;
  3. import org.apache.ibatis.annotations.Select;
  4. import org.apache.ibatis.annotations.Update;
  5. import org.apache.poi.ss.formula.functions.T;
  6. import java.util.List;
  7. public interface MdoMapper extends Mapper {
  8. /**
  9. * 模版复制 修改 mdo_pro_inout_para fatherid
  10. */
  11. @Update("update mdo_pro_inout_para set fatherid=#{ncomId} where pid =#{pid} and fatherid=#{ocomId} ")
  12. void updateInOutFatherId(String pid,String ocomId,String ncomId);
  13. /**
  14. * 模版复制 修改 mdo_pro_inout_para fcomid
  15. */
  16. @Update("update mdo_pro_inout_para set fcomid=#{ncomId} where pid =#{pid} and fcomid=#{ocomId} ")
  17. void updateInOutFcomId(String pid,String ocomId,String ncomId);
  18. /**
  19. * 模版复制 修改 mdo_project_variate comid
  20. */
  21. @Update("update mdo_project_variate set comid=#{ncomId} where pid =#{pid} and comid=#{ocomId} ")
  22. void updateVarComId(String pid,String ocomId,String ncomId);
  23. /**
  24. * 模版复制 修改 mdo_project_objfun comid
  25. */
  26. @Update("update mdo_project_objfun set comid=#{ncomId} where pid =#{pid} and comid=#{ocomId} ")
  27. void updateObjComId(String pid,String ocomId,String ncomId);
  28. /**
  29. * 模版复制 修改 mdo_project_constraint comid
  30. */
  31. @Update("update mdo_project_constraint set comid=#{ncomId} where pid =#{pid} and comid=#{ocomId} ")
  32. void updateConComId(String pid,String ocomId,String ncomId);
  33. /**
  34. * 模版复制 修改 mdo_project_objfun paraId
  35. */
  36. @Update("update mdo_project_objfun set paraid=#{nparaId} where pid =#{pid} and paraid=#{oparaId} ")
  37. void updateObjParaId(String pid,String oparaId,String nparaId);
  38. /**
  39. * 模版复制 修改 mdo_project_constraint paraId
  40. */
  41. @Update("update mdo_project_constraint set paraid=#{nparaId} where pid =#{pid} and paraid=#{oparaId} ")
  42. void updateConParaId(String pid,String oparaId,String nparaId);
  43. /**
  44. * fsi 输入参数查询 FFD,TACS,ADFLOW
  45. * @param pid
  46. * @return
  47. */
  48. @Select("select DISTINCT uid from mdo_project_variate where pid =#{pid} and comtype in(2,3,5)")
  49. public List<String> selectFsiVuids(String pid );
  50. @Select("select DISTINCT uid from mdo_project_constraint where pid =#{pid} and comtype in(2,3,5)")
  51. public List<String> selectFsiCuids(String pid );
  52. @Select("select DISTINCT uid from mdo_project_objfun where pid =#{pid} and comtype in(2,3,5)")
  53. public List<String> selectFsiOuids(String pid );
  54. /**
  55. * xfoil 输入参数查询 CST,XFOIL
  56. * @param pid
  57. * @return
  58. */
  59. @Select("select DISTINCT uid from mdo_project_variate where pid =#{pid} and comtype in(0,1)")
  60. public List<String> selectXfoilVuids(String pid );
  61. @Select("select DISTINCT uid from mdo_project_constraint where pid =#{pid} and comtype in(0,1)")
  62. public List<String> selectXfoilCuids(String pid );
  63. @Select("select DISTINCT uid from mdo_project_objfun where pid =#{pid} and comtype in(0,1)")
  64. public List<String> selectXfoilOuids(String pid );
  65. /**
  66. * adflow 输入参数查询 FFD,ADFLOW
  67. * @param pid
  68. * @return
  69. */
  70. @Select("select DISTINCT uid from mdo_project_variate where pid =#{pid} and comtype in(2,3)")
  71. public List<String> selectAdflowVuids(String pid );
  72. @Select("select DISTINCT uid from mdo_project_constraint where pid =#{pid} and comtype in(2,3)")
  73. public List<String> selectAdflowCuids(String pid );
  74. @Select("select DISTINCT uid from mdo_project_objfun where pid =#{pid} and comtype in(2,3)")
  75. public List<String> selectAdflowOuids(String pid );
  76. /**
  77. * 查询所有 out param
  78. * @param pid
  79. * @return
  80. */
  81. @Select("select DISTINCT uid from mdo_project_constraint where pid =#{pid} " +
  82. "UNION " +
  83. "select DISTINCT uid from mdo_project_objfun where pid =#{pid} ")
  84. public List<String> selectAllOutUid(String pid);
  85. }