winter 1 год назад
Родитель
Сommit
f6af22cb5a
3 измененных файлов: 143 добавлений и 0 удалений
  1. +58
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxFinanceCheckOut.java
  2. +18
    -0
      mallinkService/src/main/java/com/iformall/mapper/WxFinanceCheckOutMapper.java
  3. +67
    -0
      mallinkService/src/main/resources/mapper/WxFinanceCheckOutMapper.xml

+ 58
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxFinanceCheckOut.java Просмотреть файл

@@ -0,0 +1,58 @@
package com.iformall.domain.po;

import com.aliyun.openservices.shade.org.apache.commons.lang3.StringUtils;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.iformall.domain.po.base.TenantEntity;
import com.iformall.enums.EnumFinanceCashierType;
import com.iformall.enums.EnumFinanceFinishStatus;
import com.iformall.enums.EnumFinanceReceiveStatus;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
*/
@TableName(value = "wx_finance_check_out")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class WxFinanceCheckOut extends TenantEntity {

private static final long serialVersionUID = 7009117540201976664L;

@io.swagger.annotations.ApiModelProperty(value="id",name="id")
private Long id;

@io.swagger.annotations.ApiModelProperty(value="createTime",name="createTime")
private Date createTime;
@TableField(exist = false)
private Date createTimeBegin;
@TableField(exist = false)
private Date createTimeEnd;
@io.swagger.annotations.ApiModelProperty(value="updateTime",name="updateTime")
private Date updateTime;
@io.swagger.annotations.ApiModelProperty(value="createBy",name="createBy")
private Long createBy;
@io.swagger.annotations.ApiModelProperty(value="createByName",name="createByName")
private String createByName;
@io.swagger.annotations.ApiModelProperty(value="updateBy",name="updateBy")
private Long updateBy;
@io.swagger.annotations.ApiModelProperty(value="updateByName",name="updateByName")
private String updateByName;
@io.swagger.annotations.ApiModelProperty(value="所属年月",name="peroid")
private String peroid;
@io.swagger.annotations.ApiModelProperty(value = "交款开始日期", name = "startDate")
private Date startDate;
@io.swagger.annotations.ApiModelProperty(value = "交款结束日期", name = "endDate")
private Date endDate;
}

+ 18
- 0
mallinkService/src/main/java/com/iformall/mapper/WxFinanceCheckOutMapper.java Просмотреть файл

@@ -0,0 +1,18 @@
package com.iformall.mapper;

import com.iformall.common.CommonMapper;
import com.iformall.domain.po.WxFinanceCheckOut;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
*/
public interface WxFinanceCheckOutMapper extends CommonMapper<WxFinanceCheckOut, Long> {

List<WxFinanceCheckOut> findList(WxFinanceCheckOut wxBillRent);

WxFinanceCheckOut selectById(@Param("id")Long id,@Param("tenantId")String tenantId);
void deleteByConditon(WxFinanceCheckOut wxBillRent);
}

+ 67
- 0
mallinkService/src/main/resources/mapper/WxFinanceCheckOutMapper.xml Просмотреть файл

@@ -0,0 +1,67 @@
<?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.WxFinanceCheckOutMapper">
<resultMap id="BaseResultMap" type="com.iformall.domain.po.WxFinanceCheckOut">
<id column="id" jdbcType="BIGINT" property="id"/>
<result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/>
<result column="parent_tenant_id" jdbcType="VARCHAR" property="parentTenantId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="create_by" jdbcType="BIGINT" property="createBy"/>
<result column="create_by_name" jdbcType="VARCHAR" property="createByName"/>
<result column="update_by" jdbcType="BIGINT" property="updateBy"/>
<result column="update_by_name" jdbcType="VARCHAR" property="updateByName"/>
<result column="peroid" jdbcType="VARCHAR" property="peroid"/>
<result column="start_date" jdbcType="TIMESTAMP" property="startDate"/>
<result column="end_date" jdbcType="TIMESTAMP" property="endDate"/>
</resultMap>

<sql id="allColumns">
`id`,`tenant_id`,`parent_tenant_id`,`create_time`,`update_time`,`create_by`,`create_by_name`,`update_by`,`update_by_name`,
`start_date`,`end_date`,`peroid`
</sql>

<sql id="dynamicWhereConditions">
where 1=1
<if test=" null != id ">and `id` = #{id}</if>
<if test=" null != tenantId and '' != tenantId">
and `tenant_id` = #{tenantId}
</if>
<if test=" null != parentTenantId and '' != parentTenantId">
and `parent_tenant_id` = #{parentTenantId}
</if>
<if test=" null != createByName and '' != createByName">
and create_by_name concat('%', #{createByName},'%')
</if>
<if test=" null != createBy ">and `create_by` = #{createBy}</if>
<if test=" null != startDate ">and `start_date` &gt;= #{startDate}</if>
<if test=" null != endDate ">and `end_date` &lt;= #{endDate}</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.WxFinanceCheckOut" resultMap="BaseResultMap">
select
<include refid="allColumns"/>
from wx_finance_check_out
<include refid="dynamicWhereConditions"/>
</select>
<select id="selectById" parameterType="HashMap" resultMap="BaseResultMap">
select
<include refid="allColumns"/>
from wx_finance_check_out where id = #{id} and `tenant_id` = #{tenantId}
</select>
<delete id="deleteByConditon" parameterType="com.iformall.domain.po.WxFinanceCheckOut">
delete from wx_finance_check_out
<include refid="dynamicWhereConditions"/>
</delete>
</mapper>


Загрузка…
Отмена
Сохранить