<?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.glxp.mipsdl.dao.basic.BasicBussinessTypeDao">
    <resultMap id="BaseResultMap" type="com.glxp.mipsdl.entity.basic.BasicBussinessTypeEntity">
        <!--@mbg.generated-->
        <!--@Table basic_bussiness_type-->
        <id column="id" jdbcType="INTEGER" property="id"/>
        <result column="mainAction" jdbcType="VARCHAR" property="mainAction"/>
        <result column="action" jdbcType="VARCHAR" property="action"/>
        <result column="name" jdbcType="VARCHAR" property="name"/>
        <result column="enable" jdbcType="BOOLEAN" property="enable"/>
        <result column="remark" jdbcType="VARCHAR" property="remark"/>
        <result column="thirdSysFk" jdbcType="VARCHAR" property="thirdSysFk"/>
        <result column="genUnit" jdbcType="BOOLEAN" property="genUnit"/>
        <result column="innerOrder" jdbcType="BOOLEAN" property="innerOrder"/>
        <result column="secCheckEnable" jdbcType="BOOLEAN" property="secCheckEnable"/>
        <result column="checkEnable" jdbcType="BOOLEAN" property="checkEnable"/>
        <result column="checkUdims" jdbcType="BOOLEAN" property="checkUdims"/>
        <result column="checkPdaEd" jdbcType="BOOLEAN" property="checkPdaEd"/>
        <result column="checkPdaUn" jdbcType="BOOLEAN" property="checkPdaUn"/>
        <result column="checkPc" jdbcType="BOOLEAN" property="checkPc"/>
        <result column="checkWebNew" jdbcType="BOOLEAN" property="checkWebNew"/>
        <result column="checkSp" jdbcType="BOOLEAN" property="checkSp"/>
        <result column="checkChange" jdbcType="BOOLEAN" property="checkChange"/>
        <result column="secCheckUdims" jdbcType="BOOLEAN" property="secCheckUdims"/>
        <result column="secCheckPdaEd" jdbcType="BOOLEAN" property="secCheckPdaEd"/>
        <result column="secCheckPdaUn" jdbcType="BOOLEAN" property="secCheckPdaUn"/>
        <result column="secCheckPc" jdbcType="BOOLEAN" property="secCheckPc"/>
        <result column="secCheckWebNew" jdbcType="BOOLEAN" property="secCheckWebNew"/>
        <result column="secCheckChange" jdbcType="BOOLEAN" property="secCheckChange"/>
        <result column="secCheckSp" jdbcType="BOOLEAN" property="secCheckSp"/>
        <result column="corpType" jdbcType="BOOLEAN" property="corpType"/>
        <result column="supplementOrderType" jdbcType="VARCHAR" property="supplementOrderType"/>
        <result column="checkBalance" jdbcType="BOOLEAN" property="checkBalance"/>
        <result column="secCheckBalance" jdbcType="BOOLEAN" property="secCheckBalance"/>
        <result column="useDyCount" jdbcType="BOOLEAN" property="useDyCount"/>
        <result column="expireTip" jdbcType="BOOLEAN" property="expireTip"/>
        <result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
        <result column="defaultUnit" jdbcType="VARCHAR" property="defaultUnit"/>
        <result column="prefix" jdbcType="VARCHAR" property="prefix"/>
        <result column="outToSpms" jdbcType="BOOLEAN" property="outToSpms"/>
        <result column="ullageFill" jdbcType="BOOLEAN" property="ullageFill"/>
        <result column="scanPreIn" jdbcType="BOOLEAN" property="scanPreIn"/>
        <result column="vailInv" jdbcType="BOOLEAN" property="vailInv"/>
        <result column="entrutSpms" jdbcType="BOOLEAN" property="entrutSpms"/>
        <result column="codeFillCheck" jdbcType="BOOLEAN" property="codeFillCheck"/>
        <result column="defaultSubInv" jdbcType="BOOLEAN" property="defaultSubInv"/>
        <result column="defaultInv" jdbcType="BOOLEAN" property="defaultInv"/>
        <result column="orderVisibleType" jdbcType="BOOLEAN" property="orderVisibleType"/>
        <result column="checkCopy" jdbcType="BOOLEAN" property="checkCopy"/>
        <result column="secCheckCopy" jdbcType="BOOLEAN" property="secCheckCopy"/>
        <result column="originAction" jdbcType="VARCHAR" property="originAction"/>
        <result column="advanceType" jdbcType="BOOLEAN" property="advanceType"/>
        <result column="changeEnable" jdbcType="BOOLEAN" property="changeEnable"/>
        <result column="spUse" jdbcType="BOOLEAN" property="spUse"/>
        <result column="preIn" jdbcType="BOOLEAN" property="preIn"/>
        <result column="supplementAll" jdbcType="BOOLEAN" property="supplementAll"/>
        <result column="createUser" jdbcType="VARCHAR" property="createUser"/>
        <result column="createTime" jdbcType="TIMESTAMP" property="createTime"/>
        <result column="updateUser" jdbcType="VARCHAR" property="updateUser"/>
    </resultMap>
    <sql id="Base_Column_List">
        <!--@mbg.generated-->
        id,
        mainAction,
        `action`,
        `name`,
        `enable`,
        remark,
        thirdSysFk,
        genUnit,
        innerOrder,
        secCheckEnable,
        checkEnable,
        checkUdims,
        checkPdaEd,
        checkPdaUn,
        checkPc,
        checkWebNew,
        checkSp,
        checkChange,
        secCheckUdims,
        secCheckPdaEd,
        secCheckPdaUn,
        secCheckPc,
        secCheckWebNew,
        secCheckChange,
        secCheckSp,
        corpType,
        supplementOrderType,
        checkBalance,
        secCheckBalance,
        useDyCount,
        expireTip,
        updateTime,
        defaultUnit,
        `prefix`,
        outToSpms,
        ullageFill,
        scanPreIn,
        vailInv,
        entrutSpms,
        codeFillCheck,
        defaultSubInv,
        defaultInv,
        orderVisibleType,
        checkCopy,
        secCheckCopy,
        originAction,
        advanceType,
        changeEnable,
        spUse,
        preIn,
        supplementAll,
        `createUser`,
        createTime,
        updateUser
    </sql>

    <select id="selectByAction" resultMap="BaseResultMap">
        select *
        from basic_bussiness_type
        <where>
            <if test="action != null and action != ''">
                AND action = #{action}
            </if>
        </where>
    </select>

</mapper>
