| 
					
				 | 
			
			
				@@ -101,7 +101,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     account_id, change_amount, back_amount, total_price, pay_type, bill_type, remark,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     file_name, sales_man, account_id_list, account_money_list, discount, discount_money,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     discount_last_money, other_money, deposit, status, purchase_status, source, link_number,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    link_apply, tenant_id, delete_flag 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    link_apply, tenant_id, delete_flag,goods_quantity, goods_type_count, link_tesco, receiver_name, receiver_phone, receiver_address 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.DepotHeadExample" resultMap="BaseResultMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     select 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -144,7 +144,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       discount_money, discount_last_money, other_money,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       deposit, status, purchase_status,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       source, link_number, link_apply,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      tenant_id, delete_flag) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      tenant_id, delete_flag,goods_quantity, goods_type_count, link_tesco, receiver_name, receiver_phone, receiver_address) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{subType,jdbcType=VARCHAR},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{defaultNumber,jdbcType=VARCHAR}, #{number,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{operTime,jdbcType=TIMESTAMP}, #{organId,jdbcType=BIGINT}, #{creator,jdbcType=BIGINT},  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -155,7 +155,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{discountMoney,jdbcType=DECIMAL}, #{discountLastMoney,jdbcType=DECIMAL}, #{otherMoney,jdbcType=DECIMAL},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{deposit,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR}, #{purchaseStatus,jdbcType=VARCHAR},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{source,jdbcType=VARCHAR}, #{linkNumber,jdbcType=VARCHAR}, #{linkApply,jdbcType=VARCHAR},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR},#{goodsQuantity,jdbcType=INTEGER}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{goodsTypeCount,jdbcType=INTEGER}, #{linkTesco,jdbcType=VARCHAR}, #{receiverName,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{receiverPhone,jdbcType=VARCHAR}, #{receiverAddress,jdbcType=VARCHAR}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.DepotHead" useGeneratedKeys="true" keyProperty="id"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     insert into jsh_depot_head 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -394,7 +396,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #{receiverPhone,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="receiverAddress != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        #{receiverAddress,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{receiverAddress,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </insert> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -503,6 +505,27 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="record.deleteFlag != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="record.voucherPicture != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        voucher_picture = #{record.voucherPicture,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="record.goodsQuantity != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        goods_quantity = #{record.goodsQuantity,jdbcType=INTEGER}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="record.goodsTypeCount != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        goods_type_count = #{record.goodsTypeCount,jdbcType=INTEGER}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="record.linkTesco != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        link_tesco = #{record.linkTesco,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="record.receiverName != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        receiver_name = #{record.receiverName,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="record.receiverPhone != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        receiver_phone = #{record.receiverPhone,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="record.receiverAddress != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        receiver_address = #{record.receiverAddress,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </set> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <if test="_parameter != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <include refid="Update_By_Example_Where_Clause" /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -541,7 +564,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       link_number = #{record.linkNumber,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       link_apply = #{record.linkApply,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       tenant_id = #{record.tenantId,jdbcType=BIGINT}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      delete_flag = #{record.deleteFlag,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      voucher_picture = #{record.voucherPicture,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      goods_quantity = #{record.goodsQuantity,jdbcType=INTEGER}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      goods_type_count = #{record.goodsTypeCount,jdbcType=INTEGER}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      link_tesco = #{record.linkTesco,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      receiver_name = #{record.receiverName,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      receiver_phone = #{record.receiverPhone,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      receiver_address = #{record.receiverAddress,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <if test="_parameter != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <include refid="Update_By_Example_Where_Clause" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -655,13 +685,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         link_tesco =#{linkTesco,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="receiverName != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        receiver_name = #{receiverName,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        receiver_name = #{receiverName,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="receiverPhone != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        receiver_phone = #{receiverPhone,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        receiver_phone = #{receiverPhone,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="receiverAddress != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        receiver_address = #{receiverAddress,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        receiver_address = #{receiverAddress,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </set> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     where id = #{id,jdbcType=BIGINT} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -698,7 +728,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       link_number = #{linkNumber,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       link_apply = #{linkApply,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       tenant_id = #{tenantId,jdbcType=BIGINT}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      delete_flag = #{deleteFlag,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      delete_flag = #{deleteFlag,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      voucher_picture = #{voucherPicture,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      goods_quantity = #{goodsQuantity,jdbcType=INTEGER}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      goods_type_count = #{goodsTypeCount,jdbcType=INTEGER}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      link_tesco = #{linkTesco,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      receiver_name = #{receiverName,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      receiver_phone = #{receiverPhone,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      receiver_address = #{receiverAddress,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     where id = #{id,jdbcType=BIGINT} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |