|  |  | 
 |  |  |         <result column="realFADate" property="realFADate" /> | 
 |  |  |         <result column="planLADate" property="planLADate" /> | 
 |  |  |         <result column="realLADate" property="realLADate" /> | 
 |  |  |         <result column="planCarnumber" property="planCarnumber"/> | 
 |  |  |         <result column="Excess_amount" property="excessAmount"/> | 
 |  |  |         <result column="Excess_time" property="excessTime"/> | 
 |  |  |     </resultMap> | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     <select id="chaoPrice" resultMap="BaseResultMap"> | 
 |  |  |         select * from man_item where 1=1 and realdeAmt>plandeAmt | 
 |  |  |         <if test="uuid!=null  and uuid!=''"> | 
 |  |  |           and uuid=#{uuid} | 
 |  |  |         </if> | 
 |  |  |     </select> | 
 |  |  |     <select id="chaoTime" resultMap="BaseResultMap"> | 
 |  |  |          SELECT | 
 |  |  |         * | 
 |  |  |     FROM | 
 |  |  |         ( | 
 |  |  |             SELECT | 
 |  |  |                 *, | 
 |  |  |                 DateDiff(DAY, planinDate,realinDate) AS time_diff | 
 |  |  |             FROM | 
 |  |  |                 man_item | 
 |  |  |         ) t1 | 
 |  |  |     WHERE | 
 |  |  |         t1.time_diff > 0 | 
 |  |  |         <if test="uuid!=null  and uuid!=''"> | 
 |  |  |             and uuid=#{uuid} | 
 |  |  |         </if> | 
 |  |  |     </select> | 
 |  |  |     <select id="inspected" resultMap="BaseResultMap"> | 
 |  |  |         select * from man_item where real_end_time is not null | 
 |  |  |     </select> | 
 |  |  |     <select id="finished" resultMap="BaseResultMap"> | 
 |  |  |         select * from man_item where realLADate is null and realinDate is not null | 
 |  |  |     </select> | 
 |  |  | </mapper> |