增加空值判断
This commit is contained in:
@ -11,14 +11,14 @@
|
||||
<if test="voltage != null and voltage != ''">voltage,</if>
|
||||
<if test="ah != null and ah != ''">ah,</if>
|
||||
|
||||
<if test="rentPrice != null">rent_price,</if>
|
||||
<if test="durationType != null">duration_type,</if>
|
||||
<if test="rent_price != null">rent_price,</if>
|
||||
<if test="duration_type != null">duration_type,</if>
|
||||
<if test="duration != null">duration,</if>
|
||||
<if test="cityId != null">city_id,</if>
|
||||
<if test="operatorId != null">operator_id,</if>
|
||||
<if test="provinceId != null">province_id,</if>
|
||||
<if test="categoryId != null">category_id,</if>
|
||||
<if test="mealId != null">meal_id,</if>
|
||||
<if test="city != null">city_id,</if>
|
||||
<if test="operator_id != null">operator_id,</if>
|
||||
<if test="province != null">province_id,</if>
|
||||
<if test="category_id != null">category_id,</if>
|
||||
<if test="meal_id != null">meal_id,</if>
|
||||
<if test="syncTime != null">sync_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
@ -26,14 +26,14 @@
|
||||
<if test="detail != null and detail != ''">#{detail},</if>
|
||||
<if test="voltage != null and voltage != ''">#{voltage},</if>
|
||||
<if test="ah != null and ah != ''">#{ah},</if>
|
||||
<if test="rentPrice != null">#{rentPrice},</if>
|
||||
<if test="durationType != null">#{durationType},</if>
|
||||
<if test="rent_price != null">#{rent_price},</if>
|
||||
<if test="duration_type != null">#{duration_type},</if>
|
||||
<if test="duration != null">#{duration},</if>
|
||||
<if test="cityId != null">#{cityId},</if>
|
||||
<if test="operatorId != null">#{operatorId},</if>
|
||||
<if test="provinceId != null">#{provinceId},</if>
|
||||
<if test="categoryId != null">#{categoryId},</if>
|
||||
<if test="mealId != null">#{mealId},</if>
|
||||
<if test="city != null">#{city},</if>
|
||||
<if test="operator_id != null">#{operator_id},</if>
|
||||
<if test="province != null">#{province},</if>
|
||||
<if test="category_id != null">#{category_id},</if>
|
||||
<if test="meal_id != null">#{meal_id},</if>
|
||||
<if test="syncTime != null">#{syncTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
@ -51,13 +51,13 @@
|
||||
<if test="detail != null and detail != ''">detail = #{detail},</if>
|
||||
<if test="voltage != null and voltage != ''">voltage = #{voltage},</if>
|
||||
<if test="ah != null and ah != ''">ah = #{ah},</if>
|
||||
<if test="rentPrice != null">rent_price = #{rentPrice},</if>
|
||||
<if test="durationType != null">duration_type = #{durationType},</if>
|
||||
<if test="rent_price != null">rent_price = #{rent_price},</if>
|
||||
<if test="duration_type != null">duration_type = #{duration_type},</if>
|
||||
<if test="duration != null">duration = #{duration},</if>
|
||||
<if test="cityId != null">city_id = #{cityId},</if>
|
||||
<if test="operatorId != null">operator_id = #{operatorId},</if>
|
||||
<if test="provinceId != null">province_id = #{provinceId},</if>
|
||||
<if test="categoryId != null">category_id = #{categoryId},</if>
|
||||
<if test="city != null">city_id = #{city},</if>
|
||||
<if test="operator_id != null">operator_id = #{operator_id},</if>
|
||||
<if test="province != null">province_id = #{province},</if>
|
||||
<if test="category_id != null">category_id = #{category_id},</if>
|
||||
<if test="syncTime != null">sync_time = #{syncTime},</if>
|
||||
</trim>
|
||||
where meal_id = #{mealId}
|
||||
|
||||
Reference in New Issue
Block a user