|
@@ -7,20 +7,18 @@
|
|
<result column="maintenance_equipment_number" property="maintenanceEquipmentNumber" jdbcType="INTEGER" />
|
|
<result column="maintenance_equipment_number" property="maintenanceEquipmentNumber" jdbcType="INTEGER" />
|
|
<result column="product_id" property="productId" jdbcType="INTEGER" />
|
|
<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_state" property="maintenanceState" jdbcType="BIT" />
|
|
|
|
|
|
+ <result column="maintenance_state" property="maintenanceState" jdbcType="INTEGER" />
|
|
<result column="maintenance_analysis" property="maintenanceAnalysis" jdbcType="VARCHAR" />
|
|
<result column="maintenance_analysis" property="maintenanceAnalysis" jdbcType="VARCHAR" />
|
|
<result column="maintenance_customer_id" property="maintenanceCustomerId" jdbcType="INTEGER" />
|
|
<result column="maintenance_customer_id" property="maintenanceCustomerId" jdbcType="INTEGER" />
|
|
- <result column="maintenance_id_repair" property="maintenanceIdRepair" jdbcType="BIT" />
|
|
|
|
- <result column="maintenance_content" property="maintenanceContent" jdbcType="VARCHAR" />
|
|
|
|
|
|
+ <result column="maintenance_id_repair" property="maintenanceIdRepair" jdbcType="INTEGER" />
|
|
<result column="maintenance_content_date" property="maintenanceContentDate" jdbcType="TIMESTAMP" />
|
|
<result column="maintenance_content_date" property="maintenanceContentDate" jdbcType="TIMESTAMP" />
|
|
<result column="maintenance_create_time" property="maintenanceCreateTime" jdbcType="TIMESTAMP" />
|
|
<result column="maintenance_create_time" property="maintenanceCreateTime" jdbcType="TIMESTAMP" />
|
|
<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, product_id,
|
|
maintenance_id, detect_id, maintenance_equipment_number, product_id,
|
|
- maintenance_product_number, maintenance_results, maintenance_state, maintenance_analysis,
|
|
|
|
- maintenance_customer_id, maintenance_id_repair, maintenance_content, maintenance_content_date,
|
|
|
|
|
|
+ maintenance_product_number, maintenance_state, maintenance_analysis,
|
|
|
|
+ maintenance_customer_id, maintenance_id_repair,maintenance_content_date,
|
|
maintenance_create_time, maintenance_update_time
|
|
maintenance_create_time, maintenance_update_time
|
|
</sql>
|
|
</sql>
|
|
<select id="getMaintenanceByid" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
<select id="getMaintenanceByid" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
@@ -32,16 +30,16 @@
|
|
<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,
|
|
product_id, maintenance_product_number,
|
|
product_id, maintenance_product_number,
|
|
- maintenance_results, maintenance_state, maintenance_analysis,
|
|
|
|
|
|
+ maintenance_state, maintenance_analysis,
|
|
maintenance_customer_id, maintenance_id_repair,
|
|
maintenance_customer_id, maintenance_id_repair,
|
|
- maintenance_content, maintenance_content_date,
|
|
|
|
|
|
+ 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},
|
|
#{productId,jdbcType=BIT}, #{maintenanceProductNumber,jdbcType=VARCHAR},
|
|
#{productId,jdbcType=BIT}, #{maintenanceProductNumber,jdbcType=VARCHAR},
|
|
- #{maintenanceResults,jdbcType=VARCHAR}, #{maintenanceState,jdbcType=BIT}, #{maintenanceAnalysis,jdbcType=VARCHAR},
|
|
|
|
- #{maintenanceCustomerId,jdbcType=INTEGER}, #{maintenanceIdRepair,jdbcType=BIT},
|
|
|
|
- #{maintenanceContent,jdbcType=VARCHAR}, #{maintenanceContentDate,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ #{maintenanceState,jdbcType=INTEGER}, #{maintenanceAnalysis,jdbcType=VARCHAR},
|
|
|
|
+ #{maintenanceCustomerId,jdbcType=INTEGER}, #{maintenanceIdRepair,jdbcType=INTEGER},
|
|
|
|
+ #{maintenanceContentDate,jdbcType=TIMESTAMP},
|
|
#{maintenanceCreateTime,jdbcType=TIMESTAMP}, #{maintenanceUpdateTime,jdbcType=TIMESTAMP}
|
|
#{maintenanceCreateTime,jdbcType=TIMESTAMP}, #{maintenanceUpdateTime,jdbcType=TIMESTAMP}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
@@ -61,11 +59,8 @@
|
|
<if test="maintenanceProductNumber != null" >
|
|
<if test="maintenanceProductNumber != null" >
|
|
maintenance_product_number = #{maintenanceProductNumber,jdbcType=VARCHAR},
|
|
maintenance_product_number = #{maintenanceProductNumber,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="maintenanceResults != null" >
|
|
|
|
- maintenance_results = #{maintenanceResults,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
<if test="maintenanceState != null" >
|
|
<if test="maintenanceState != null" >
|
|
- maintenance_state = #{maintenanceState,jdbcType=BIT},
|
|
|
|
|
|
+ maintenance_state = #{maintenanceState,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="maintenanceAnalysis != null" >
|
|
<if test="maintenanceAnalysis != null" >
|
|
maintenance_analysis = #{maintenanceAnalysis,jdbcType=VARCHAR},
|
|
maintenance_analysis = #{maintenanceAnalysis,jdbcType=VARCHAR},
|
|
@@ -74,10 +69,7 @@
|
|
maintenance_customer_id = #{maintenanceCustomerId,jdbcType=INTEGER},
|
|
maintenance_customer_id = #{maintenanceCustomerId,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="maintenanceIdRepair != null" >
|
|
<if test="maintenanceIdRepair != null" >
|
|
- maintenance_id_repair = #{maintenanceIdRepair,jdbcType=BIT},
|
|
|
|
- </if>
|
|
|
|
- <if test="maintenanceContent != null" >
|
|
|
|
- maintenance_content = #{maintenanceContent,jdbcType=VARCHAR},
|
|
|
|
|
|
+ maintenance_id_repair = #{maintenanceIdRepair,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="maintenanceContentDate != null" >
|
|
<if test="maintenanceContentDate != null" >
|
|
maintenance_content_date = #{maintenanceContentDate,jdbcType=TIMESTAMP},
|
|
maintenance_content_date = #{maintenanceContentDate,jdbcType=TIMESTAMP},
|