update goods g
set g.goods_status=0
where unix_timestamp(now()) > g.validity_end_time
and g.goods_status = 1
INSERT INTO question_business (education_type_id,business_id,tenant_id,project_id,subject_id,major_id,type)
VALUES(#{educationTypeId},#{businessId},#{tenantId},#{projectId},#{subjectId},#{majorId},#{type})
UPDATE goods
SET `year` = #{year},
supply_id = #{supplyId},
goods_type = #{goodsType},
education_type_id = #{educationTypeId},
business_id = #{businessId},
school_id = #{schoolId},
major_id = #{majorId},
goods_name = #{goodsName},
stand_price = #{standPrice},
lowest_price = #{lowestPrice},
create_time = #{createTime},
update_time = #{updateTime},
`status` = #{status},
validity_start_time = #{validityStartTime},
validity_end_time = #{validityEndTime},
study_start_time = #{studyStartTime},
study_end_time = #{studyEndTime},
certificate_ids = #{certificateIds},
introduce = #{introduce},
suitable_object = #{suitableObject},
buy_note = #{buyNote},
pc_detail_html = #{pcDetailHtml},
mobile_detail_html = #{mobileDetailHtml},
goods_status = #{goodsStatus},
cover_url = #{coverUrl},
class_hours = #{classHours},
stand_price_json = #{standPriceJson},
tenant_id = #{tenantId},
`code` = #{code},
project_id = #{projectId},
goods_audition_config = #{goodsAuditionConfig},
goods_photograph_config = #{goodsPhotographConfig},
goods_play_config = #{goodsPlayConfig},
goods_exam_config = #{goodsExamConfig},
handouts_id = #{handoutsId},
make_start_time = #{makeStartTime},
make_end_time = #{makeEndTime},
study_count = #{studyCount},
goods_photo_exam_config = #{goodsPhotoExamConfig},
make_goods_id = #{makeGoodsId},
service_time_type = #{serviceTimeType},
service_time_num = #{serviceTimeNum},
section_max_num = #{sectionMaxNum},
exam_number = #{examNumber},
do_number = #{doNumber},
teacher_id = #{teacherId},
subject_ids = #{subjectIds},
certificate_type_id = #{certificateTypeId},
certificate_id = #{certificateId},
certificate_tp_id = #{certificateTpId},
line_price = #{linePrice},
spec_template_id = #{specTemplateId},
show_status = #{showStatus},
show_sort = #{showSort}
WHERE goods_id = #{goodsId}
and tenant_id = #{tenantId}
UPDATE goods SET handouts_id = #{handoutsId} WHERE goods_id = #{goodsId} and tenant_id = #{tenantId}