|  |  | 
 |  |  |             <result property="outTime" column="out_time" jdbcType="TIMESTAMP"/> | 
 |  |  |             <result property="updatedBy" column="updated_by" jdbcType="BIGINT"/> | 
 |  |  |             <result property="memo" column="memo" jdbcType="VARCHAR"/> | 
 |  |  |             <result property="number" column="number" jdbcType="INTEGER"/> | 
 |  |  |     </resultMap> | 
 |  |  |  | 
 |  |  |     <sql id="Base_Column_List"> | 
 |  |  | 
 |  |  |         curr_node,node_content,device_cycle_content, | 
 |  |  |         status,result,error_msg, | 
 |  |  |         assistants,in_time,out_time, | 
 |  |  |         updated_by,memo | 
 |  |  |         updated_by,memo,number | 
 |  |  |     </sql> | 
 |  |  | <!--    <update id="createNewTable">--> | 
 |  |  | <!--        CREATE TABLE ${newTableName} LIKE sta_device_production_log--> | 
 |  |  | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  |     <!-- 将过往日志移动到 sta_device_production_log_past --> | 
 |  |  |  | 
 |  |  |     <insert id="insertIntoPastLogs"> | 
 |  |  |         INSERT INTO sta_device_production_log_past SELECT * FROM sta_device_production_log WHERE DATE(out_time) != CURDATE(); | 
 |  |  |     </insert> | 
 |  |  |     <delete id="deleteFromLogTable"> | 
 |  |  |         DELETE FROM sta_device_production_log WHERE DATE(out_time) != CURDATE(); | 
 |  |  |     </delete> | 
 |  |  |  | 
 |  |  |     <select id="countLastDayLogs" resultType="_long"> | 
 |  |  |         SELECT COUNT(1) FROM sta_device_production_log WHERE DATE(out_time) != CURDATE(); | 
 |  |  |     </select> | 
 |  |  | </mapper> |