|  | @@ -1,7 +1,9 @@
 | 
	
		
			
				|  |  |  <?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.workcontent.dao.WorkContentCtrlpriceDao">
 | 
	
		
			
				|  |  | -    
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	<sql id="workContentCtrlpriceColumns">
 | 
	
		
			
				|  |  |  		a.id AS "id",
 | 
	
		
			
				|  |  |  		a.create_by AS "createBy.id",
 | 
	
	
		
			
				|  | @@ -14,6 +16,190 @@
 | 
	
		
			
				|  |  |  		a.content_id AS "contentId",
 | 
	
		
			
				|  |  |  		a.inventory_type AS "inventoryType",
 | 
	
		
			
				|  |  |  		a.ctrl_num AS "ctrlNum",
 | 
	
		
			
				|  |  | +		a.construction_unit AS "constructionUnit",
 | 
	
		
			
				|  |  | +		a.project_name AS "projectName",
 | 
	
		
			
				|  |  | +		a.construction_budget AS "constructionBudget",
 | 
	
		
			
				|  |  | +		a.highest_bid_before AS "highestBidBefore",
 | 
	
		
			
				|  |  | +		a.highest_bid_after AS "highestBidAfter",
 | 
	
		
			
				|  |  | +		a.highest_bid_adjust AS "highestBidAdjust"
 | 
	
		
			
				|  |  | +	</sql>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	<select id="get" resultType="com.jeeplus.modules.workcontent.entity.WorkContentBidLimitPriceInfo" >
 | 
	
		
			
				|  |  | +		SELECT
 | 
	
		
			
				|  |  | +		<include refid="workContentCtrlpriceColumns"/>
 | 
	
		
			
				|  |  | +		FROM work_content_bid_limit_price_info a
 | 
	
		
			
				|  |  | +		WHERE a.id = #{id}
 | 
	
		
			
				|  |  | +	</select>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	<select id="findList" resultType="com.jeeplus.modules.workcontent.entity.WorkContentBidLimitPriceInfo" >
 | 
	
		
			
				|  |  | +		SELECT
 | 
	
		
			
				|  |  | +		<include refid="workContentCtrlpriceColumns"/>
 | 
	
		
			
				|  |  | +		FROM work_content_bid_limit_price_info a
 | 
	
		
			
				|  |  | +		<where>
 | 
	
		
			
				|  |  | +			<if test="projectId!=null and projectId !=''">
 | 
	
		
			
				|  |  | +				AND a.project_id = #{projectId}
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			<if test="contentId!=null and contentId !=''">
 | 
	
		
			
				|  |  | +				AND a.content_id = #{contentId}
 | 
	
		
			
				|  |  | +			</if>
 | 
	
		
			
				|  |  | +			AND a.del_flag = #{DEL_FLAG_NORMAL}
 | 
	
		
			
				|  |  | +		</where>
 | 
	
		
			
				|  |  | +		<choose>
 | 
	
		
			
				|  |  | +			<when test="page !=null and page.orderBy != null and page.orderBy != ''">
 | 
	
		
			
				|  |  | +				ORDER BY ${page.orderBy}
 | 
	
		
			
				|  |  | +			</when>
 | 
	
		
			
				|  |  | +			<otherwise>
 | 
	
		
			
				|  |  | +				ORDER BY a.update_date DESC
 | 
	
		
			
				|  |  | +			</otherwise>
 | 
	
		
			
				|  |  | +		</choose>
 | 
	
		
			
				|  |  | +	</select>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	<select id="findAllList" resultType="com.jeeplus.modules.workcontent.entity.WorkContentBidLimitPriceInfo" >
 | 
	
		
			
				|  |  | +		SELECT
 | 
	
		
			
				|  |  | +		<include refid="workContentCtrlpriceColumns"/>
 | 
	
		
			
				|  |  | +		FROM work_content_bid_limit_price_info a
 | 
	
		
			
				|  |  | +		<where>
 | 
	
		
			
				|  |  | +			a.del_flag = #{DEL_FLAG_NORMAL}
 | 
	
		
			
				|  |  | +		</where>
 | 
	
		
			
				|  |  | +		<choose>
 | 
	
		
			
				|  |  | +			<when test="page !=null and page.orderBy != null and page.orderBy != ''">
 | 
	
		
			
				|  |  | +				ORDER BY ${page.orderBy}
 | 
	
		
			
				|  |  | +			</when>
 | 
	
		
			
				|  |  | +			<otherwise>
 | 
	
		
			
				|  |  | +				ORDER BY a.update_date DESC
 | 
	
		
			
				|  |  | +			</otherwise>
 | 
	
		
			
				|  |  | +		</choose>
 | 
	
		
			
				|  |  | +	</select>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	<insert id="insert">
 | 
	
		
			
				|  |  | +		INSERT INTO work_content_bid_limit_price_info(
 | 
	
		
			
				|  |  | +		id,
 | 
	
		
			
				|  |  | +		create_by,
 | 
	
		
			
				|  |  | +		create_date,
 | 
	
		
			
				|  |  | +		update_by,
 | 
	
		
			
				|  |  | +		update_date,
 | 
	
		
			
				|  |  | +		remarks,
 | 
	
		
			
				|  |  | +		del_flag,
 | 
	
		
			
				|  |  | +		project_id,
 | 
	
		
			
				|  |  | +		content_id,
 | 
	
		
			
				|  |  | +		inventory_type,
 | 
	
		
			
				|  |  | +		construction_unit,
 | 
	
		
			
				|  |  | +		project_name,
 | 
	
		
			
				|  |  | +		construction_budget,
 | 
	
		
			
				|  |  | +		highest_bid_before,
 | 
	
		
			
				|  |  | +		highest_bid_after,
 | 
	
		
			
				|  |  | +		highest_bid_adjust
 | 
	
		
			
				|  |  | +		) VALUES (
 | 
	
		
			
				|  |  | +		#{id},
 | 
	
		
			
				|  |  | +		#{createBy.id},
 | 
	
		
			
				|  |  | +		#{createDate},
 | 
	
		
			
				|  |  | +		#{updateBy.id},
 | 
	
		
			
				|  |  | +		#{updateDate},
 | 
	
		
			
				|  |  | +		#{remarks},
 | 
	
		
			
				|  |  | +		#{delFlag},
 | 
	
		
			
				|  |  | +		#{projectId},
 | 
	
		
			
				|  |  | +		#{contentId},
 | 
	
		
			
				|  |  | +		#{inventoryType},
 | 
	
		
			
				|  |  | +		#{constructionUnit},
 | 
	
		
			
				|  |  | +		#{projectName},
 | 
	
		
			
				|  |  | +		#{constructionBudget},
 | 
	
		
			
				|  |  | +		#{highestBidBefore},
 | 
	
		
			
				|  |  | +		#{highestBidAfter},
 | 
	
		
			
				|  |  | +		#{highestBidAdjust}
 | 
	
		
			
				|  |  | +		)
 | 
	
		
			
				|  |  | +	</insert>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	<insert id="batchInsert">
 | 
	
		
			
				|  |  | +		INSERT INTO work_content_bid_limit_price_info(
 | 
	
		
			
				|  |  | +		id,
 | 
	
		
			
				|  |  | +		create_by,
 | 
	
		
			
				|  |  | +		create_date,
 | 
	
		
			
				|  |  | +		update_by,
 | 
	
		
			
				|  |  | +		update_date,
 | 
	
		
			
				|  |  | +		remarks,
 | 
	
		
			
				|  |  | +		del_flag,
 | 
	
		
			
				|  |  | +		project_id,
 | 
	
		
			
				|  |  | +		content_id,
 | 
	
		
			
				|  |  | +		inventory_type,
 | 
	
		
			
				|  |  | +		construction_unit,
 | 
	
		
			
				|  |  | +		project_name,
 | 
	
		
			
				|  |  | +		construction_budget,
 | 
	
		
			
				|  |  | +		highest_bid_before,
 | 
	
		
			
				|  |  | +		highest_bid_after,
 | 
	
		
			
				|  |  | +		highest_bid_adjust
 | 
	
		
			
				|  |  | +		) VALUES
 | 
	
		
			
				|  |  | +		<foreach collection="list" item="item" separator=",">
 | 
	
		
			
				|  |  | +			(#{item.id},
 | 
	
		
			
				|  |  | +			#{item.createBy.id},
 | 
	
		
			
				|  |  | +			#{item.createDate},
 | 
	
		
			
				|  |  | +			#{item.updateBy.id},
 | 
	
		
			
				|  |  | +			#{item.updateDate},
 | 
	
		
			
				|  |  | +			#{item.remarks},
 | 
	
		
			
				|  |  | +			#{item.delFlag},
 | 
	
		
			
				|  |  | +			#{item.projectId},
 | 
	
		
			
				|  |  | +			#{item.contentId},
 | 
	
		
			
				|  |  | +			#{item.inventoryType},
 | 
	
		
			
				|  |  | +			#{item.constructionUnit},
 | 
	
		
			
				|  |  | +			#{item.projectName},
 | 
	
		
			
				|  |  | +			#{item.constructionBudget},
 | 
	
		
			
				|  |  | +			#{item.highestBidBefore},
 | 
	
		
			
				|  |  | +			#{item.highestBidAfter}),
 | 
	
		
			
				|  |  | +			#{item.highestBidAdjust})
 | 
	
		
			
				|  |  | +		</foreach>
 | 
	
		
			
				|  |  | +	</insert>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	<update id="update">
 | 
	
		
			
				|  |  | +		UPDATE work_content_bid_limit_price_info SET
 | 
	
		
			
				|  |  | +		update_by = #{updateBy.id},
 | 
	
		
			
				|  |  | +		update_date = #{updateDate},
 | 
	
		
			
				|  |  | +		remarks = #{remarks},
 | 
	
		
			
				|  |  | +		project_id = #{projectId},
 | 
	
		
			
				|  |  | +		content_id = #{contentId},
 | 
	
		
			
				|  |  | +		inventory_type = #{inventoryType},
 | 
	
		
			
				|  |  | +		ctrl_num = #{ctrlNum},
 | 
	
		
			
				|  |  | +		construction_unit = #{constructionUnit},
 | 
	
		
			
				|  |  | +		project_name = #{projectName},
 | 
	
		
			
				|  |  | +		construction_budget = #{constructionBudget},
 | 
	
		
			
				|  |  | +		highest_bid_before = #{highestBidBefore},
 | 
	
		
			
				|  |  | +		highest_bid_after = #{highestBidAfter},
 | 
	
		
			
				|  |  | +		highest_bid_adjust = #{highestBidAdjust}
 | 
	
		
			
				|  |  | +		WHERE id = #{id}
 | 
	
		
			
				|  |  | +	</update>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	<!--物理删除-->
 | 
	
		
			
				|  |  | +	<update id="delete">
 | 
	
		
			
				|  |  | +		DELETE FROM work_content_bid_limit_price_info
 | 
	
		
			
				|  |  | +		WHERE id = #{id}
 | 
	
		
			
				|  |  | +	</update>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	<!--逻辑删除-->
 | 
	
		
			
				|  |  | +	<update id="deleteByLogic">
 | 
	
		
			
				|  |  | +		UPDATE work_content_bid_limit_price_info SET
 | 
	
		
			
				|  |  | +		del_flag = #{DEL_FLAG_DELETE}
 | 
	
		
			
				|  |  | +		WHERE id = #{id}
 | 
	
		
			
				|  |  | +	</update>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	<!-- 根据实体名称和字段名称和字段值获取唯一记录 -->
 | 
	
		
			
				|  |  | +	<select id="findUniqueByProperty" resultType="com.jeeplus.modules.workcontent.entity.WorkContentBidLimitPriceInfo" statementType="STATEMENT">
 | 
	
		
			
				|  |  | +		select * FROM work_content_bid_limit_price_info  where ${propertyName} = '${value}'
 | 
	
		
			
				|  |  | +	</select>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +	<!--<sql id="workContentCtrlpriceColumns">
 | 
	
		
			
				|  |  | +		a.id AS "id",
 | 
	
		
			
				|  |  | +		a.create_by AS "createBy.id",
 | 
	
		
			
				|  |  | +		a.create_date AS "createDate",
 | 
	
		
			
				|  |  | +		a.update_by AS "updateBy.id",
 | 
	
		
			
				|  |  | +		a.update_date AS "updateDate",
 | 
	
		
			
				|  |  | +		a.remarks AS "remarks",
 | 
	
		
			
				|  |  | +		a.del_flag AS "delFlag",
 | 
	
		
			
				|  |  | +		a.project_id AS "projectId",
 | 
	
		
			
				|  |  | +		a.content_id AS "contentId",
 | 
	
		
			
				|  |  | +		a.inventory_type AS "inventoryType",
 | 
	
		
			
				|  |  | +		a.ctrl_num AS "ctrlNum",
 | 
	
		
			
				|  |  |  		a.cost_name AS "costName",
 | 
	
		
			
				|  |  |  		a.sum AS "sum",
 | 
	
		
			
				|  |  |  		a.construction_cost AS "constructionCost",
 | 
	
	
		
			
				|  | @@ -155,9 +341,9 @@
 | 
	
		
			
				|  |  |              #{item.estimate},
 | 
	
		
			
				|  |  |              #{item.nodeTypes})
 | 
	
		
			
				|  |  |          </foreach>
 | 
	
		
			
				|  |  | -    </insert>
 | 
	
		
			
				|  |  | +    </insert>-->
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  | -	<update id="update">
 | 
	
		
			
				|  |  | +	<!--<update id="update">
 | 
	
		
			
				|  |  |  		UPDATE work_content_ctrlprice SET 	
 | 
	
		
			
				|  |  |  			update_by = #{updateBy.id},
 | 
	
		
			
				|  |  |  			update_date = #{updateDate},
 | 
	
	
		
			
				|  | @@ -173,26 +359,26 @@
 | 
	
		
			
				|  |  |  			estimate = #{estimate},
 | 
	
		
			
				|  |  |  			node_types = #{nodeTypes}
 | 
	
		
			
				|  |  |  		WHERE id = #{id}
 | 
	
		
			
				|  |  | -	</update>
 | 
	
		
			
				|  |  | +	</update>-->
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  |  	<!--物理删除-->
 | 
	
		
			
				|  |  | -	<update id="delete">
 | 
	
		
			
				|  |  | +	<!--<update id="delete">
 | 
	
		
			
				|  |  |  		DELETE FROM work_content_ctrlprice
 | 
	
		
			
				|  |  |  		WHERE id = #{id}
 | 
	
		
			
				|  |  | -	</update>
 | 
	
		
			
				|  |  | +	</update>-->
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  |  	<!--逻辑删除-->
 | 
	
		
			
				|  |  | -	<update id="deleteByLogic">
 | 
	
		
			
				|  |  | +	<!--<update id="deleteByLogic">
 | 
	
		
			
				|  |  |  		UPDATE work_content_ctrlprice SET 
 | 
	
		
			
				|  |  |  			del_flag = #{DEL_FLAG_DELETE}
 | 
	
		
			
				|  |  |  		WHERE id = #{id}
 | 
	
		
			
				|  |  | -	</update>
 | 
	
		
			
				|  |  | +	</update>-->
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  |  	
 | 
	
		
			
				|  |  |  	<!-- 根据实体名称和字段名称和字段值获取唯一记录 -->
 | 
	
		
			
				|  |  | -	<select id="findUniqueByProperty" resultType="WorkContentCtrlprice" statementType="STATEMENT">
 | 
	
		
			
				|  |  | +	<!--<select id="findUniqueByProperty" resultType="WorkContentCtrlprice" statementType="STATEMENT">
 | 
	
		
			
				|  |  |  		select * FROM work_content_ctrlprice  where ${propertyName} = '${value}'
 | 
	
		
			
				|  |  | -	</select>
 | 
	
		
			
				|  |  | +	</select>-->
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  </mapper>
 |