| <?xml version="1.0" encoding="UTF-8"?> | 
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | 
| <mapper namespace="com.zy.asrs.mapper.HalfBarcodeMapper"> | 
|   | 
|     <!-- 通用查询映射结果 --> | 
|     <resultMap id="BaseResultMap" type="com.zy.asrs.entity.HalfBarcode"> | 
|         <result column="zpallet" property="zpallet"/> | 
|         <result column="anfme" property="anfme" /> | 
|         <result column="price" property="price" /> | 
|         <result column="specs" property="specs" /> | 
|     </resultMap> | 
|   | 
|     <update id="half" parameterType="com.zy.asrs.entity.HalfBarcode"> | 
|         UPDATE cust_half_barcode | 
|         <set> | 
|             <if test="anfme != null"> | 
|                 anfme = #{anfme}, | 
|             </if> | 
|             <if test="price != null"> | 
|                 price = #{price}, | 
|             </if> | 
|         </set> | 
|         WHERE zpallet = #{zpallet} | 
|     </update> | 
| </mapper> |