提交 4c7eefe4 authored 作者: 张光耀's avatar 张光耀

更新手续费,添加了人民币转换美元

上级 b9cc4cc3
...@@ -2,13 +2,14 @@ package com.platform.entity; ...@@ -2,13 +2,14 @@ package com.platform.entity;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
/** /**
* 手续费实体 * 手续费实体
* 表名 tb_cf_fee * 表名 tb_cf_fee
* *
* @author lipengjun * @author LHB
* @date 2019-09-25 17:06:03 * @date 2019-10-13 16:18:55
*/ */
public class TbCfFeeEntity implements Serializable { public class TbCfFeeEntity implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -29,6 +30,10 @@ public class TbCfFeeEntity implements Serializable { ...@@ -29,6 +30,10 @@ public class TbCfFeeEntity implements Serializable {
* 收取费用百分比 * 收取费用百分比
*/ */
private BigDecimal feePercent; private BigDecimal feePercent;
/**
* 设置美元转换
*/
private BigDecimal feeRate;
/** /**
* 设置:收费id * 设置:收费id
...@@ -82,4 +87,17 @@ public class TbCfFeeEntity implements Serializable { ...@@ -82,4 +87,17 @@ public class TbCfFeeEntity implements Serializable {
public BigDecimal getFeePercent() { public BigDecimal getFeePercent() {
return feePercent; return feePercent;
} }
/**
* 设置:设置美元转换
*/
public void setFeeRate(BigDecimal feeRate) {
this.feeRate = feeRate;
}
/**
* 获取:设置美元转换
*/
public BigDecimal getFeeRate() {
return feeRate;
}
} }
...@@ -23,7 +23,7 @@ public class TestTask { ...@@ -23,7 +23,7 @@ public class TestTask {
public void test(String params) { public void test(String params) {
logger.info("我是带参数的test方法,正在被执行,参数为:" + params); logger.info("我是带参数的test方法,正在被执行,参数为:" + params);
System.out.println("正在执行Test方法");
try { try {
Thread.sleep(1000L); Thread.sleep(1000L);
} catch (InterruptedException e) { } catch (InterruptedException e) {
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<result property="feeType" column="fee_type"/> <result property="feeType" column="fee_type"/>
<result property="enableFlag" column="enable_flag"/> <result property="enableFlag" column="enable_flag"/>
<result property="feePercent" column="fee_percent"/> <result property="feePercent" column="fee_percent"/>
<result property="feeRate" column="fee_rate"/>
</resultMap> </resultMap>
<select id="queryObject" resultType="com.platform.entity.TbCfFeeEntity"> <select id="queryObject" resultType="com.platform.entity.TbCfFeeEntity">
...@@ -15,7 +16,8 @@ ...@@ -15,7 +16,8 @@
`fee_id`, `fee_id`,
`fee_type`, `fee_type`,
`enable_flag`, `enable_flag`,
`fee_percent` `fee_percent`,
`fee_rate`
from tb_cf_fee from tb_cf_fee
where fee_id = #{id} where fee_id = #{id}
</select> </select>
...@@ -25,7 +27,8 @@ ...@@ -25,7 +27,8 @@
`fee_id`, `fee_id`,
`fee_type`, `fee_type`,
`enable_flag`, `enable_flag`,
`fee_percent` `fee_percent`,
`fee_rate`
from tb_cf_fee from tb_cf_fee
WHERE 1=1 WHERE 1=1
<if test="name != null and name.trim() != ''"> <if test="name != null and name.trim() != ''">
...@@ -57,12 +60,14 @@ ...@@ -57,12 +60,14 @@
`fee_id`, `fee_id`,
`fee_type`, `fee_type`,
`enable_flag`, `enable_flag`,
`fee_percent`) `fee_percent`,
`fee_rate`)
values( values(
#{feeId}, #{feeId},
#{feeType}, #{feeType},
#{enableFlag}, #{enableFlag},
#{feePercent}) #{feePercent},
#{feeRate})
</insert> </insert>
<update id="update" parameterType="com.platform.entity.TbCfFeeEntity"> <update id="update" parameterType="com.platform.entity.TbCfFeeEntity">
...@@ -70,7 +75,8 @@ ...@@ -70,7 +75,8 @@
<set> <set>
<if test="feeType != null">`fee_type` = #{feeType}, </if> <if test="feeType != null">`fee_type` = #{feeType}, </if>
<if test="enableFlag != null">`enable_flag` = #{enableFlag}, </if> <if test="enableFlag != null">`enable_flag` = #{enableFlag}, </if>
<if test="feePercent != null">`fee_percent` = #{feePercent}</if> <if test="feePercent != null">`fee_percent` = #{feePercent}, </if>
<if test="feeRate != null">`fee_rate` = #{feeRate}</if>
</set> </set>
where fee_id = #{feeId} where fee_id = #{feeId}
</update> </update>
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
#parse("sys/header.html") #parse("sys/header.html")
</head> </head>
<body> <body>
<div id="rrapp" v-cloak style="height: calc(100% - 15px);"> <div id="rrapp" v-cloak>
<div v-show="showList" style="height: 100%;"> <div v-show="showList">
<Row :gutter="16"> <Row :gutter="16">
<div class="search-group"> <div class="search-group">
<i-col span="4"> <i-col span="4">
...@@ -42,6 +42,9 @@ ...@@ -42,6 +42,9 @@
<Form-item label="收取费用百分比" prop="feePercent"> <Form-item label="收取费用百分比" prop="feePercent">
<i-input v-model="tbCfFee.feePercent" placeholder="收取费用百分比"/> <i-input v-model="tbCfFee.feePercent" placeholder="收取费用百分比"/>
</Form-item> </Form-item>
<Form-item label="设置美元转换" prop="feeRate">
<i-input v-model="tbCfFee.feeRate" placeholder="设置美元转换"/>
</Form-item>
<Form-item> <Form-item>
<i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button> <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
<i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button> <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
......
...@@ -3,9 +3,10 @@ $(function () { ...@@ -3,9 +3,10 @@ $(function () {
url: '../tbcffee/list', url: '../tbcffee/list',
colModel: [ colModel: [
{label: 'feeId', name: 'feeId', index: 'fee_id', key: true, hidden: true}, {label: 'feeId', name: 'feeId', index: 'fee_id', key: true, hidden: true},
{label: '收费类型,1为百分比,目前只有一种收费方式', name: 'feeType', index: 'fee_type', width: 80, hidden: true}, //{label: '收费类型,1为百分比,目前只有一种收费方式', name: 'feeType', index: 'fee_type', width: 80},
{label: '是否生效标志', name: 'enableFlag', index: 'enable_flag', width: 80, hidden: true}, //{label: '是否生效标志', name: 'enableFlag', index: 'enable_flag', width: 80},
{label: '收取费用百分比', name: 'feePercent', index: 'fee_percent', width: 80}] {label: '收取费用百分比', name: 'feePercent', index: 'fee_percent', width: 80},
{label: '设置美元转换', name: 'feeRate', index: 'fee_rate', width: 80}]
}); });
}); });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论