peng
2026-03-24 ca41db25ab3da9ddd509b79fd783b60d2e66056f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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.tievd.jyz.mapper.ClientConfigMapper">
 
 
    <resultMap id="clientVo" type="com.tievd.jyz.entity.vo.ClientVo">
        <id column="id" property="id" />
        <collection property="clientConfigs" ofType="com.tievd.jyz.entity.ClientConfig"
                    column="id" select="listByClinetId"/>
    </resultMap>
 
    <select id="groupList" resultMap="clientVo">
      SELECT * FROM `t_client`
    </select>
 
    <select id="listByClinetId" resultType="com.tievd.jyz.entity.ClientConfig">
        select *, concat(time_value, ',', time_unit) timeStr
        from t_client_config where client_id=#{id}
    </select>
</mapper>