<?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.ssm.manage.mapper.ServiceOrderMapper">

    <resultMap type="com.ssm.manage.entity.ServiceOrder" id="ServiceOrderMap">
        <result property="id" column="id" jdbcType="INTEGER"/>
        <result property="staffId" column="staff_id" jdbcType="INTEGER"/>
        <result property="staffNum" column="staff_num" jdbcType="VARCHAR"/>
        <result property="staffName" column="staff_name" jdbcType="VARCHAR"/>
        <result property="sex" column="sex" jdbcType="INTEGER"/>
        <result property="storeId" column="store_id" jdbcType="INTEGER"/>
        <result property="storeName" column="store_name" jdbcType="VARCHAR"/>
        <result property="state" column="state" jdbcType="INTEGER"/>
        <result property="row" column="row" jdbcType="INTEGER"/>
        <result property="founderStaff" column="founder_staff" jdbcType="VARCHAR"/>
        <result property="founderDatetime" column="Founder_datetime" jdbcType="TIMESTAMP"/>
        <result property="modifyBy" column="modify_by" jdbcType="VARCHAR"/>
        <result property="modifyDatetime" column="modify_datetime" jdbcType="TIMESTAMP"/>
        <result property="brandNumber" column="brand_number" jdbcType="VARCHAR"/>
        <result property="mobilePhone" column="mobile_phone" jdbcType="VARCHAR"/>
        <result property="identityCard" column="identity_card" jdbcType="VARCHAR"/>
        <result property="job" column="job" jdbcType="INTEGER"/>
        <result property="grade" column="grade" jdbcType="INTEGER"/>

        <result property="servicingTime" column="servicing_time" jdbcType="INTEGER"/>
        <result property="serviceStartDate" column="service_start_date" jdbcType="TIMESTAMP"/>
    </resultMap>

    <!--清空数据库-->
    <delete id="deleteall">
        DELETE FROM service_order WHERE store_id=#{storeId}
    </delete>


</mapper>

