fix: 账单功能,新增备注字段,脚本更新。
This commit is contained in:
@@ -19,6 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="billState" column="bill_state" />
|
||||
<result property="bankName" column="bank_name" />
|
||||
<result property="bankCode" column="bank_code" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCreditCardBillVo">
|
||||
@@ -35,6 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
a.update_time,
|
||||
a.del_flag,
|
||||
a.bill_state,
|
||||
a.remark,
|
||||
bc."name" as bank_name,
|
||||
bc.code as bank_code
|
||||
from
|
||||
@@ -85,6 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="billState != null">bill_state,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
@@ -99,6 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="billState != null">#{billState},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -116,6 +120,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="billState != null">bill_state = #{billState},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
@@ -19,6 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="type" column="type" />
|
||||
<result property="billYear" column="bill_year" />
|
||||
<result property="billMonth" column="bill_month" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="futureStocksName" column="future_stocks_name" />
|
||||
<result property="futureStocksCode" column="future_stocks_code" />
|
||||
</resultMap>
|
||||
@@ -39,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
a.type,
|
||||
a.bill_year,
|
||||
a.bill_month,
|
||||
a.remark,
|
||||
fs2 ."name" as future_stocks_name,
|
||||
fs2.code as future_stocks_code
|
||||
from
|
||||
@@ -91,6 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="type != null">type,</if>
|
||||
<if test="billYear != null">bill_year,</if>
|
||||
<if test="billMonth != null">bill_month,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
@@ -107,6 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="billYear != null">#{billYear},</if>
|
||||
<if test="billMonth != null">#{billMonth},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -126,6 +130,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="type != null">type = #{type},</if>
|
||||
<if test="billYear != null">bill_year = #{billYear},</if>
|
||||
<if test="billMonth != null">bill_month = #{billMonth},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
BIN
sql/20240520-sql/dump-intc_invest_dev-202405201752
Normal file
BIN
sql/20240520-sql/dump-intc_invest_dev-202405201752
Normal file
Binary file not shown.
BIN
sql/20240520-sql/dump-intc_invest_test-202405201752
Normal file
BIN
sql/20240520-sql/dump-intc_invest_test-202405201752
Normal file
Binary file not shown.
BIN
sql/20240520-sql/dump-intc_system-202405201752
Normal file
BIN
sql/20240520-sql/dump-intc_system-202405201752
Normal file
Binary file not shown.
Reference in New Issue
Block a user