JkxlMapper.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.jeeplus.modules.sg.mapper.JkxlMapper">
  4. <select id="getValue" parameterType="String" resultType="com.jeeplus.modules.sg.entity.RuleRatio">
  5. select a,value from sg_rule_ratio a
  6. <where>
  7. ratio_name = #{ratioName}
  8. </where>
  9. </select>
  10. <select id="getList" parameterType="String" resultType="com.jeeplus.modules.sg.entity.JkxlData">
  11. SELECT
  12. a.describe,
  13. a.short_id as wbsCode,
  14. a.parent_node as parentNode;
  15. b.id,
  16. b.original_total_cost as originalTotalCost,
  17. b.original_rg_cost as originalRgCost,
  18. b.original_cbr_cost as originalCbrCost,
  19. b.original_fbr_cost as originalFbrCost,
  20. b.original_jx_cost as originalJxCost,
  21. b.rg_cost as rgCost,
  22. b.cbr_cost as cbrCost,
  23. b.fbr_cost as fbrCost,
  24. b.jx_cost as jxCost,
  25. b.measures_fee1 as measuresFee1,
  26. b.measures_fee2 as measuresFee2,
  27. b.other_cost as otherCost,
  28. b.tex as tex,
  29. b.fees as fees,
  30. b.total_fee as totalFee
  31. FROM sg_wbs_elements a LEFT JOIN sg_wbs_fee b on a.short_id = b.wbs_code
  32. WHERE a.id = #{id}
  33. </select>
  34. <insert id="save" parameterType="com.jeeplus.modules.sg.entity.JkxlData">
  35. insert into sg_wbs_fee
  36. (id,
  37. wbs_code,
  38. original_total_cost,
  39. original_rg_cost,
  40. original_cbr_cost,
  41. original_fbr_cost,
  42. original_jx_cost,
  43. rg_cost,
  44. cbr_cost,
  45. fbr_cost,
  46. jx_cost,
  47. measures_fee1,
  48. measures_fee12,
  49. other_cost,
  50. fees,
  51. tex,
  52. total_fee
  53. ) values (
  54. id,
  55. wbsCode,
  56. originalTotalCost,
  57. originalRgCost,
  58. originalCbrCost,
  59. originalFbrCost,
  60. originalJxCost,
  61. rgCost,
  62. cbrCost,
  63. fbrCost,
  64. jxCost,
  65. measuresFee1,
  66. measuresFee2,
  67. otherCost,
  68. fees,
  69. tax,
  70. totalFee
  71. )
  72. </insert>
  73. <insert id="saveProject" parameterType="com.jeeplus.modules.sg.entity.WbsProject">
  74. insert into sg_wbs_project
  75. (id,
  76. name,
  77. create_date
  78. ) values (
  79. id,
  80. name,
  81. createDate
  82. )
  83. </insert>
  84. </mapper>