<?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="org.springblade.modules.pl.process.mapper.ProcessMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="processResultMap" type="org.springblade.modules.pl.process.entity.ProcessEntity">
        <result column="id" property="id"/>
        <result column="tenant_id" property="tenantId"/>
        <result column="factory_id" property="factoryId"/>
        <result column="code" property="code"/>
        <result column="name" property="name"/>
        <result column="type" property="type"/>
        <result column="is_retrospect" property="isRetrospect"/>
        <result column="is_crux" property="isCrux"/>
        <result column="guidebook_urls" property="guidebookUrls"/>
        <result column="equipment" property="equipment"/>
        <result column="life_span" property="lifeSpan"/>
        <result column="is_photograph" property="isPhotograph"/>
        <result column="is_downline" property="isDownline"/>
        <result column="create_user" property="createUser"/>
        <result column="create_dept" property="createDept"/>
        <result column="create_time" property="createTime"/>
        <result column="update_user" property="updateUser"/>
        <result column="update_time" property="updateTime"/>
        <result column="status" property="status"/>
        <result column="is_deleted" property="isDeleted"/>
    </resultMap>


    <select id="selectProcessPage" resultMap="processResultMap">
        select * from pl_process where is_deleted = 0
    </select>


    <select id="exportProcess" resultType="org.springblade.modules.pl.process.excel.ProcessExcel">
        SELECT * FROM pl_process ${ew.customSqlSegment}
    </select>

</mapper>
