Jelajahi Sumber

资金模块

huangx 7 tahun lalu
induk
melakukan
c504e90726

+ 15 - 0
applications/money/money-api/pom.xml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>money</artifactId>
+        <groupId>com.usoftchina.saas</groupId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>money-api</artifactId>
+
+
+</project>

+ 21 - 0
applications/money/money-dto/pom.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>money</artifactId>
+        <groupId>com.usoftchina.saas</groupId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>money-dto</artifactId>
+    <dependencies>
+        <dependency>
+            <groupId>com.usoftchina.saas</groupId>
+            <artifactId>core</artifactId>
+        </dependency>
+    </dependencies>
+
+
+</project>

+ 158 - 0
applications/money/money-dto/src/main/java/com/usoftchina/saas/money/po/Banksubledger.java

@@ -0,0 +1,158 @@
+package com.usoftchina.saas.money.po;
+
+import com.usoftchina.saas.base.entity.CommonBaseEntity;
+
+import java.util.Date;
+
+public class Banksubledger extends CommonBaseEntity{
+    private Integer bl_id;  //ID
+
+    private Integer bl_ym;  //期间
+
+    private Integer bl_bankid;  //账户ID
+
+    private String bl_bankcode; //账户编号
+
+    private String bl_bankname;  //账户名称
+
+    private String bl_code;     //单据编号
+ 
+    private String bl_kind;     //单据类型
+
+    private Date bl_date;      //单据日期
+
+    private String bl_asstype;   //往来类型
+
+    private String bl_asscode;    //往来单位编号
+
+    private String bl_assname;    //往来单位名称
+
+    private Double bl_income;    //收入
+
+    private Double bl_spending;   //支出
+
+    private String bl_manname;    //收/付款人
+ 
+    private String bl_remark;    //备注
+
+    public Integer getBl_id() {
+        return bl_id;
+    }
+
+    public void setBl_id(Integer bl_id) {
+        this.bl_id = bl_id;
+    }
+
+    public Integer getBl_ym() {
+        return bl_ym;
+    }
+
+    public void setBl_ym(Integer bl_ym) {
+        this.bl_ym = bl_ym;
+    }
+
+    public Integer getBl_bankid() {
+        return bl_bankid;
+    }
+
+    public void setBl_bankid(Integer bl_bankid) {
+        this.bl_bankid = bl_bankid;
+    }
+
+    public String getBl_bankcode() {
+        return bl_bankcode;
+    }
+
+    public void setBl_bankcode(String bl_bankcode) {
+        this.bl_bankcode = bl_bankcode == null ? null : bl_bankcode.trim();
+    }
+
+    public String getBl_bankname() {
+        return bl_bankname;
+    }
+
+    public void setBl_bankname(String bl_bankname) {
+        this.bl_bankname = bl_bankname == null ? null : bl_bankname.trim();
+    }
+
+    public String getBl_code() {
+        return bl_code;
+    }
+
+    public void setBl_code(String bl_code) {
+        this.bl_code = bl_code == null ? null : bl_code.trim();
+    }
+
+    public String getBl_kind() {
+        return bl_kind;
+    }
+
+    public void setBl_kind(String bl_kind) {
+        this.bl_kind = bl_kind == null ? null : bl_kind.trim();
+    }
+
+    public Date getBl_date() {
+        return bl_date;
+    }
+
+    public void setBl_date(Date bl_date) {
+        this.bl_date = bl_date;
+    }
+
+    public String getBl_asstype() {
+        return bl_asstype;
+    }
+
+    public void setBl_asstype(String bl_asstype) {
+        this.bl_asstype = bl_asstype == null ? null : bl_asstype.trim();
+    }
+
+    public String getBl_asscode() {
+        return bl_asscode;
+    }
+
+    public void setBl_asscode(String bl_asscode) {
+        this.bl_asscode = bl_asscode == null ? null : bl_asscode.trim();
+    }
+
+    public String getBl_assname() {
+        return bl_assname;
+    }
+
+    public void setBl_assname(String bl_assname) {
+        this.bl_assname = bl_assname == null ? null : bl_assname.trim();
+    }
+
+    public Double getBl_income() {
+        return bl_income;
+    }
+
+    public void setBl_income(Double bl_income) {
+        this.bl_income = bl_income;
+    }
+
+    public Double getBl_spending() {
+        return bl_spending;
+    }
+
+    public void setBl_spending(Double bl_spending) {
+        this.bl_spending = bl_spending;
+    }
+
+    public String getBl_manname() {
+        return bl_manname;
+    }
+
+    public void setBl_manname(String bl_manname) {
+        this.bl_manname = bl_manname == null ? null : bl_manname.trim();
+    }
+
+    public String getBl_remark() {
+        return bl_remark;
+    }
+
+    public void setBl_remark(String bl_remark) {
+        this.bl_remark = bl_remark == null ? null : bl_remark.trim();
+    }
+
+}

