<?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.huaheng.pc.config.cycleCountPreference.mapper.CycleCountPreferenceMapper"> <resultMap id="BaseResultMap" type="com.huaheng.pc.config.cycleCountPreference.domain.CycleCountPreference"> <!--@mbg.generated--> <id column="id" jdbcType="INTEGER" property="id" /> <result column="code" jdbcType="VARCHAR" property="code" /> <result column="name" jdbcType="VARCHAR" property="name" /> <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" /> <result column="promptLocation" jdbcType="BOOLEAN" property="promptLocation" /> <result column="promptLpn" jdbcType="BOOLEAN" property="promptLpn" /> <result column="promptItem" jdbcType="BOOLEAN" property="promptItem" /> <result column="prompAdjustQty" jdbcType="BOOLEAN" property="prompAdjustQty" /> <result column="promptQuantity" jdbcType="BOOLEAN" property="promptQuantity" /> <result column="allowAddNewInventory" jdbcType="BOOLEAN" property="allowAddNewInventory" /> <result column="enable" jdbcType="BOOLEAN" property="enable" /> <result column="created" jdbcType="TIMESTAMP" property="created" /> <result column="createdBy" jdbcType="VARCHAR" property="createdBy" /> <result column="lastUpdated" jdbcType="TIMESTAMP" property="lastUpdated" /> <result column="lastUpdatedBy" jdbcType="VARCHAR" property="lastUpdatedBy" /> <result column="version" jdbcType="INTEGER" property="version" /> <result column="userDef1" jdbcType="VARCHAR" property="userDef1" /> <result column="userDef2" jdbcType="VARCHAR" property="userDef2" /> <result column="userDef3" jdbcType="VARCHAR" property="userDef3" /> <result column="processStamp" jdbcType="VARCHAR" property="processStamp" /> <result column="countByPiece" jdbcType="BOOLEAN" property="countByPiece" /> </resultMap> <sql id="Base_Column_List"> <!--@mbg.generated--> id, code, `name`, warehouseCode, promptLocation,prompAdjustQty, promptLpn, promptItem, promptQuantity, allowAddNewInventory, enable, created, createdBy, lastUpdated, lastUpdatedBy, version, userDef1, userDef2, userDef3, processStamp, countByPiece </sql> <select id="selectCycleCountPreferenceName" resultType="java.lang.String"> SELECT `name` FROM cycle_count_preference <where> <if test="cycleCountPreferenceCode != null and cycleCountPreferenceCode != ''"> AND code = #{cycleCountPreferenceCode} </if> </where> </select> </mapper>