|
@@ -5,7 +5,7 @@
|
|
<id column="maintenance_id" property="maintenanceId" jdbcType="INTEGER" />
|
|
<id column="maintenance_id" property="maintenanceId" jdbcType="INTEGER" />
|
|
<result column="detect_id" property="detectId" jdbcType="INTEGER" />
|
|
<result column="detect_id" property="detectId" jdbcType="INTEGER" />
|
|
<result column="maintenance_equipment_number" property="maintenanceEquipmentNumber" jdbcType="INTEGER" />
|
|
<result column="maintenance_equipment_number" property="maintenanceEquipmentNumber" jdbcType="INTEGER" />
|
|
- <result column="maintenance_product_type" property="maintenanceProductType" jdbcType="BIT" />
|
|
|
|
|
|
+ <result column="product_id" property="productId" jdbcType="INTEGER" />
|
|
<result column="maintenance_product_number" property="maintenanceProductNumber" jdbcType="VARCHAR" />
|
|
<result column="maintenance_product_number" property="maintenanceProductNumber" jdbcType="VARCHAR" />
|
|
<result column="maintenance_results" property="maintenanceResults" jdbcType="VARCHAR" />
|
|
<result column="maintenance_results" property="maintenanceResults" jdbcType="VARCHAR" />
|
|
<result column="maintenance_state" property="maintenanceState" jdbcType="BIT" />
|
|
<result column="maintenance_state" property="maintenanceState" jdbcType="BIT" />
|
|
@@ -18,7 +18,7 @@
|
|
<result column="maintenance_update_time" property="maintenanceUpdateTime" jdbcType="TIMESTAMP" />
|
|
<result column="maintenance_update_time" property="maintenanceUpdateTime" jdbcType="TIMESTAMP" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="Base_Column_List" >
|
|
<sql id="Base_Column_List" >
|
|
- maintenance_id, detect_id, maintenance_equipment_number, maintenance_product_type,
|
|
|
|
|
|
+ maintenance_id, detect_id, maintenance_equipment_number, product_id,
|
|
maintenance_product_number, maintenance_results, maintenance_state, maintenance_analysis,
|
|
maintenance_product_number, maintenance_results, maintenance_state, maintenance_analysis,
|
|
maintenance_customer_id, maintenance_id_repair, maintenance_content, maintenance_content_date,
|
|
maintenance_customer_id, maintenance_id_repair, maintenance_content, maintenance_content_date,
|
|
maintenance_create_time, maintenance_update_time
|
|
maintenance_create_time, maintenance_update_time
|
|
@@ -31,14 +31,14 @@
|
|
</select>
|
|
</select>
|
|
<insert id="insert" parameterType="ComplaintMaintenanceInfo" >
|
|
<insert id="insert" parameterType="ComplaintMaintenanceInfo" >
|
|
insert into tb_rst_complaint_maintenance (maintenance_id, detect_id, maintenance_equipment_number,
|
|
insert into tb_rst_complaint_maintenance (maintenance_id, detect_id, maintenance_equipment_number,
|
|
- maintenance_product_type, maintenance_product_number,
|
|
|
|
|
|
+ product_id, maintenance_product_number,
|
|
maintenance_results, maintenance_state, maintenance_analysis,
|
|
maintenance_results, maintenance_state, maintenance_analysis,
|
|
maintenance_customer_id, maintenance_id_repair,
|
|
maintenance_customer_id, maintenance_id_repair,
|
|
maintenance_content, maintenance_content_date,
|
|
maintenance_content, maintenance_content_date,
|
|
maintenance_create_time, maintenance_update_time
|
|
maintenance_create_time, maintenance_update_time
|
|
)
|
|
)
|
|
values (#{maintenanceId,jdbcType=INTEGER}, #{detectId,jdbcType=INTEGER}, #{maintenanceEquipmentNumber,jdbcType=INTEGER},
|
|
values (#{maintenanceId,jdbcType=INTEGER}, #{detectId,jdbcType=INTEGER}, #{maintenanceEquipmentNumber,jdbcType=INTEGER},
|
|
- #{maintenanceProductType,jdbcType=BIT}, #{maintenanceProductNumber,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{productId,jdbcType=BIT}, #{maintenanceProductNumber,jdbcType=VARCHAR},
|
|
#{maintenanceResults,jdbcType=VARCHAR}, #{maintenanceState,jdbcType=BIT}, #{maintenanceAnalysis,jdbcType=VARCHAR},
|
|
#{maintenanceResults,jdbcType=VARCHAR}, #{maintenanceState,jdbcType=BIT}, #{maintenanceAnalysis,jdbcType=VARCHAR},
|
|
#{maintenanceCustomerId,jdbcType=INTEGER}, #{maintenanceIdRepair,jdbcType=BIT},
|
|
#{maintenanceCustomerId,jdbcType=INTEGER}, #{maintenanceIdRepair,jdbcType=BIT},
|
|
#{maintenanceContent,jdbcType=VARCHAR}, #{maintenanceContentDate,jdbcType=TIMESTAMP},
|
|
#{maintenanceContent,jdbcType=VARCHAR}, #{maintenanceContentDate,jdbcType=TIMESTAMP},
|
|
@@ -55,8 +55,8 @@
|
|
<if test="maintenanceEquipmentNumber != null" >
|
|
<if test="maintenanceEquipmentNumber != null" >
|
|
maintenance_equipment_number = #{maintenanceEquipmentNumber,jdbcType=INTEGER},
|
|
maintenance_equipment_number = #{maintenanceEquipmentNumber,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="maintenanceProductType != null" >
|
|
|
|
- maintenance_product_type = #{maintenanceProductType,jdbcType=BIT},
|
|
|
|
|
|
+ <if test="productId != null" >
|
|
|
|
+ product_id = #{productId,jdbcType=BIT},
|
|
</if>
|
|
</if>
|
|
<if test="maintenanceProductNumber != null" >
|
|
<if test="maintenanceProductNumber != null" >
|
|
maintenance_product_number = #{maintenanceProductNumber,jdbcType=VARCHAR},
|
|
maintenance_product_number = #{maintenanceProductNumber,jdbcType=VARCHAR},
|