|
@@ -16,12 +16,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="macInvestment" column="mac_investment" />
|
|
|
<result property="productDate" column="product_date" />
|
|
|
<result property="productPhoto" column="product_photo" />
|
|
|
+ <result property="arrivalListPhoto" column="arrival_list_photo" />
|
|
|
+ <result property="orderContractPhoto" column="order_contract_photo" />
|
|
|
<result property="isOk" column="is_ok" />
|
|
|
<result property="okDate" column="ok_date" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectBmProjectProductVo">
|
|
|
- select id, bm_project_id, create_by, create_time, update_by, update_time, is_del, tot_investment, mac_investment, product_date, product_photo, is_ok, ok_date from bm_project_product
|
|
|
+ select id, bm_project_id, create_by, create_time, update_by, update_time, is_del, tot_investment, mac_investment, product_date, product_photo, arrival_list_photo, order_contract_photo, is_ok, ok_date from bm_project_product
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectBmProjectProductList" parameterType="BmProjectProduct" resultMap="BmProjectProductResult">
|
|
@@ -34,6 +36,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="macInvestment != null "> and mac_investment = #{macInvestment}</if>
|
|
|
<if test="productDate != null "> and product_date = #{productDate}</if>
|
|
|
<if test="productPhoto != null and productPhoto != ''"> and product_photo = #{productPhoto}</if>
|
|
|
+ <if test="arrivalListPhoto != null and arrivalListPhoto != ''"> and arrival_list_photo = #{arrivalListPhoto}</if>
|
|
|
+ <if test="orderContractPhoto != null and orderContractPhoto != ''"> and order_contract_photo = #{orderContractPhoto}</if>
|
|
|
<if test="isOk != null and isOk != ''"> and is_ok = #{isOk}</if>
|
|
|
<if test="okDate != null "> and ok_date = #{okDate}</if>
|
|
|
</where>
|
|
@@ -58,6 +62,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="macInvestment != null">mac_investment,</if>
|
|
|
<if test="productDate != null">product_date,</if>
|
|
|
<if test="productPhoto != null">product_photo,</if>
|
|
|
+ <if test="arrivalListPhoto != null">arrival_list_photo,</if>
|
|
|
+ <if test="orderContractPhoto != null">order_contract_photo,</if>
|
|
|
<if test="isOk != null">is_ok,</if>
|
|
|
<if test="okDate != null">ok_date,</if>
|
|
|
</trim>
|
|
@@ -72,6 +78,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="macInvestment != null">#{macInvestment},</if>
|
|
|
<if test="productDate != null">#{productDate},</if>
|
|
|
<if test="productPhoto != null">#{productPhoto},</if>
|
|
|
+ <if test="arrivalListPhoto != null">#{arrivalListPhoto},</if>
|
|
|
+ <if test="orderContractPhoto != null">#{orderContractPhoto},</if>
|
|
|
<if test="isOk != null">#{isOk},</if>
|
|
|
<if test="okDate != null">#{okDate},</if>
|
|
|
</trim>
|
|
@@ -90,6 +98,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="macInvestment != null">mac_investment = #{macInvestment},</if>
|
|
|
<if test="productDate != null">product_date = #{productDate},</if>
|
|
|
<if test="productPhoto != null">product_photo = #{productPhoto},</if>
|
|
|
+ <if test="arrivalListPhoto != null">arrival_list_photo = #{arrivalListPhoto},</if>
|
|
|
+ <if test="orderContractPhoto != null">order_contract_photo = #{orderContractPhoto},</if>
|
|
|
<if test="isOk != null">is_ok = #{isOk},</if>
|
|
|
<if test="okDate != null">ok_date = #{okDate},</if>
|
|
|
</trim>
|