You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
338 lines
13 KiB
XML
338 lines
13 KiB
XML
<?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.sztzjy.digital_credit.mapper.StuSolvencyMapper">
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.digital_credit.entity.StuSolvency">
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<result column="current_ratio" jdbcType="VARCHAR" property="currentRatio" />
|
|
<result column="asset_liability_ratio" jdbcType="VARCHAR" property="assetLiabilityRatio" />
|
|
<result column="equity_ratio" jdbcType="VARCHAR" property="equityRatio" />
|
|
<result column="equity_multiplier" jdbcType="VARCHAR" property="equityMultiplier" />
|
|
<result column="quick_ratio" jdbcType="VARCHAR" property="quickRatio" />
|
|
<result column="cash_ratio" jdbcType="VARCHAR" property="cashRatio" />
|
|
<result column="serial_number" jdbcType="INTEGER" property="serialNumber" />
|
|
<result column="module" jdbcType="VARCHAR" property="module" />
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
<result column="error_number" jdbcType="INTEGER" property="errorNumber" />
|
|
<result column="capacity_id" jdbcType="INTEGER" property="capacityId" />
|
|
<result column="sub_state" jdbcType="INTEGER" property="subState" />
|
|
</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">
|
|
id, current_ratio, asset_liability_ratio, equity_ratio, equity_multiplier, quick_ratio,
|
|
cash_ratio, serial_number, module, user_id, error_number, capacity_id, sub_state
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.sztzjy.digital_credit.entity.StuSolvencyExample" resultMap="BaseResultMap">
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List" />
|
|
from stu_solvency
|
|
<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 stu_solvency
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
delete from stu_solvency
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</delete>
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.digital_credit.entity.StuSolvencyExample">
|
|
delete from stu_solvency
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.sztzjy.digital_credit.entity.StuSolvency">
|
|
insert into stu_solvency (id, current_ratio, asset_liability_ratio,
|
|
equity_ratio, equity_multiplier, quick_ratio,
|
|
cash_ratio, serial_number, module,
|
|
user_id, error_number, capacity_id,
|
|
sub_state)
|
|
values (#{id,jdbcType=INTEGER}, #{currentRatio,jdbcType=VARCHAR}, #{assetLiabilityRatio,jdbcType=VARCHAR},
|
|
#{equityRatio,jdbcType=VARCHAR}, #{equityMultiplier,jdbcType=VARCHAR}, #{quickRatio,jdbcType=VARCHAR},
|
|
#{cashRatio,jdbcType=VARCHAR}, #{serialNumber,jdbcType=INTEGER}, #{module,jdbcType=VARCHAR},
|
|
#{userId,jdbcType=VARCHAR}, #{errorNumber,jdbcType=INTEGER}, #{capacityId,jdbcType=INTEGER},
|
|
#{subState,jdbcType=INTEGER})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.sztzjy.digital_credit.entity.StuSolvency">
|
|
insert into stu_solvency
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
id,
|
|
</if>
|
|
<if test="currentRatio != null">
|
|
current_ratio,
|
|
</if>
|
|
<if test="assetLiabilityRatio != null">
|
|
asset_liability_ratio,
|
|
</if>
|
|
<if test="equityRatio != null">
|
|
equity_ratio,
|
|
</if>
|
|
<if test="equityMultiplier != null">
|
|
equity_multiplier,
|
|
</if>
|
|
<if test="quickRatio != null">
|
|
quick_ratio,
|
|
</if>
|
|
<if test="cashRatio != null">
|
|
cash_ratio,
|
|
</if>
|
|
<if test="serialNumber != null">
|
|
serial_number,
|
|
</if>
|
|
<if test="module != null">
|
|
module,
|
|
</if>
|
|
<if test="userId != null">
|
|
user_id,
|
|
</if>
|
|
<if test="errorNumber != null">
|
|
error_number,
|
|
</if>
|
|
<if test="capacityId != null">
|
|
capacity_id,
|
|
</if>
|
|
<if test="subState != null">
|
|
sub_state,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
#{id,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="currentRatio != null">
|
|
#{currentRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="assetLiabilityRatio != null">
|
|
#{assetLiabilityRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="equityRatio != null">
|
|
#{equityRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="equityMultiplier != null">
|
|
#{equityMultiplier,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="quickRatio != null">
|
|
#{quickRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cashRatio != null">
|
|
#{cashRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="serialNumber != null">
|
|
#{serialNumber,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="module != null">
|
|
#{module,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="userId != null">
|
|
#{userId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="errorNumber != null">
|
|
#{errorNumber,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="capacityId != null">
|
|
#{capacityId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="subState != null">
|
|
#{subState,jdbcType=INTEGER},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.sztzjy.digital_credit.entity.StuSolvencyExample" resultType="java.lang.Long">
|
|
select count(*) from stu_solvency
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</select>
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
update stu_solvency
|
|
<set>
|
|
<if test="record.id != null">
|
|
id = #{record.id,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.currentRatio != null">
|
|
current_ratio = #{record.currentRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.assetLiabilityRatio != null">
|
|
asset_liability_ratio = #{record.assetLiabilityRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.equityRatio != null">
|
|
equity_ratio = #{record.equityRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.equityMultiplier != null">
|
|
equity_multiplier = #{record.equityMultiplier,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.quickRatio != null">
|
|
quick_ratio = #{record.quickRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.cashRatio != null">
|
|
cash_ratio = #{record.cashRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.serialNumber != null">
|
|
serial_number = #{record.serialNumber,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.module != null">
|
|
module = #{record.module,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.userId != null">
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.errorNumber != null">
|
|
error_number = #{record.errorNumber,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.capacityId != null">
|
|
capacity_id = #{record.capacityId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="record.subState != null">
|
|
sub_state = #{record.subState,jdbcType=INTEGER},
|
|
</if>
|
|
</set>
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByExample" parameterType="map">
|
|
update stu_solvency
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
current_ratio = #{record.currentRatio,jdbcType=VARCHAR},
|
|
asset_liability_ratio = #{record.assetLiabilityRatio,jdbcType=VARCHAR},
|
|
equity_ratio = #{record.equityRatio,jdbcType=VARCHAR},
|
|
equity_multiplier = #{record.equityMultiplier,jdbcType=VARCHAR},
|
|
quick_ratio = #{record.quickRatio,jdbcType=VARCHAR},
|
|
cash_ratio = #{record.cashRatio,jdbcType=VARCHAR},
|
|
serial_number = #{record.serialNumber,jdbcType=INTEGER},
|
|
module = #{record.module,jdbcType=VARCHAR},
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
error_number = #{record.errorNumber,jdbcType=INTEGER},
|
|
capacity_id = #{record.capacityId,jdbcType=INTEGER},
|
|
sub_state = #{record.subState,jdbcType=INTEGER}
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.digital_credit.entity.StuSolvency">
|
|
update stu_solvency
|
|
<set>
|
|
<if test="currentRatio != null">
|
|
current_ratio = #{currentRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="assetLiabilityRatio != null">
|
|
asset_liability_ratio = #{assetLiabilityRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="equityRatio != null">
|
|
equity_ratio = #{equityRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="equityMultiplier != null">
|
|
equity_multiplier = #{equityMultiplier,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="quickRatio != null">
|
|
quick_ratio = #{quickRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cashRatio != null">
|
|
cash_ratio = #{cashRatio,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="serialNumber != null">
|
|
serial_number = #{serialNumber,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="module != null">
|
|
module = #{module,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="userId != null">
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="errorNumber != null">
|
|
error_number = #{errorNumber,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="capacityId != null">
|
|
capacity_id = #{capacityId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="subState != null">
|
|
sub_state = #{subState,jdbcType=INTEGER},
|
|
</if>
|
|
</set>
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.digital_credit.entity.StuSolvency">
|
|
update stu_solvency
|
|
set current_ratio = #{currentRatio,jdbcType=VARCHAR},
|
|
asset_liability_ratio = #{assetLiabilityRatio,jdbcType=VARCHAR},
|
|
equity_ratio = #{equityRatio,jdbcType=VARCHAR},
|
|
equity_multiplier = #{equityMultiplier,jdbcType=VARCHAR},
|
|
quick_ratio = #{quickRatio,jdbcType=VARCHAR},
|
|
cash_ratio = #{cashRatio,jdbcType=VARCHAR},
|
|
serial_number = #{serialNumber,jdbcType=INTEGER},
|
|
module = #{module,jdbcType=VARCHAR},
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
error_number = #{errorNumber,jdbcType=INTEGER},
|
|
capacity_id = #{capacityId,jdbcType=INTEGER},
|
|
sub_state = #{subState,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
</mapper> |