123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?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.cool.bang.modules.mysql.mapper.ProjectMapper">
- <resultMap id="resultMap" type="com.cool.bang.modules.mysql.domain.Project">
- <id property="id" column="id" jdbcType="BIGINT"/>
- <result property="orgId" column="org_id" jdbcType="INTEGER"/>
- <result property="orgName" column="org_name" jdbcType="VARCHAR"/>
- <result property="projectNumber" column="project_number" jdbcType="VARCHAR"/>
- <result property="projectName" column="project_name" jdbcType="VARCHAR"/>
- <result property="projectAddress" column="project_address" jdbcType="VARCHAR"/>
- <result property="buildArea" column="build_area" jdbcType="DECIMAL"/>
- <result property="buildingTotal" column="building_total" jdbcType="INTEGER"/>
- <result property="houseTotal" column="house_total" jdbcType="INTEGER"/>
- <result property="buildCostId" column="build_cost_id" jdbcType="BIGINT"/>
- <result property="buildCostName" column="build_cost_name" jdbcType="VARCHAR"/>
- <result property="adjustmentPercentage" column="adjustment_percentage" jdbcType="DECIMAL"/>
- <result property="bankPercentage" column="bank_percentage" jdbcType="DECIMAL"/>
- <result property="isFrozen" column="is_frozen" jdbcType="INTEGER"/>
- <result property="type" column="type" jdbcType="INTEGER"/>
- <result property="state" column="state" jdbcType="INTEGER"/>
- <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
- <result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
- </resultMap>
- <!-- 插入项目表数据 -->
- <insert id="insertProject">
- insert into
- fc_project (id, org_id, org_name, project_number, project_name, project_address, build_area, building_total, house_total, build_cost_id, build_cost_name, adjustment_percentage, bank_percentage, is_frozen, type, state, create_time, del_flag)
- values
- <foreach collection="list" item="item" separator=",">
- (#{item.id},#{item.orgId},#{item.orgName},#{item.projectNumber},#{item.projectName},#{item.projectAddress},#{item.buildArea},#{item.buildingTotal},#{item.houseTotal},#{item.buildCostId},#{item.buildCostName},#{item.adjustmentPercentage},#{item.bankPercentage},#{item.isFrozen},#{item.type}, #{item.state}, #{item.createTime}, #{item.delFlag})
- </foreach>
- </insert>
- <select id="selectByProjectNumber" resultMap="resultMap">
- select * from fc_project where project_number = #{projectNumber}
- </select>
- <select id="selectProjectHouseTotal" resultType="java.lang.Integer">
- select zts from p_lpb_xmxx where xmbh = #{projectNumber}
- </select>
- </mapper>
|