zhangherong
2025-06-12 6abc1a2fb78003bb1ea6283d813b8ccc0bcd9b2b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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.jeecg.modules.base.mapper.UnitCategoryMapper">
 
    <resultMap id="UnitCategory" type="org.jeecg.modules.base.entity.UnitCategory" >
        <result column="id" property="id" jdbcType="VARCHAR"/>
        <result column="code" property="code" jdbcType="VARCHAR"/>
        <result column="name" property="name" jdbcType="VARCHAR"/>
        <result column="pid" property="pid" jdbcType="VARCHAR"/>
        <result column="unit_category_uda1" property="unitCategoryUda1" jdbcType="VARCHAR"/>
        <result column="unit_category_uda2" property="unitCategoryUda2" jdbcType="VARCHAR"/>
        <result column="unit_category_uda3" property="unitCategoryUda3" jdbcType="VARCHAR"/>
        <result column="unit_category_uda4" property="unitCategoryUda4" jdbcType="VARCHAR"/>
        <result column="unit_category_uda5" property="unitCategoryUda5" jdbcType="VARCHAR"/>
        <result column="create_by" property="createBy" jdbcType="VARCHAR"/>
        <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
        <result column="update_by" property="updateBy" jdbcType="VARCHAR"/>
        <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
        <result column="del_flag" property="delFlag" jdbcType="VARCHAR"/>
        <result column="remark" property="remark" jdbcType="VARCHAR"/>
    </resultMap>
 
    <select id="getList" resultMap="UnitCategory">
       select id,code,name,pid,create_by,create_time,update_by,update_time,del_flag,remark from mom_base_unit_category where pid = #{id}
    </select>
</mapper>