1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.jeeplus.modules.sg.mapper.JkxlMapper">
- <select id="getValue" parameterType="String" resultType="com.jeeplus.modules.sg.entity.RuleRatio">
- select a,value from sg_rule_ratio a
- <where>
- ratio_name = #{ratioName}
- </where>
- </select>
- <select id="getList" parameterType="String" resultType="com.jeeplus.modules.sg.entity.JkxlData">
- SELECT
- a.describe,
- a.short_id as wbsCode,
- a.parent_node as parentNode;
- b.id,
- b.original_total_cost as originalTotalCost,
- b.original_rg_cost as originalRgCost,
- b.original_cbr_cost as originalCbrCost,
- b.original_fbr_cost as originalFbrCost,
- b.original_jx_cost as originalJxCost,
- b.rg_cost as rgCost,
- b.cbr_cost as cbrCost,
- b.fbr_cost as fbrCost,
- b.jx_cost as jxCost,
- b.measures_fee1 as measuresFee1,
- b.measures_fee2 as measuresFee2,
- b.other_cost as otherCost,
- b.tex as tex,
- b.fees as fees,
- b.total_fee as totalFee
- FROM sg_wbs_elements a LEFT JOIN sg_wbs_fee b on a.short_id = b.wbs_code
- WHERE a.id = #{id}
- </select>
- <insert id="save" parameterType="com.jeeplus.modules.sg.entity.JkxlData">
- insert into sg_wbs_fee
- (id,
- wbs_code,
- original_total_cost,
- original_rg_cost,
- original_cbr_cost,
- original_fbr_cost,
- original_jx_cost,
- rg_cost,
- cbr_cost,
- fbr_cost,
- jx_cost,
- measures_fee1,
- measures_fee12,
- other_cost,
- fees,
- tex,
- total_fee
- ) values (
- id,
- wbsCode,
- originalTotalCost,
- originalRgCost,
- originalCbrCost,
- originalFbrCost,
- originalJxCost,
- rgCost,
- cbrCost,
- fbrCost,
- jxCost,
- measuresFee1,
- measuresFee2,
- otherCost,
- fees,
- tax,
- totalFee
- )
- </insert>
- <insert id="saveProject" parameterType="com.jeeplus.modules.sg.entity.WbsProject">
- insert into sg_wbs_project
- (id,
- name,
- create_date
- ) values (
- id,
- name,
- createDate
- )
- </insert>
-
- </mapper>
|