<?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.ssm.manage.mapper.SysCompanyMapper">

  <resultMap type="com.ssm.manage.entity.SysCompany" id="SysCompanyMap">
    <result property="companyId" column="company_id" jdbcType="INTEGER"/>
    <result property="companyCode" column="company_code" jdbcType="VARCHAR"/>
    <result property="companyName" column="company_name" jdbcType="VARCHAR"/>
    <result property="legalPerson" column="legal_person" jdbcType="VARCHAR"/>
    <result property="parentId" column="parent_id" jdbcType="INTEGER"/>
    <result property="parentCode" column="parent_code" jdbcType="VARCHAR"/>
    <result property="parentName" column="parent_name" jdbcType="VARCHAR"/>
    <result property="creditNumber" column="credit_number" jdbcType="VARCHAR"/>
    <result property="registrationDate" column="registration_date" jdbcType="VARCHAR"/>
    <result property="registeredFund" column="registered_fund" jdbcType="NUMERIC"/>
    <result property="manageAge" column="manage_age" jdbcType="INTEGER"/>
    <result property="nature" column="nature" jdbcType="VARCHAR"/>
    <result property="businessScope" column="business_scope" jdbcType="VARCHAR"/>
    <result property="site" column="site" jdbcType="VARCHAR"/>
    <result property="remark" column="remark" jdbcType="VARCHAR"/>
    <result property="funderId" column="funder_id" jdbcType="INTEGER"/>
    <result property="funderName" column="funder_name" jdbcType="VARCHAR"/>
    <result property="funderDate" column="funder_date" jdbcType="TIMESTAMP"/>
    <result property="updatedId" column="updated_id" jdbcType="INTEGER"/>
    <result property="updatedName" column="updated_name" jdbcType="VARCHAR"/>
    <result property="updatedDate" column="updated_date" jdbcType="TIMESTAMP"/>
  </resultMap>

  <sql id="BaseColumnList">
    id,
    store_id,
    store_name,
    member_id,
    member_name,
    member_identity,
    member_phone,
    account_id,
    account_name,
    account_type,
    doc_id,
    doc_num,
    input_date,
    doc_type,
    trade_id,
    trade_name,
    trade_money,
    trade_count,
    account_in_money,
    account_in_count,
    account_spend_money,
    account_gift_spend_money,
    account_spend_count,
    account_rest_money,
    account_consume_money,
    account_rest_count,
    account_consume_count,
    account_gift_rest_money,
    account_gift_rest_count,
    account_gift_consume_money,
    account_gift_consume_count
  </sql>


</mapper>