+ 15 - 0
applications/money/money-server/pom.xml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>money</artifactId>
+        <groupId>com.usoftchina.saas</groupId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>money-server</artifactId>
+
+
+</project>

+ 18 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/controller/BanksubledgerController.java

@@ -0,0 +1,18 @@
+package com.usoftchina.saas.money.controller;
+
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+/**
+ * @author hx
+ * @create 2018-10-19 14:23
+ *
+ */
+@RestController
+@RequestMapping("/money")
+public class BanksubledgerController {
+
+    @RequestMapping("/test")
+    public String test() {
+        return "TEST";
+    }
+}

+ 27 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/mapper/BanksubledgerMapper.java

@@ -0,0 +1,27 @@
+package com.usoftchina.saas.money.mapper;
+
+
+
+public interface BanksubledgerMapper {
+    int countByExample(BanksubledgerExample example);
+
+    int deleteByExample(BanksubledgerExample example);
+
+    int deleteByPrimaryKey(Integer bl_id);
+
+    int insert(Banksubledger record);
+
+    int insertSelective(Banksubledger record);
+
+    List<Banksubledger> selectByExample(BanksubledgerExample example);
+
+    Banksubledger selectByPrimaryKey(Integer bl_id);
+
+    int updateByExampleSelective(@Param("record") Banksubledger record, @Param("example") BanksubledgerExample example);
+
+    int updateByExample(@Param("record") Banksubledger record, @Param("example") BanksubledgerExample example);
+
+    int updateByPrimaryKeySelective(Banksubledger record);
+
+    int updateByPrimaryKey(Banksubledger record);
+}

+ 4 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/BanksubledgerService.java

@@ -0,0 +1,4 @@
+package com.usoftchina.saas.money.service;
+
+public interface BanksubledgerService {
+}

+ 6 - 0
applications/money/money-server/src/main/java/com/usoftchina/saas/money/service/impl/BanksubledgerServiceImpl.java

@@ -0,0 +1,6 @@
+package com.usoftchina.saas.money.service.impl;
+
+import com.usoftchina.saas.money.service.BanksubledgerService;
+
+public class BanksubledgerServiceImpl implements BanksubledgerService {
+}

+ 61 - 0
applications/money/money-server/src/main/resources/application.yml

