| @@ -52,8 +52,8 @@ public class WxBillSettle extends BaseEntity { | |||||
| private Map<String, Object> flowParams; | private Map<String, Object> flowParams; | ||||
| @Transient | @Transient | ||||
| private List<Long> receiveBillIds; | |||||
| private List<WxBillSettleBill> receiveBillIds; | |||||
| @Transient | @Transient | ||||
| private List<Long> payBillIds; | |||||
| private List<WxBillSettleBill> payBillIds; | |||||
| } | } | ||||
| @@ -0,0 +1,41 @@ | |||||
| package com.iformall.domain.po; | |||||
| import lombok.Data; | |||||
| import lombok.EqualsAndHashCode; | |||||
| import javax.persistence.Id; | |||||
| import javax.persistence.Table; | |||||
| import javax.persistence.Transient; | |||||
| import java.util.Date; | |||||
| import java.util.List; | |||||
| /** | |||||
| * @author luozukai | |||||
| */ | |||||
| @Table(name = "wx_bill_settle_bill") | |||||
| @Data | |||||
| @EqualsAndHashCode(callSuper = true) | |||||
| public class WxBillSettleBill extends BaseEntity { | |||||
| private static final long serialVersionUID = 1L; | |||||
| @Id | |||||
| protected Long id; | |||||
| @io.swagger.annotations.ApiModelProperty(value="租户ID",name="tenantId") | |||||
| private String tenantId; | |||||
| @io.swagger.annotations.ApiModelProperty(value="结算单id",name="settleId") | |||||
| private Long settleId; | |||||
| @io.swagger.annotations.ApiModelProperty(value="类型: 0收款1承付",name="type") | |||||
| private Integer type; | |||||
| @io.swagger.annotations.ApiModelProperty(value="账单id",name="billId") | |||||
| private Long billId; | |||||
| @io.swagger.annotations.ApiModelProperty(value="账单类型: 1租金2押金3物业4水费5电费6其他7空调费",name="billType") | |||||
| private Integer billType; | |||||
| @io.swagger.annotations.ApiModelProperty(value="创建时间",name="createtime") | |||||
| private Date createtime; | |||||
| @io.swagger.annotations.ApiModelProperty(value="更新时间",name="updatetime") | |||||
| private Date updatetime; | |||||
| } | |||||
| @@ -0,0 +1,17 @@ | |||||
| package com.iformall.mapper; | |||||
| import com.iformall.common.CommonMapper; | |||||
| import com.iformall.domain.po.WxBillSettleBill; | |||||
| import java.util.List; | |||||
| /** | |||||
| * @author luozukai | |||||
| */ | |||||
| public interface WxBillSettleBillMapper extends CommonMapper<WxBillSettleBill, Long> { | |||||
| List<WxBillSettleBill> findList(WxBillSettleBill wxBillSettleBill); | |||||
| void update(WxBillSettleBill record); | |||||
| } | |||||
| @@ -0,0 +1,46 @@ | |||||
| <?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.iformall.mapper.WxBillSettleBillMapper"> | |||||
| <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxBillSettleBill"> | |||||
| <id column="id" property="id"/> | |||||
| <result column="tenant_id" property="tenantId"/> | |||||
| <result column="settle_id" property="settleId"/> | |||||
| <result column="type" property="type"/> | |||||
| <result column="bill_id" property="billId"/> | |||||
| <result column="bill_type" property="billType"/> | |||||
| <result column="createtime" property="createtime"/> | |||||
| <result column="updatetime" property="updatetime"/> | |||||
| </resultMap> | |||||
| <sql id="allColumns"> | |||||
| `id`,`tenant_id`,`settle_id`,`type`,`bill_id`,`bill_type` | |||||
| ,`createtime`,`updatetime` | |||||
| </sql> | |||||
| <sql id="dynamicWhereConditions"> | |||||
| where 1=1 | |||||
| <if test=" null != id ">and `id` = #{id}</if> | |||||
| <if test=" null != tenantId ">and `tenant_id` = #{tenantId}</if> | |||||
| <if test=" null != ids "> | |||||
| and id in | |||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | |||||
| #{idItem} | |||||
| </foreach> | |||||
| </if> | |||||
| <if test=" null != sortColumns">order by ${sortColumns}</if> | |||||
| </sql> | |||||
| <select id="findList" parameterType="com.iformall.domain.po.WxBillSettleBill" resultMap="BaseResultMap"> | |||||
| select | |||||
| <include refid="allColumns"/> | |||||
| from wx_bill_settle_bill | |||||
| <include refid="dynamicWhereConditions"/> | |||||
| </select> | |||||
| </mapper> | |||||