|  | @@ -13,8 +13,11 @@
 | 
											
												
													
														|  |          <result column="status_" property="status"/>
 |  |          <result column="status_" property="status"/>
 | 
											
												
													
														|  |          <result column="start_time_" property="startTime"/>
 |  |          <result column="start_time_" property="startTime"/>
 | 
											
												
													
														|  |          <result column="end_time_" property="endTime"/>
 |  |          <result column="end_time_" property="endTime"/>
 | 
											
												
													
														|  | 
 |  | +        <result column="order_id_" property="organId"/>
 | 
											
												
													
														|  | 
 |  | +        <result column="operation_" property="operation"/>
 | 
											
												
													
														|  |          <result column="create_time_" property="createTime"/>
 |  |          <result column="create_time_" property="createTime"/>
 | 
											
												
													
														|  |          <result column="update_time" property="updateTime"/>
 |  |          <result column="update_time" property="updateTime"/>
 | 
											
												
													
														|  | 
 |  | +        <result column="del_flag_" property="delFlag"/>
 | 
											
												
													
														|  |          <result column="goods_name_" property="goodsName"/>
 |  |          <result column="goods_name_" property="goodsName"/>
 | 
											
												
													
														|  |          <result column="specification_" property="specification"/>
 |  |          <result column="specification_" property="specification"/>
 | 
											
												
													
														|  |          <result column="goods_brand_" property="goodsBrand"/>
 |  |          <result column="goods_brand_" property="goodsBrand"/>
 | 
											
										
											
												
													
														|  | @@ -37,11 +40,11 @@
 | 
											
												
													
														|  |          <!--@mbg.generated-->
 |  |          <!--@mbg.generated-->
 | 
											
												
													
														|  |          insert into student_instrument
 |  |          insert into student_instrument
 | 
											
												
													
														|  |          (student_id_,organ_id_,goods_id_,goods_category_id_,goods_category_name_,goods_name_,goods_brand_,specification_,goods_img_,
 |  |          (student_id_,organ_id_,goods_id_,goods_category_id_,goods_category_name_,goods_name_,goods_brand_,specification_,goods_img_,
 | 
											
												
													
														|  | -        status_, start_time_, end_time_, create_time_, update_time
 |  | 
 | 
											
												
													
														|  | 
 |  | +        order_id_,operation_, start_time_, end_time_, create_time_, update_time
 | 
											
												
													
														|  |          )
 |  |          )
 | 
											
												
													
														|  |          values
 |  |          values
 | 
											
												
													
														|  |          (#{studentId},#{organId},#{goodsId},#{goodsCategoryId},#{goodsCategoryName},#{goodsName},#{goodsBrand},#{specification},#{goodsImg},
 |  |          (#{studentId},#{organId},#{goodsId},#{goodsCategoryId},#{goodsCategoryName},#{goodsName},#{goodsBrand},#{specification},#{goodsImg},
 | 
											
												
													
														|  | -        #{status}, #{startTime}, #{endTime}, NOW(), NOW()
 |  | 
 | 
											
												
													
														|  | 
 |  | +        #{organId},#{operation},#{status}, #{startTime}, #{endTime}, NOW(), NOW()
 | 
											
												
													
														|  |          )
 |  |          )
 | 
											
												
													
														|  |      </insert>
 |  |      </insert>
 | 
											
												
													
														|  |      <update id="update" parameterType="com.ym.mec.biz.dal.entity.StudentInstrument">
 |  |      <update id="update" parameterType="com.ym.mec.biz.dal.entity.StudentInstrument">
 | 
											
										
											
												
													
														|  | @@ -72,6 +75,9 @@
 | 
											
												
													
														|  |              <if test="status != null">
 |  |              <if test="status != null">
 | 
											
												
													
														|  |                  status_ = #{status},
 |  |                  status_ = #{status},
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  | 
 |  | +            <if test="operation != null">
 | 
											
												
													
														|  | 
 |  | +                operation_ = #{operation},
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  |              <if test="startTime != null">
 |  |              <if test="startTime != null">
 | 
											
												
													
														|  |                  start_time_ = #{startTime},
 |  |                  start_time_ = #{startTime},
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
										
											
												
													
														|  | @@ -84,6 +90,9 @@
 | 
											
												
													
														|  |              <if test="updateTime != null">
 |  |              <if test="updateTime != null">
 | 
											
												
													
														|  |                  update_time = #{updateTime},
 |  |                  update_time = #{updateTime},
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  | 
 |  | +            <if test="delFlag != null">
 | 
											
												
													
														|  | 
 |  | +                del_flag_ = #{delFlag},
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  |          </set>
 |  |          </set>
 | 
											
												
													
														|  |          where id_ = #{id}
 |  |          where id_ = #{id}
 | 
											
												
													
														|  |      </update>
 |  |      </update>
 | 
											
										
											
												
													
														|  | @@ -131,9 +140,13 @@
 | 
											
												
													
														|  |              <if test="specification != null">
 |  |              <if test="specification != null">
 | 
											
												
													
														|  |                  AND si.specification_ LIKE CONCAT('%',#{specification},'%')
 |  |                  AND si.specification_ LIKE CONCAT('%',#{specification},'%')
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  | 
 |  | +            <if test="status != null">
 | 
											
												
													
														|  | 
 |  | +                AND si.status_ = #{status}
 | 
											
												
													
														|  | 
 |  | +            </if>
 | 
											
												
													
														|  |              <if test="search != null">
 |  |              <if test="search != null">
 | 
											
												
													
														|  |                  AND (si.student_id_ = #{search} OR su.phone_ = #{search} OR su.username_ LIKE CONCAT('%',#{search},'%'))
 |  |                  AND (si.student_id_ = #{search} OR su.phone_ = #{search} OR su.username_ LIKE CONCAT('%',#{search},'%'))
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  | 
 |  | +            AND si.del_flag_ = 0
 | 
											
												
													
														|  |          </where>
 |  |          </where>
 | 
											
												
													
														|  |      </sql>
 |  |      </sql>
 | 
											
												
													
														|  |  
 |  |  
 |