@@ -0,0 +1,61 @@
+spring:
+  application:
+    name: money-server
+  security:
+    user:
+      name: admin
+      password: select111***
+  datasource:
+    driver-class-name: com.mysql.jdbc.Driver
+    url: jdbc:mysql://192.168.253.12:3306/saas_biz?characterEncoding=utf-8&useSSL=false&allowMultiQueries=true
+    username: root
+    password: select111***
+    hikari:
+      minimum-idle: 5
+      maximum-pool-size: 50
+      idle-timeout: 30000
+      max-lifetime: 1800000
+      connection-timeout: 30000
+  messages:
+    basename: i18n/messages
+  rabbitmq:
+    host: 192.168.0.176
+    port: 5672
+    password: guest
+    username: guest
+  zipkin:
+    sender:
+      type: rabbit
+    locator:
+      discovery:
+        enabled: true
+  sleuth:
+    sampler:
+      probability: 1.0
+eureka:
+  instance:
+    leaseRenewalIntervalInSeconds: 10
+    health-check-url-path: /actuator/health
+    status-page-url-path: /actuator/info
+    metadata-map:
+      user.name: ${spring.security.user.name}
+      user.password: ${spring.security.user.password}
+  client:
+    registryFetchIntervalSeconds: 5
+    serviceUrl:
+      defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@192.168.0.181:8500/eureka/
+server:
+  port: 8900
+  tomcat:
+    uri-encoding: UTF-8
+info:
+  name: '@project.artifactId@'
+  description: '@project.description@'
+  version: '@project.version@'
+  spring-boot-version: '@spring.boot.version@'
+  spring-cloud-version: '@spring.cloud.version@'
+mybatis:
+  type-aliases-package: com.usoftchina.saas.money.po
+  mapper-locations: classpath:mapper/*.xml
+auth:
+  public-key: auth/pub.key

TEMPAT SAMPAH
applications/money/money-server/src/main/resources/auth/pub.key


+ 64 - 0
applications/money/money-server/src/main/resources/logback-spring.xml

@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+    <include resource="org/springframework/boot/logging/logback/defaults.xml" />
+    <jmxConfigurator/>
+
+    <!--
+    %m
+    输出代码中指定的消息
+    %p
+    输出优先级,即DEBUG,INFO,WARN,ERROR,FATAL
+    %r
+    输出自应用启动到输出该log信息耗费的毫秒数
+    %c
+    输出所属的类目,通常就是所在类的全名
+    %t
+    输出产生该日志事件的线程名
+    %n
+    输出一个回车换行符,Windows平台为“\r\n”,Unix平台为“\n”
+    %d
+    输出日志时间点的日期或时间,默认格式为ISO8601,也可以在其后指定格式,比如:%d{yyy MMM dd HH:mm:ss,SSS},
+    输出类似:2002年10月18日 22:10:28,921
+    %l
+    输出日志事件的发生位置,包括类目名、发生的线程,以及在代码中的行数。举例:Testlog4.main(TestLog4.java:10)
+    -->
+
+    <springProperty scope="context" name="log.path" source="logging.path" defaultValue="/var/log/saas/money-server"/>
+    <springProperty scope="context" name="spring.application.name" source="spring.application.name" defaultValue="money-server"/>
+    <springProperty scope="context" name="spring.profiles.active" source="spring.profiles.active" defaultValue="dev"/>
+    <springProperty scope="context" name="common-pattern" source="logging.common-pattern" defaultValue="%d{yyyy-MM-dd HH:mm:ss.SSS}:[%5p] [%t:%r] [%C{1}:%M:%L] --> %m%n"/>
+    <springProperty scope="context" name="log.level.console" source="logging.level.console" defaultValue="INFO"/>
+
+    <contextName>${spring.application.name}-${spring.profiles.active}-logback</contextName>
+
+
+    <appender name="CONSOLE_APPENDER" class="ch.qos.logback.core.ConsoleAppender">
+        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
+            <level>${log.level.console}</level>
+        </filter>
+        <encoder>
+            <pattern>${common-pattern}</pattern>
+        </encoder>
+    </appender>
+
+    <appender name="ROOT_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">
+        <file>${log.path}/root.log</file>
+        <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
+            <!-- 每天一归档 -->
+            <fileNamePattern>${log.path}/%d{yyyy-MM}/root-%d{yyyy-MM-dd}-%i.log.gz</fileNamePattern>
+            <!-- 单个日志文件最多 100MB, 60天的日志周期,最大不能超过20GB -->
+            <maxFileSize>128MB</maxFileSize>
+            <maxHistory>60</maxHistory>
+            <totalSizeCap>20GB</totalSizeCap>
+        </rollingPolicy>
+        <encoder>
+            <pattern>${common-pattern}</pattern>
+        </encoder>
+    </appender>
+
+    <root level="${log.level.console}">
+        <appender-ref ref="CONSOLE_APPENDER"/>
+        <appender-ref ref="ROOT_APPENDER"/>
+    </root>
+
+</configuration>

+ 832 - 0
applications/money/money-server/src/main/resources/mapper/BanksubledgerMapper.xml

@@ -0,0 +1,832 @@
+<?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.usoftchina.saas.money.mapper.BanksubledgerMapper">
+  <resultMap id="BaseResultMap" type="com.usoftchina.saas.money.po.Banksubledger">
+    <id column="bl_id" jdbcType="INTEGER" property="bl_id" />
+    <result column="bl_ym" jdbcType="INTEGER" property="bl_ym" />
+    <result column="bl_bankid" jdbcType="INTEGER" property="bl_bankid" />
+    <result column="bl_bankcode" jdbcType="VARCHAR" property="bl_bankcode" />
+    <result column="bl_bankname" jdbcType="VARCHAR" property="bl_bankname" />
+    <result column="bl_code" jdbcType="VARCHAR" property="bl_code" />
+    <result column="bl_kind" jdbcType="VARCHAR" property="bl_kind" />
+    <result column="bl_date" jdbcType="TIMESTAMP" property="bl_date" />
+    <result column="bl_asstype" jdbcType="VARCHAR" property="bl_asstype" />
+    <result column="bl_asscode" jdbcType="VARCHAR" property="bl_asscode" />
+    <result column="bl_assname" jdbcType="VARCHAR" property="bl_assname" />
+    <result column="bl_income" jdbcType="DOUBLE" property="bl_income" />
+    <result column="bl_spending" jdbcType="DOUBLE" property="bl_spending" />
+    <result column="bl_manname" jdbcType="VARCHAR" property="bl_manname" />
+    <result column="bl_remark" jdbcType="VARCHAR" property="bl_remark" />
+    <result column="companyid" jdbcType="INTEGER" property="companyid" />
+    <result column="updaterId" jdbcType="INTEGER" property="updaterId" />
+    <result column="updatedate" jdbcType="TIMESTAMP" property="updatedate" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    bl_id, bl_ym, bl_bankid, bl_bankcode, bl_bankname, bl_code, bl_kind, bl_date, bl_asstype, 
+    bl_asscode, bl_assname, bl_income, bl_spending, bl_manname, bl_remark, companyid, 
+    updaterId, updatedate
+  </sql>
+  <select id="selectByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample" resultMap="BaseResultMap">
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from banksubledger
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from banksubledger
+    where bl_id = #{bl_id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    delete from banksubledger
+    where bl_id = #{bl_id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample">
+    delete from banksubledger
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.usoftchina.saas.money.po.Banksubledger">
+    insert into banksubledger (bl_id, bl_ym, bl_bankid, 
+      bl_bankcode, bl_bankname, bl_code, 
+      bl_kind, bl_date, bl_asstype, 
+      bl_asscode, bl_assname, bl_income, 
+      bl_spending, bl_manname, bl_remark, 
+      companyid, updaterId, updatedate
+      )
+    values (#{bl_id,jdbcType=INTEGER}, #{bl_ym,jdbcType=INTEGER}, #{bl_bankid,jdbcType=INTEGER}, 
+      #{bl_bankcode,jdbcType=VARCHAR}, #{bl_bankname,jdbcType=VARCHAR}, #{bl_code,jdbcType=VARCHAR}, 
+      #{bl_kind,jdbcType=VARCHAR}, #{bl_date,jdbcType=TIMESTAMP}, #{bl_asstype,jdbcType=VARCHAR}, 
+      #{bl_asscode,jdbcType=VARCHAR}, #{bl_assname,jdbcType=VARCHAR}, #{bl_income,jdbcType=DOUBLE}, 
+      #{bl_spending,jdbcType=DOUBLE}, #{bl_manname,jdbcType=VARCHAR}, #{bl_remark,jdbcType=VARCHAR}, 
+      #{companyid,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER}, #{updatedate,jdbcType=TIMESTAMP}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Banksubledger">
+    insert into banksubledger
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="bl_id != null">
+        bl_id,
+      </if>
+      <if test="bl_ym != null">
+        bl_ym,
+      </if>
+      <if test="bl_bankid != null">
+        bl_bankid,
+      </if>
+      <if test="bl_bankcode != null">
+        bl_bankcode,
+      </if>
+      <if test="bl_bankname != null">
+        bl_bankname,
+      </if>
+      <if test="bl_code != null">
+        bl_code,
+      </if>
+      <if test="bl_kind != null">
+        bl_kind,
+      </if>
+      <if test="bl_date != null">
+        bl_date,
+      </if>
+      <if test="bl_asstype != null">
+        bl_asstype,
+      </if>
+      <if test="bl_asscode != null">
+        bl_asscode,
+      </if>
+      <if test="bl_assname != null">
+        bl_assname,
+      </if>
+      <if test="bl_income != null">
+        bl_income,
+      </if>
+      <if test="bl_spending != null">
+        bl_spending,
+      </if>
+      <if test="bl_manname != null">
+        bl_manname,
+      </if>
+      <if test="bl_remark != null">
+        bl_remark,
+      </if>
+      <if test="companyid != null">
+        companyid,
+      </if>
+      <if test="updaterId != null">
+        updaterId,
+      </if>
+      <if test="updatedate != null">
+        updatedate,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="bl_id != null">
+        #{bl_id,jdbcType=INTEGER},
+      </if>
+      <if test="bl_ym != null">
+        #{bl_ym,jdbcType=INTEGER},
+      </if>
+      <if test="bl_bankid != null">
+        #{bl_bankid,jdbcType=INTEGER},
+      </if>
+      <if test="bl_bankcode != null">
+        #{bl_bankcode,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_bankname != null">
+        #{bl_bankname,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_code != null">
+        #{bl_code,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_kind != null">
+        #{bl_kind,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_date != null">
+        #{bl_date,jdbcType=TIMESTAMP},
+      </if>
+      <if test="bl_asstype != null">
+        #{bl_asstype,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_asscode != null">
+        #{bl_asscode,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_assname != null">
+        #{bl_assname,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_income != null">
+        #{bl_income,jdbcType=DOUBLE},
+      </if>
+      <if test="bl_spending != null">
+        #{bl_spending,jdbcType=DOUBLE},
+      </if>
+      <if test="bl_manname != null">
+        #{bl_manname,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_remark != null">
+        #{bl_remark,jdbcType=VARCHAR},
+      </if>
+      <if test="companyid != null">
+        #{companyid,jdbcType=INTEGER},
+      </if>
+      <if test="updaterId != null">
+        #{updaterId,jdbcType=INTEGER},
+      </if>
+      <if test="updatedate != null">
+        #{updatedate,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample" resultType="java.lang.Integer">
+    select count(*) from banksubledger
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    update banksubledger
+    <set>
+      <if test="record.bl_id != null">
+        bl_id = #{record.bl_id,jdbcType=INTEGER},
+      </if>
+      <if test="record.bl_ym != null">
+        bl_ym = #{record.bl_ym,jdbcType=INTEGER},
+      </if>
+      <if test="record.bl_bankid != null">
+        bl_bankid = #{record.bl_bankid,jdbcType=INTEGER},
+      </if>
+      <if test="record.bl_bankcode != null">
+        bl_bankcode = #{record.bl_bankcode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_bankname != null">
+        bl_bankname = #{record.bl_bankname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_code != null">
+        bl_code = #{record.bl_code,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_kind != null">
+        bl_kind = #{record.bl_kind,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_date != null">
+        bl_date = #{record.bl_date,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.bl_asstype != null">
+        bl_asstype = #{record.bl_asstype,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_asscode != null">
+        bl_asscode = #{record.bl_asscode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_assname != null">
+        bl_assname = #{record.bl_assname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_income != null">
+        bl_income = #{record.bl_income,jdbcType=DOUBLE},
+      </if>
+      <if test="record.bl_spending != null">
+        bl_spending = #{record.bl_spending,jdbcType=DOUBLE},
+      </if>
+      <if test="record.bl_manname != null">
+        bl_manname = #{record.bl_manname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_remark != null">
+        bl_remark = #{record.bl_remark,jdbcType=VARCHAR},
+      </if>
+      <if test="record.companyid != null">
+        companyid = #{record.companyid,jdbcType=INTEGER},
+      </if>
+      <if test="record.updaterId != null">
+        updaterId = #{record.updaterId,jdbcType=INTEGER},
+      </if>
+      <if test="record.updatedate != null">
+        updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    update banksubledger
+    set bl_id = #{record.bl_id,jdbcType=INTEGER},
+      bl_ym = #{record.bl_ym,jdbcType=INTEGER},
+      bl_bankid = #{record.bl_bankid,jdbcType=INTEGER},
+      bl_bankcode = #{record.bl_bankcode,jdbcType=VARCHAR},
+      bl_bankname = #{record.bl_bankname,jdbcType=VARCHAR},
+      bl_code = #{record.bl_code,jdbcType=VARCHAR},
+      bl_kind = #{record.bl_kind,jdbcType=VARCHAR},
+      bl_date = #{record.bl_date,jdbcType=TIMESTAMP},
+      bl_asstype = #{record.bl_asstype,jdbcType=VARCHAR},
+      bl_asscode = #{record.bl_asscode,jdbcType=VARCHAR},
+      bl_assname = #{record.bl_assname,jdbcType=VARCHAR},
+      bl_income = #{record.bl_income,jdbcType=DOUBLE},
+      bl_spending = #{record.bl_spending,jdbcType=DOUBLE},
+      bl_manname = #{record.bl_manname,jdbcType=VARCHAR},
+      bl_remark = #{record.bl_remark,jdbcType=VARCHAR},
+      companyid = #{record.companyid,jdbcType=INTEGER},
+      updaterId = #{record.updaterId,jdbcType=INTEGER},
+      updatedate = #{record.updatedate,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.money.po.Banksubledger">
+    update banksubledger
+    <set>
+      <if test="bl_ym != null">
+        bl_ym = #{bl_ym,jdbcType=INTEGER},
+      </if>
+      <if test="bl_bankid != null">
+        bl_bankid = #{bl_bankid,jdbcType=INTEGER},
+      </if>
+      <if test="bl_bankcode != null">
+        bl_bankcode = #{bl_bankcode,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_bankname != null">
+        bl_bankname = #{bl_bankname,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_code != null">
+        bl_code = #{bl_code,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_kind != null">
+        bl_kind = #{bl_kind,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_date != null">
+        bl_date = #{bl_date,jdbcType=TIMESTAMP},
+      </if>
+      <if test="bl_asstype != null">
+        bl_asstype = #{bl_asstype,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_asscode != null">
+        bl_asscode = #{bl_asscode,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_assname != null">
+        bl_assname = #{bl_assname,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_income != null">
+        bl_income = #{bl_income,jdbcType=DOUBLE},
+      </if>
+      <if test="bl_spending != null">
+        bl_spending = #{bl_spending,jdbcType=DOUBLE},
+      </if>
+      <if test="bl_manname != null">
+        bl_manname = #{bl_manname,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_remark != null">
+        bl_remark = #{bl_remark,jdbcType=VARCHAR},
+      </if>
+      <if test="companyid != null">
+        companyid = #{companyid,jdbcType=INTEGER},
+      </if>
+      <if test="updaterId != null">
+        updaterId = #{updaterId,jdbcType=INTEGER},
+      </if>
+      <if test="updatedate != null">
+        updatedate = #{updatedate,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where bl_id = #{bl_id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.money.po.Banksubledger">
+    update banksubledger
+    set bl_ym = #{bl_ym,jdbcType=INTEGER},
+      bl_bankid = #{bl_bankid,jdbcType=INTEGER},
+      bl_bankcode = #{bl_bankcode,jdbcType=VARCHAR},
+      bl_bankname = #{bl_bankname,jdbcType=VARCHAR},
+      bl_code = #{bl_code,jdbcType=VARCHAR},
+      bl_kind = #{bl_kind,jdbcType=VARCHAR},
+      bl_date = #{bl_date,jdbcType=TIMESTAMP},
+      bl_asstype = #{bl_asstype,jdbcType=VARCHAR},
+      bl_asscode = #{bl_asscode,jdbcType=VARCHAR},
+      bl_assname = #{bl_assname,jdbcType=VARCHAR},
+      bl_income = #{bl_income,jdbcType=DOUBLE},
+      bl_spending = #{bl_spending,jdbcType=DOUBLE},
+      bl_manname = #{bl_manname,jdbcType=VARCHAR},
+      bl_remark = #{bl_remark,jdbcType=VARCHAR},
+      companyid = #{companyid,jdbcType=INTEGER},
+      updaterId = #{updaterId,jdbcType=INTEGER},
+      updatedate = #{updatedate,jdbcType=TIMESTAMP}
+    where bl_id = #{bl_id,jdbcType=INTEGER}
+  </update>
+  <resultMap id="BaseResultMap" type="com.usoftchina.saas.money.po.Banksubledger">
+    <id column="bl_id" jdbcType="INTEGER" property="bl_id" />
+    <result column="bl_ym" jdbcType="INTEGER" property="bl_ym" />
+    <result column="bl_bankid" jdbcType="INTEGER" property="bl_bankid" />
+    <result column="bl_bankcode" jdbcType="VARCHAR" property="bl_bankcode" />
+    <result column="bl_bankname" jdbcType="VARCHAR" property="bl_bankname" />
+    <result column="bl_code" jdbcType="VARCHAR" property="bl_code" />
+    <result column="bl_kind" jdbcType="VARCHAR" property="bl_kind" />
+    <result column="bl_date" jdbcType="TIMESTAMP" property="bl_date" />
+    <result column="bl_asstype" jdbcType="VARCHAR" property="bl_asstype" />
+    <result column="bl_asscode" jdbcType="VARCHAR" property="bl_asscode" />
+    <result column="bl_assname" jdbcType="VARCHAR" property="bl_assname" />
+    <result column="bl_income" jdbcType="DOUBLE" property="bl_income" />
+    <result column="bl_spending" jdbcType="DOUBLE" property="bl_spending" />
+    <result column="bl_manname" jdbcType="VARCHAR" property="bl_manname" />
+    <result column="bl_remark" jdbcType="VARCHAR" property="bl_remark" />
+    <result column="companyid" jdbcType="INTEGER" property="companyid" />
+    <result column="updaterId" jdbcType="INTEGER" property="updaterId" />
+    <result column="updatedate" jdbcType="TIMESTAMP" property="updatedate" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    bl_id, bl_ym, bl_bankid, bl_bankcode, bl_bankname, bl_code, bl_kind, bl_date, bl_asstype, 
+    bl_asscode, bl_assname, bl_income, bl_spending, bl_manname, bl_remark, companyid, 
+    updaterId, updatedate
+  </sql>
+  <select id="selectByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample" resultMap="BaseResultMap">
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from banksubledger
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from banksubledger
+    where bl_id = #{bl_id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    delete from banksubledger
+    where bl_id = #{bl_id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample">
+    delete from banksubledger
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.usoftchina.saas.money.po.Banksubledger">
+    insert into banksubledger (bl_id, bl_ym, bl_bankid, 
+      bl_bankcode, bl_bankname, bl_code, 
+      bl_kind, bl_date, bl_asstype, 
+      bl_asscode, bl_assname, bl_income, 
+      bl_spending, bl_manname, bl_remark, 
+      companyid, updaterId, updatedate
+      )
+    values (#{bl_id,jdbcType=INTEGER}, #{bl_ym,jdbcType=INTEGER}, #{bl_bankid,jdbcType=INTEGER}, 
+      #{bl_bankcode,jdbcType=VARCHAR}, #{bl_bankname,jdbcType=VARCHAR}, #{bl_code,jdbcType=VARCHAR}, 
+      #{bl_kind,jdbcType=VARCHAR}, #{bl_date,jdbcType=TIMESTAMP}, #{bl_asstype,jdbcType=VARCHAR}, 
+      #{bl_asscode,jdbcType=VARCHAR}, #{bl_assname,jdbcType=VARCHAR}, #{bl_income,jdbcType=DOUBLE}, 
+      #{bl_spending,jdbcType=DOUBLE}, #{bl_manname,jdbcType=VARCHAR}, #{bl_remark,jdbcType=VARCHAR}, 
+      #{companyid,jdbcType=INTEGER}, #{updaterId,jdbcType=INTEGER}, #{updatedate,jdbcType=TIMESTAMP}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.usoftchina.saas.money.po.Banksubledger">
+    insert into banksubledger
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="bl_id != null">
+        bl_id,
+      </if>
+      <if test="bl_ym != null">
+        bl_ym,
+      </if>
+      <if test="bl_bankid != null">
+        bl_bankid,
+      </if>
+      <if test="bl_bankcode != null">
+        bl_bankcode,
+      </if>
+      <if test="bl_bankname != null">
+        bl_bankname,
+      </if>
+      <if test="bl_code != null">
+        bl_code,
+      </if>
+      <if test="bl_kind != null">
+        bl_kind,
+      </if>
+      <if test="bl_date != null">
+        bl_date,
+      </if>
+      <if test="bl_asstype != null">
+        bl_asstype,
+      </if>
+      <if test="bl_asscode != null">
+        bl_asscode,
+      </if>
+      <if test="bl_assname != null">
+        bl_assname,
+      </if>
+      <if test="bl_income != null">
+        bl_income,
+      </if>
+      <if test="bl_spending != null">
+        bl_spending,
+      </if>
+      <if test="bl_manname != null">
+        bl_manname,
+      </if>
+      <if test="bl_remark != null">
+        bl_remark,
+      </if>
+      <if test="companyid != null">
+        companyid,
+      </if>
+      <if test="updaterId != null">
+        updaterId,
+      </if>
+      <if test="updatedate != null">
+        updatedate,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="bl_id != null">
+        #{bl_id,jdbcType=INTEGER},
+      </if>
+      <if test="bl_ym != null">
+        #{bl_ym,jdbcType=INTEGER},
+      </if>
+      <if test="bl_bankid != null">
+        #{bl_bankid,jdbcType=INTEGER},
+      </if>
+      <if test="bl_bankcode != null">
+        #{bl_bankcode,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_bankname != null">
+        #{bl_bankname,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_code != null">
+        #{bl_code,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_kind != null">
+        #{bl_kind,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_date != null">
+        #{bl_date,jdbcType=TIMESTAMP},
+      </if>
+      <if test="bl_asstype != null">
+        #{bl_asstype,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_asscode != null">
+        #{bl_asscode,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_assname != null">
+        #{bl_assname,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_income != null">
+        #{bl_income,jdbcType=DOUBLE},
+      </if>
+      <if test="bl_spending != null">
+        #{bl_spending,jdbcType=DOUBLE},
+      </if>
+      <if test="bl_manname != null">
+        #{bl_manname,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_remark != null">
+        #{bl_remark,jdbcType=VARCHAR},
+      </if>
+      <if test="companyid != null">
+        #{companyid,jdbcType=INTEGER},
+      </if>
+      <if test="updaterId != null">
+        #{updaterId,jdbcType=INTEGER},
+      </if>
+      <if test="updatedate != null">
+        #{updatedate,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.usoftchina.saas.money.po.BanksubledgerExample" resultType="java.lang.Integer">
+    select count(*) from banksubledger
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    update banksubledger
+    <set>
+      <if test="record.bl_id != null">
+        bl_id = #{record.bl_id,jdbcType=INTEGER},
+      </if>
+      <if test="record.bl_ym != null">
+        bl_ym = #{record.bl_ym,jdbcType=INTEGER},
+      </if>
+      <if test="record.bl_bankid != null">
+        bl_bankid = #{record.bl_bankid,jdbcType=INTEGER},
+      </if>
+      <if test="record.bl_bankcode != null">
+        bl_bankcode = #{record.bl_bankcode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_bankname != null">
+        bl_bankname = #{record.bl_bankname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_code != null">
+        bl_code = #{record.bl_code,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_kind != null">
+        bl_kind = #{record.bl_kind,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_date != null">
+        bl_date = #{record.bl_date,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.bl_asstype != null">
+        bl_asstype = #{record.bl_asstype,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_asscode != null">
+        bl_asscode = #{record.bl_asscode,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_assname != null">
+        bl_assname = #{record.bl_assname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_income != null">
+        bl_income = #{record.bl_income,jdbcType=DOUBLE},
+      </if>
+      <if test="record.bl_spending != null">
+        bl_spending = #{record.bl_spending,jdbcType=DOUBLE},
+      </if>
+      <if test="record.bl_manname != null">
+        bl_manname = #{record.bl_manname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.bl_remark != null">
+        bl_remark = #{record.bl_remark,jdbcType=VARCHAR},
+      </if>
+      <if test="record.companyid != null">
+        companyid = #{record.companyid,jdbcType=INTEGER},
+      </if>
+      <if test="record.updaterId != null">
+        updaterId = #{record.updaterId,jdbcType=INTEGER},
+      </if>
+      <if test="record.updatedate != null">
+        updatedate = #{record.updatedate,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    update banksubledger
+    set bl_id = #{record.bl_id,jdbcType=INTEGER},
+      bl_ym = #{record.bl_ym,jdbcType=INTEGER},
+      bl_bankid = #{record.bl_bankid,jdbcType=INTEGER},
+      bl_bankcode = #{record.bl_bankcode,jdbcType=VARCHAR},
+      bl_bankname = #{record.bl_bankname,jdbcType=VARCHAR},
+      bl_code = #{record.bl_code,jdbcType=VARCHAR},
+      bl_kind = #{record.bl_kind,jdbcType=VARCHAR},
+      bl_date = #{record.bl_date,jdbcType=TIMESTAMP},
+      bl_asstype = #{record.bl_asstype,jdbcType=VARCHAR},
+      bl_asscode = #{record.bl_asscode,jdbcType=VARCHAR},
+      bl_assname = #{record.bl_assname,jdbcType=VARCHAR},
+      bl_income = #{record.bl_income,jdbcType=DOUBLE},
+      bl_spending = #{record.bl_spending,jdbcType=DOUBLE},
+      bl_manname = #{record.bl_manname,jdbcType=VARCHAR},
+      bl_remark = #{record.bl_remark,jdbcType=VARCHAR},
+      companyid = #{record.companyid,jdbcType=INTEGER},
+      updaterId = #{record.updaterId,jdbcType=INTEGER},
+      updatedate = #{record.updatedate,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.saas.money.po.Banksubledger">
+    update banksubledger
+    <set>
+      <if test="bl_ym != null">
+        bl_ym = #{bl_ym,jdbcType=INTEGER},
+      </if>
+      <if test="bl_bankid != null">
+        bl_bankid = #{bl_bankid,jdbcType=INTEGER},
+      </if>
+      <if test="bl_bankcode != null">
+        bl_bankcode = #{bl_bankcode,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_bankname != null">
+        bl_bankname = #{bl_bankname,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_code != null">
+        bl_code = #{bl_code,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_kind != null">
+        bl_kind = #{bl_kind,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_date != null">
+        bl_date = #{bl_date,jdbcType=TIMESTAMP},
+      </if>
+      <if test="bl_asstype != null">
+        bl_asstype = #{bl_asstype,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_asscode != null">
+        bl_asscode = #{bl_asscode,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_assname != null">
+        bl_assname = #{bl_assname,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_income != null">
+        bl_income = #{bl_income,jdbcType=DOUBLE},
+      </if>
+      <if test="bl_spending != null">
+        bl_spending = #{bl_spending,jdbcType=DOUBLE},
+      </if>
+      <if test="bl_manname != null">
+        bl_manname = #{bl_manname,jdbcType=VARCHAR},
+      </if>
+      <if test="bl_remark != null">
+        bl_remark = #{bl_remark,jdbcType=VARCHAR},
+      </if>
+      <if test="companyid != null">
+        companyid = #{companyid,jdbcType=INTEGER},
+      </if>
+      <if test="updaterId != null">
+        updaterId = #{updaterId,jdbcType=INTEGER},
+      </if>
+      <if test="updatedate != null">
+        updatedate = #{updatedate,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where bl_id = #{bl_id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.usoftchina.saas.money.po.Banksubledger">
+    update banksubledger
+    set bl_ym = #{bl_ym,jdbcType=INTEGER},
+      bl_bankid = #{bl_bankid,jdbcType=INTEGER},
+      bl_bankcode = #{bl_bankcode,jdbcType=VARCHAR},
+      bl_bankname = #{bl_bankname,jdbcType=VARCHAR},
+      bl_code = #{bl_code,jdbcType=VARCHAR},
+      bl_kind = #{bl_kind,jdbcType=VARCHAR},
+      bl_date = #{bl_date,jdbcType=TIMESTAMP},
+      bl_asstype = #{bl_asstype,jdbcType=VARCHAR},
+      bl_asscode = #{bl_asscode,jdbcType=VARCHAR},
+      bl_assname = #{bl_assname,jdbcType=VARCHAR},
+      bl_income = #{bl_income,jdbcType=DOUBLE},
+      bl_spending = #{bl_spending,jdbcType=DOUBLE},
+      bl_manname = #{bl_manname,jdbcType=VARCHAR},
+      bl_remark = #{bl_remark,jdbcType=VARCHAR},
+      companyid = #{companyid,jdbcType=INTEGER},
+      updaterId = #{updaterId,jdbcType=INTEGER},
+      updatedate = #{updatedate,jdbcType=TIMESTAMP}
+    where bl_id = #{bl_id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 2 - 0
applications/money/pom.xml

@@ -14,6 +14,8 @@
     <description>money server</description>
     <modules>
         <module>money-api</module>
+        <module>money-dto</module>
+        <module>money-server</module>
     </modules>