| | |
| | | #{entity.createdBy}) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | |
| | | <insert id="insertOneBatch" parameterType="com.panzhihua.service_community.entity.ComFmsServiceRecord"> |
| | | insert into smart_life.com_fms_service_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="entitie.serviceId != null"> |
| | | service_id, |
| | | </if> |
| | | <if test="entitie.stage != null"> |
| | | stage, |
| | | </if> |
| | | <if test="entitie.content != null"> |
| | | content, |
| | | </if> |
| | | <if test="entitie.image != null"> |
| | | image, |
| | | </if> |
| | | <if test="entitie.createdBy != null"> |
| | | created_by, |
| | | </if> |
| | | created_at |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="entitie.serviceId != null"> |
| | | #{entitie.serviceId}, |
| | | </if> |
| | | <if test="entitie.stage != null"> |
| | | #{entitie.stage}, |
| | | </if> |
| | | <if test="entitie.content != null"> |
| | | #{entitie.content}, |
| | | </if> |
| | | <if test="entitie.image != null"> |
| | | #{entitie.image}, |
| | | </if> |
| | | <if test="entitie.createdBy != null"> |
| | | #{entitie.createdBy}, |
| | | </if> |
| | | sysdate() |
| | | </trim> |
| | | </insert> |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 批量插入或按主键更新 --> |
| | | <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> |
| | | insert into smart_life.com_fms_service_record(service_id, stage, content, image, created_at, created_by) |