Helius
2021-06-30 02b38bb7c08d68fffc6af25e4ba00a456d96e94e
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
27
28
29
30
31
32
33
34
<?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.xzx.gc.user.mapper.PlatformAccountInfoMapper">
  <resultMap id="BaseResultMap" type="com.xzx.gc.entity.PlatformAccountInfo">
    <!--
      WARNING - @mbg.generated
    -->
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="field_key" jdbcType="VARCHAR" property="fieldKey" />
    <result column="field_value" jdbcType="VARCHAR" property="fieldValue" />
    <result column="field_desc" jdbcType="VARCHAR" property="fieldDesc" />
    <result column="del_flag" jdbcType="SMALLINT" property="delFlag" />
    <result column="create_time" jdbcType="VARCHAR" property="createTime" />
  </resultMap>
 
  <select id="queryAccountByAdminId" resultType="java.lang.String">
    select group_concat(field_value) as account
    from xzx_platform_account_info;
  </select>
 
    <update id="updatePlatformMoney">
        UPDATE xzx_platform_account_info
        SET
            field_value = #{money}
        WHERE field_key = 'money'
    </update>
    <update id="updatePlatformHbb">
        UPDATE xzx_platform_account_info
        SET
            field_value = #{hbb}
        WHERE field_key = 'hbb'
    </update>
 
</mapper>