Commit 708fcee2 by gonglei

加入前端代码

1 parent a4942c50
Showing 31 changed files with 284 additions and 64 deletions
...@@ -134,3 +134,7 @@ gitee帐号: ...@@ -134,3 +134,7 @@ gitee帐号:
https://www.kdocs.cn/l/cqSXe4WVE94M https://www.kdocs.cn/l/cqSXe4WVE94M
分批退款接口 分批退款接口
https://pay.weixin.qq.com/doc/v3/merchant/4012791862 https://pay.weixin.qq.com/doc/v3/merchant/4012791862
https://www.yuque.com/runhoutang-6m1me/nkb887/bps7fkelyxfeoq7l?singleDoc# 《20260115 生产体验问题》
\ No newline at end of file \ No newline at end of file
...@@ -211,6 +211,12 @@ public class AccountController { ...@@ -211,6 +211,12 @@ public class AccountController {
return true; return true;
} }
@PostMapping("setTagAccounts")
public boolean setTagAccounts(@RequestBody TagAccount tagAccount) {
accountService.setTagAccounts(tagAccount);
return true;
}
/** /**
* 审核用户申请 * 审核用户申请
* *
......
...@@ -1761,7 +1761,27 @@ ...@@ -1761,7 +1761,27 @@
"name": "标签管理", "name": "标签管理",
"type": "MENU", "type": "MENU",
"enabled": true, "enabled": true,
"value": "/account/tag" "value": "/account/tag",
"children": [
{
"code": "tag_1",
"name": "新建标签",
"type": "BUTTON",
"enabled": true
},
{
"code": "tag_2",
"name": "修改标签",
"type": "BUTTON",
"enabled": true
},
{
"code": "tag_3",
"name": "删除标签",
"type": "BUTTON",
"enabled": true
}
]
}, },
{ {
"code": "deposit", "code": "deposit",
...@@ -1852,7 +1872,27 @@ ...@@ -1852,7 +1872,27 @@
"name": "轮播图管理", "name": "轮播图管理",
"type": "MENU", "type": "MENU",
"enabled": true, "enabled": true,
"value": "/business/carousel" "value": "/business/carousel",
"children": [
{
"code": "carousel_1",
"name": "新建轮播图",
"type": "BUTTON",
"enabled": true
},
{
"code": "carousel_2",
"name": "修改轮播图",
"type": "BUTTON",
"enabled": true
},
{
"code": "carousel_3",
"name": "删除轮播图",
"type": "BUTTON",
"enabled": true
}
]
}, },
{ {
"code": "price_rule", "code": "price_rule",
...@@ -2038,6 +2078,24 @@ ...@@ -2038,6 +2078,24 @@
"enabled": true, "enabled": true,
"value": "/business/notice", "value": "/business/notice",
"children": [ "children": [
{
"code": "notice_template_1",
"name": "新建消息通知模板",
"type": "BUTTON",
"enabled": true
},
{
"code": "notice_template_2",
"name": "编辑消息通知模板",
"type": "BUTTON",
"enabled": true
},
{
"code": "notice_template_3",
"name": "查看消息通知模板",
"type": "BUTTON",
"enabled": true
}
] ]
}, },
{ {
......
...@@ -10,13 +10,11 @@ import com.glsx.usedcar.module.auction.entity.AuctionVehicle_; ...@@ -10,13 +10,11 @@ import com.glsx.usedcar.module.auction.entity.AuctionVehicle_;
import com.glsx.usedcar.module.auction.entity.Auction_; import com.glsx.usedcar.module.auction.entity.Auction_;
import com.glsx.usedcar.module.auction.service.AuctionService; import com.glsx.usedcar.module.auction.service.AuctionService;
import jakarta.annotation.Resource; import jakarta.annotation.Resource;
import jakarta.persistence.criteria.Expression; import jakarta.persistence.criteria.*;
import jakarta.persistence.criteria.Join;
import jakarta.persistence.criteria.JoinType;
import jakarta.persistence.criteria.Predicate;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.data.domain.Page; import org.springframework.data.domain.Page;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.summerframework.orm.paging.Operator; import org.summerframework.orm.paging.Operator;
import org.summerframework.orm.paging.Pagination; import org.summerframework.orm.paging.Pagination;
...@@ -113,9 +111,17 @@ public class AuctionController { ...@@ -113,9 +111,17 @@ public class AuctionController {
*/ */
@PostMapping("pageRandomAuctionVehicle") @PostMapping("pageRandomAuctionVehicle")
public Page<AuctionVehicle> pageRandomAuctionVehicle(@RequestBody Pagination<AuctionVehicle> pagination, @RequestAttribute(value = LOGIN_ACCOUNT, required = false) Account account) { public Page<AuctionVehicle> pageRandomAuctionVehicle(@RequestBody Pagination<AuctionVehicle> pagination, @RequestAttribute(value = LOGIN_ACCOUNT, required = false) Account account) {
String cityCode = (String) pagination.getDataValue("cities");
pagination.addCondition((root, query, builder) -> { pagination.addCondition((root, query, builder) -> {
Expression<Double> randomExp = builder.function("RAND", Double.class); // MySQL 用 RAND() Expression<Double> randomExp = builder.function("RAND", Double.class); // MySQL 用 RAND()
if (StringUtils.hasText(cityCode)) {
CriteriaBuilder.Case<Number> caseExpr = builder.selectCase();
caseExpr.when(builder.like(root.get(AuctionVehicle_.auction).get(Auction_.cities), "%" + cityCode + "%"), 1).otherwise(0);
query.orderBy(builder.desc(caseExpr), builder.asc(randomExp)); // 按随机值升序(或降序,效果相同)
} else {
query.orderBy(builder.asc(randomExp)); // 按随机值升序(或降序,效果相同) query.orderBy(builder.asc(randomExp)); // 按随机值升序(或降序,效果相同)
}
return null; // 无过滤条件,返回所有数据并随机排序 return null; // 无过滤条件,返回所有数据并随机排序
}); });
return pageAuctionVehicle(pagination, account); return pageAuctionVehicle(pagination, account);
......
...@@ -68,9 +68,9 @@ spring: ...@@ -68,9 +68,9 @@ spring:
data: data:
redis: redis:
database: 6 database: 6
host: 120.237.107.125 host: localhost
port: 16379 port: 6379
password: Ml1234.. password:
# 连接超时时间 单位 ms(毫秒) # 连接超时时间 单位 ms(毫秒)
timeout: 3000ms timeout: 3000ms
jedis: jedis:
......
...@@ -17,7 +17,7 @@ import java.util.List; ...@@ -17,7 +17,7 @@ import java.util.List;
public interface CommissionRuleDao extends BaseRepository<CommissionRule, Integer>, JpaSpecificationExecutor<CommissionRule> { public interface CommissionRuleDao extends BaseRepository<CommissionRule, Integer>, JpaSpecificationExecutor<CommissionRule> {
@EntityGraph(attributePaths = {"accounts", "accountTags"}) @EntityGraph(attributePaths = {"accounts", "accountTags"})
List<CommissionRule> findByEnabledIsTrueAndEffectiveDateLessThanEqualAndExpireDateGreaterThanEqualOrderByApplicableTypeAsc(LocalDate effectiveDate, LocalDate expireDate); List<CommissionRule> findByEnabledIsTrueAndMinPriceLessThanEqualAndMaxPriceGreaterThanAndEffectiveDateLessThanEqualAndExpireDateGreaterThanEqualOrderByApplicableTypeAsc(double price, double price2, LocalDate effectiveDate, LocalDate expireDate);
@EntityGraph(attributePaths = {"accounts", "accountTags"}) @EntityGraph(attributePaths = {"accounts", "accountTags"})
CommissionRule findByRuleId(int ruleId); CommissionRule findByRuleId(int ruleId);
......
...@@ -56,6 +56,18 @@ public class CommissionRule extends AuditingEntity implements Serializable { ...@@ -56,6 +56,18 @@ public class CommissionRule extends AuditingEntity implements Serializable {
private String ruleName; private String ruleName;
/** /**
* 最低成交价
*/
@Column(nullable = false)
private double minPrice;
/**
* 最高成交价
*/
@Column(nullable = false)
private double maxPrice;
/**
* 规则详情 * 规则详情
*/ */
@Column(nullable = true, length = 255) @Column(nullable = true, length = 255)
......
...@@ -248,6 +248,23 @@ public class AccountService extends AbstractAuctionService { ...@@ -248,6 +248,23 @@ public class AccountService extends AbstractAuctionService {
} }
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public void setTagAccounts(TagAccount tagAccount) {
List<Account> accounts = accountDao.findAllById(tagAccount.getAccountIds());
if (!CollectionUtils.isEmpty(tagAccount.getTagIds())) {
List<AccountTag> tags = accountTagDao.findAllById(tagAccount.getTagIds());
for (Account account : accounts) {
account.getAccountTags().clear();
account.getAccountTags().addAll(tags);
}
} else {
for (Account account : accounts) {
account.getAccountTags().clear();
}
}
accountTagDao.updateAccountCount();
}
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public Account updateMobile(Account customer) throws FieldException { public Account updateMobile(Account customer) throws FieldException {
accountDao.checkExists("手机号码已存在用户绑定", customer, Account_.mobile); accountDao.checkExists("手机号码已存在用户绑定", customer, Account_.mobile);
return accountDao.updateById(customer.getAccountId(), UpdateField.of(Account_.mobile, customer.getMobile())); return accountDao.updateById(customer.getAccountId(), UpdateField.of(Account_.mobile, customer.getMobile()));
...@@ -372,7 +389,7 @@ public class AccountService extends AbstractAuctionService { ...@@ -372,7 +389,7 @@ public class AccountService extends AbstractAuctionService {
// 参拍车商 // 参拍车商
long bidCount = bidDao.countAccountByCreateTimeBetween(startTime, endTime); long bidCount = bidDao.countAccountByCreateTimeBetween(startTime, endTime);
//新增中拍车商 //新增中拍车商
long newDealCount = auctionOrderDao.countNewAccountByOrderStateAndTransferredTime(AuctionOrder.OrderState.CANCELED, startTime, endTime); long newDealCount = auctionOrderDao.countNewAccountByOrderStateAndCreateTime(AuctionOrder.OrderState.CANCELED, startTime, endTime);
AccountDateStat accountTotalStat = new AccountDateStat(); AccountDateStat accountTotalStat = new AccountDateStat();
accountTotalStat.setAccountCount((int) accountCount); accountTotalStat.setAccountCount((int) accountCount);
accountTotalStat.setActiveCount((int) activeCount); accountTotalStat.setActiveCount((int) activeCount);
......
...@@ -81,6 +81,8 @@ public class CommissionRuleService { ...@@ -81,6 +81,8 @@ public class CommissionRuleService {
public CommissionRule updateCommissionRule(CommissionRule commissionRule) { public CommissionRule updateCommissionRule(CommissionRule commissionRule) {
CommissionRule commissionRuleDB = commissionRuleDao.updateById(commissionRule, CommissionRule commissionRuleDB = commissionRuleDao.updateById(commissionRule,
CommissionRule_.ruleName, CommissionRule_.ruleName,
CommissionRule_.maxPrice,
CommissionRule_.minPrice,
CommissionRule_.remark, CommissionRule_.remark,
CommissionRule_.enabled, CommissionRule_.enabled,
CommissionRule_.ruleType, CommissionRule_.ruleType,
......
...@@ -53,10 +53,10 @@ public interface AuctionOrderDao extends BaseRepository<AuctionOrder, Integer>, ...@@ -53,10 +53,10 @@ public interface AuctionOrderDao extends BaseRepository<AuctionOrder, Integer>,
long countAccountByOrderStateAndTransferredTime(AuctionOrder.OrderState orderState, LocalDateTime startTime, LocalDateTime endTime); long countAccountByOrderStateAndTransferredTime(AuctionOrder.OrderState orderState, LocalDateTime startTime, LocalDateTime endTime);
@Query(""" @Query("""
select count(distinct o.account) from AuctionOrder o where o.orderState !=?1 and o.transferredTime between ?2 and ?3 and select count(distinct o.account) from AuctionOrder o where o.orderState !=?1 and o.createTime between ?2 and ?3 and
not exists (select 1 from AuctionOrder o2 where o2.account = o.account and o2.orderState = ?1 and o2.transferredTime < ?2) not exists (select 1 from AuctionOrder o2 where o2.account = o.account and o2.orderState = ?1 and o2.createTime < ?2)
""") """)
long countNewAccountByOrderStateAndTransferredTime(AuctionOrder.OrderState orderState, LocalDateTime startTime, LocalDateTime endTime); long countNewAccountByOrderStateAndCreateTime(AuctionOrder.OrderState orderState, LocalDateTime startTime, LocalDateTime endTime);
long countByOrderState(AuctionOrder.OrderState orderState); long countByOrderState(AuctionOrder.OrderState orderState);
......
...@@ -97,8 +97,9 @@ public class AuctionOrderService extends AbstractAuctionService { ...@@ -97,8 +97,9 @@ public class AuctionOrderService extends AbstractAuctionService {
} }
public AuctionOrder getAuctionOrderByAccountAndAuctionVehicle(Account account, AuctionVehicle auctionVehicle) { public AuctionOrder getAuctionOrderByAccountAndAuctionVehicle(Account account, AuctionVehicle auctionVehicle) {
return auctionOrderDao.findTopByAccountAndVehicleAndAuction(account,auctionVehicle.getVehicle(),auctionVehicle.getAuction()); return auctionOrderDao.findTopByAccountAndVehicleAndAuction(account, auctionVehicle.getVehicle(), auctionVehicle.getAuction());
} }
/** /**
* 分页查询 * 分页查询
* *
...@@ -343,9 +344,10 @@ public class AuctionOrderService extends AbstractAuctionService { ...@@ -343,9 +344,10 @@ public class AuctionOrderService extends AbstractAuctionService {
*/ */
private double calculateCommissionPrice(LocalDateTime now, Bid bid) { private double calculateCommissionPrice(LocalDateTime now, Bid bid) {
Account account = bid.getAccount(); Account account = bid.getAccount();
double commissionPrice = 0;
LocalDate today = now.toLocalDate(); LocalDate today = now.toLocalDate();
List<CommissionRule> commissionRules = commissionRuleDao.findByEnabledIsTrueAndEffectiveDateLessThanEqualAndExpireDateGreaterThanEqualOrderByApplicableTypeAsc(today, today); double bidPrice = bid.getBidPrice();
double commissionPrice = 0;
List<CommissionRule> commissionRules = commissionRuleDao.findByEnabledIsTrueAndMinPriceLessThanEqualAndMaxPriceGreaterThanAndEffectiveDateLessThanEqualAndExpireDateGreaterThanEqualOrderByApplicableTypeAsc(bidPrice, bidPrice, today, today);
CommissionRule commissionRule = null; CommissionRule commissionRule = null;
if (!commissionRules.isEmpty()) { if (!commissionRules.isEmpty()) {
for (CommissionRule rule : commissionRules) { for (CommissionRule rule : commissionRules) {
...@@ -372,7 +374,7 @@ public class AuctionOrderService extends AbstractAuctionService { ...@@ -372,7 +374,7 @@ public class AuctionOrderService extends AbstractAuctionService {
} }
} }
if (Objects.nonNull(commissionRule)) { if (Objects.nonNull(commissionRule)) {
commissionPrice = commissionRule.calCommissionPrice(bid.getBidPrice()); commissionPrice = commissionRule.calCommissionPrice(bidPrice);
} }
return commissionPrice; return commissionPrice;
} }
......
...@@ -43,6 +43,10 @@ export class AccountController{ ...@@ -43,6 +43,10 @@ export class AccountController{
return axios.post('account/addTagAccounts', tagAccount); return axios.post('account/addTagAccounts', tagAccount);
} }
static setTagAccounts(axios:AxiosStatic, tagAccount: TagAccount): Promise<AxiosResponse<boolean>> {
return axios.post('account/setTagAccounts', tagAccount);
}
/** /**
* 审核用户申请 * 审核用户申请
* @param approveHistory * @param approveHistory
......
...@@ -67,17 +67,12 @@ export default class AccountPicker extends PaginationComponent<Account> { ...@@ -67,17 +67,12 @@ export default class AccountPicker extends PaginationComponent<Account> {
this.buildQueryForm({ this.buildQueryForm({
accountName: [null, {label: '用户名', field: 'accountName', operator: Operator.like}], accountName: [null, {label: '用户名', field: 'accountName', operator: Operator.like}],
createTime: [null, {label: '创建时间', field: 'createTime', operator: Operator.dateBetween, type: 'date-range'}], createTime: [null, {label: '创建时间', field: 'createTime', operator: Operator.dateBetween, type: 'date-range'}],
lastLoginTime: [null, {label: '最近活跃时间', field: 'lastLoginTime', operator: Operator.dateBetween, type: 'date-range'}],
mobile: [null, {label: '手机号', field: 'mobile', operator: Operator.like}], mobile: [null, {label: '手机号', field: 'mobile', operator: Operator.like}],
openId: [null, {label: '微信ID', field: 'openId', operator: Operator.like}], openId: [null, {label: '微信ID', field: 'openId', operator: Operator.like}],
idCard: [null, {label: '身份证', field: 'idCard', operator: Operator.like}], idCard: [null, {label: '身份证', field: 'idCard', operator: Operator.like}],
idCardPortrait: [null, {label: '身份证人像面', field: 'idCardPortrait', operator: Operator.like}],
idCardNationalEmblem: [null, {label: '身份证国徽面', field: 'idCardNationalEmblem', operator: Operator.like}],
businessLicense: [null, {label: '营业执照', field: 'businessLicense', operator: Operator.like}],
avatar: [null, {label: '头像', field: 'avatar', operator: Operator.like}],
nickName: [null, {label: '昵称', field: 'nickName', operator: Operator.like}], nickName: [null, {label: '昵称', field: 'nickName', operator: Operator.like}],
accountState: [null, {label: '账号状态', field: 'accountState', operator: Operator.like}], enabled: [null, {label: '账号状态', field: 'enabled', type: 'select', allowClear: true, optionItems: [{label: '启用', value: true}, {label: '禁用', value: false}], operator: Operator.eq}],
surplus: [null, {label: '余额', field: 'surplus', operator: Operator.like}],
alipayAccount: [null, {label: '支付宝账号', field: 'alipayAccount', operator: Operator.like}],
}); });
this.pagination.setDefaultSort('createTime', Order.desc); this.pagination.setDefaultSort('createTime', Order.desc);
this.pageLoad(); this.pageLoad();
......
...@@ -306,7 +306,7 @@ export default class ViewAccount extends Vue { ...@@ -306,7 +306,7 @@ export default class ViewAccount extends Vue {
const tagAccount = new TagAccount(); const tagAccount = new TagAccount();
tagAccount.accountIds = [this.accountId]; tagAccount.accountIds = [this.accountId];
tagAccount.tagIds = this.tagIds; tagAccount.tagIds = this.tagIds;
AccountController.addTagAccounts(this.axios, tagAccount).then(response => { AccountController.setTagAccounts(this.axios, tagAccount).then(response => {
message.success('保存成功'); message.success('保存成功');
this.account.accountTags = this.tags.filter(tag => this.tagIds.includes(tag.tagId)); this.account.accountTags = this.tags.filter(tag => this.tagIds.includes(tag.tagId));
this.editTags = false; this.editTags = false;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!--查询栏end--> <!--查询栏end-->
<!--用户分组列表start--> <!--用户分组列表start-->
<div class="table-operations"> <div class="table-operations">
<a-button type="primary" @click="addAccountGroup()"> <a-button v-sec="'tag_1'" type="primary" @click="addAccountGroup()">
<template #icon> <template #icon>
<PlusSquareOutlined class="mr-5"/> <PlusSquareOutlined class="mr-5"/>
</template> </template>
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
</template> </template>
<template #bodyCell="{column,record}"> <template #bodyCell="{column,record}">
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
<a-button type="link" size="small" @click="editAccountGroup(record)">编辑</a-button> <a-button v-sec="'tag_2'" type="link" size="small" @click="editAccountGroup(record)">编辑</a-button>
<a-popconfirm placement="topRight" title="删除数据不可恢复,是否继续?" ok-text="确认" cancel-text="取消" @confirm="removeAccountGroup(record.tagId)"> <a-popconfirm v-sec="'tag_3'" placement="topRight" title="删除数据不可恢复,是否继续?" ok-text="确认" cancel-text="取消" @confirm="removeAccountGroup(record.tagId)">
<a-button type="link" size="small">删除</a-button> <a-button type="link" size="small">删除</a-button>
</a-popconfirm> </a-popconfirm>
</template> </template>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!--查询栏end--> <!--查询栏end-->
<!--轮播图列表start--> <!--轮播图列表start-->
<div class="table-operations"> <div class="table-operations">
<a-button type="primary" @click="addCarousel()"> <a-button v-sec="'carousel_1'" type="primary" @click="addCarousel()">
<template #icon> <template #icon>
<PlusSquareOutlined class="mr-5"/> <PlusSquareOutlined class="mr-5"/>
</template> </template>
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
</template> </template>
<template #bodyCell="{column,record}"> <template #bodyCell="{column,record}">
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
<a-button type="link" @click="editCarousel(record)">编辑</a-button> <a-button v-sec="'carousel_2'" type="link" @click="editCarousel(record)">编辑</a-button>
<a-popconfirm placement="topRight" title="删除数据不可恢复,是否继续?" ok-text="确认" cancel-text="取消" @confirm="removeCarousel(record.carouselId)"> <a-popconfirm v-sec="'carousel_3'" placement="topRight" title="删除数据不可恢复,是否继续?" ok-text="确认" cancel-text="取消" @confirm="removeCarousel(record.carouselId)">
<a-button type="link">删除</a-button> <a-button type="link">删除</a-button>
</a-popconfirm> </a-popconfirm>
<a-button type="link" @click="viewCarousel(record)">详情</a-button> <a-button type="link" @click="viewCarousel(record)">详情</a-button>
......
...@@ -4,6 +4,11 @@ ...@@ -4,6 +4,11 @@
<a-form-item label="规则名称" name="ruleName" :rules="[{ required: true, message: '请输入规则名称!' }]"> <a-form-item label="规则名称" name="ruleName" :rules="[{ required: true, message: '请输入规则名称!' }]">
<a-input v-model:value="formState.ruleName" placeholder="请输入规则名称" :maxlength="128"/> <a-input v-model:value="formState.ruleName" placeholder="请输入规则名称" :maxlength="128"/>
</a-form-item> </a-form-item>
<a-form-item label="成交价区间" name="minPrice" :rules="[{ required: true, message: '请输入最低成交价!' },{validator: verifyPriceRange,message: '最低估值必须小于最高成交价'}]">
<a-input-number v-model:value="formState.minPrice" :min="0" :maxlength="8" :max="99999999" addon-after="元" placeholder="请输入最低成交价"/>
-
<a-input-number v-model:value="formState.maxPrice" :min="0" :maxlength="8" :max="99999999" addon-after="元" placeholder="请输入最高成交价"/>
</a-form-item>
<a-form-item label="适用人群" name="applicableType"> <a-form-item label="适用人群" name="applicableType">
<a-radio-group v-model:value="formState.applicableType" placeholder="请输入适用人群" button-style="solid"> <a-radio-group v-model:value="formState.applicableType" placeholder="请输入适用人群" button-style="solid">
<a-radio-button v-for="applicableType in applicableTypes" :key="applicableType" :value="applicableType">{{ $t('enum.commissionRule.applicableType.' + applicableType) }}</a-radio-button> <a-radio-button v-for="applicableType in applicableTypes" :key="applicableType" :value="applicableType">{{ $t('enum.commissionRule.applicableType.' + applicableType) }}</a-radio-button>
...@@ -91,6 +96,7 @@ import AccountTypeTag from "@/views/account/account/tag/AccountTypeTag.vue"; ...@@ -91,6 +96,7 @@ import AccountTypeTag from "@/views/account/account/tag/AccountTypeTag.vue";
import {Account} from "lib/src/entity/account/entity/Account"; import {Account} from "lib/src/entity/account/entity/Account";
import {ModalService} from "@/components/ModalService"; import {ModalService} from "@/components/ModalService";
import AccountPicker from "@/views/account/account/AccountPicker.vue"; import AccountPicker from "@/views/account/account/AccountPicker.vue";
import {RuleObject} from "ant-design-vue/es/form/interface";
@Component({ @Component({
components: {AccountTypeTag} components: {AccountTypeTag}
...@@ -107,6 +113,21 @@ export default class CommissionRuleForm extends EnhanceFormComponent<CommissionR ...@@ -107,6 +113,21 @@ export default class CommissionRuleForm extends EnhanceFormComponent<CommissionR
lastFetchId = 0; lastFetchId = 0;
verifyPriceRange(_rule: RuleObject, minPrice: number) {
if (!this.formState.maxPrice) {
return Promise.reject('请输入最高成交价!');
}
if (minPrice && this.formState.maxPrice) {
if (minPrice > this.formState.maxPrice) {
return Promise.reject('最低成交价必须小于最高成交价!');
} else {
return Promise.resolve();
}
} else {
return Promise.resolve();
}
}
created(): void { created(): void {
AccountController.getAccountTags(this.axios).then(res => { AccountController.getAccountTags(this.axios).then(res => {
this.tags = res.data; this.tags = res.data;
...@@ -156,6 +177,7 @@ export default class CommissionRuleForm extends EnhanceFormComponent<CommissionR ...@@ -156,6 +177,7 @@ export default class CommissionRuleForm extends EnhanceFormComponent<CommissionR
}); });
} }
console.log(formValue); console.log(formValue);
formValue.maxPrice = this.formState.maxPrice;
switch (this.action) { switch (this.action) {
case 'create': case 'create':
case 'add': case 'add':
......
...@@ -77,7 +77,22 @@ export default class CommissionRulePage extends PaginationComponent<CommissionRu ...@@ -77,7 +77,22 @@ export default class CommissionRulePage extends PaginationComponent<CommissionRu
*/ */
columns: TableColumnsType = [ columns: TableColumnsType = [
{title: '规则ID', dataIndex: 'ruleId', key: 'ruleId', width: 100, resizable: true, ellipsis: true, sorter: true}, {title: '规则ID', dataIndex: 'ruleId', key: 'ruleId', width: 100, resizable: true, ellipsis: true, sorter: true},
{title: '规则名称', dataIndex: 'ruleName', key: 'ruleName', resizable: true, ellipsis: true, sorter: true}, {title: '规则名称', dataIndex: 'ruleName', key: 'ruleName',width: 200, resizable: true, ellipsis: true, sorter: true},
{
title: "最低成交价区间", align: 'center', children: [
{
title: '最低成交价', dataIndex: 'minPrice', key: 'minPrice', align: 'right', width: 110, resizable: true, ellipsis: true, sorter: true,
customRender: ({text}) => {
return '¥' + text;
}
},
{
title: '最高成交价', dataIndex: 'maxPrice', key: 'maxPrice', align: 'right', width: 110, resizable: true, ellipsis: true, sorter: true, customRender: ({text}) => {
return '¥' + text;
}
},
]
},
{ {
title: '规则类型', dataIndex: 'ruleType', key: 'ruleType', width: 120, resizable: true, ellipsis: true, sorter: true, title: '规则类型', dataIndex: 'ruleType', key: 'ruleType', width: 120, resizable: true, ellipsis: true, sorter: true,
customRender: ({text}) => { customRender: ({text}) => {
......
<template> <template>
<a-descriptions :bordered="false" :column="2" size="small"> <a-descriptions :bordered="false" :column="2" size="small">
<a-descriptions-item label="规则名称" name="ruleName" :span="3"> <a-descriptions-item label="规则名称" name="ruleName" :span="2">
{{ commissionRule.ruleName }} {{ commissionRule.ruleName }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="成交价区间" name="ruleName" :span="2">
¥{{ commissionRule.minPrice }} - ¥{{ commissionRule.maxPrice }}
</a-descriptions-item>
<a-descriptions-item label="创建人" name="createBy"> <a-descriptions-item label="创建人" name="createBy">
<user-real-name :user-name="commissionRule.createBy"></user-real-name> <user-real-name :user-name="commissionRule.createBy"></user-real-name>
</a-descriptions-item> </a-descriptions-item>
...@@ -47,7 +50,7 @@ ...@@ -47,7 +50,7 @@
{{ $t('enum.commissionRule.applicableType.' + commissionRule.applicableType) }} {{ $t('enum.commissionRule.applicableType.' + commissionRule.applicableType) }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="个人车主" v-if="commissionRule.applicableType==='ACCOUNT'"> <a-descriptions-item label="个人车主" v-if="commissionRule.applicableType==='ACCOUNT'">
<a-tag v-for="account in rule.accounts" :key="account.accountId">{{ account.accountName }}</a-tag> <a-tag v-for="account in rule?.accounts" :key="account.accountId">{{ account.accountName }}</a-tag>
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="标签用户" v-if="commissionRule.applicableType==='TAG'"> <a-descriptions-item label="标签用户" v-if="commissionRule.applicableType==='TAG'">
<a-tag v-for="tag in rule.accountTags" :key="tag.tagId">{{ tag.tagName }}</a-tag> <a-tag v-for="tag in rule.accountTags" :key="tag.tagId">{{ tag.tagName }}</a-tag>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!--查询栏end--> <!--查询栏end-->
<!--通知模板列表start--> <!--通知模板列表start-->
<div class="table-operations"> <div class="table-operations">
<a-button type="primary" @click="addNoticeTemplate()"> <a-button v-sec="'notice_template_1'" type="primary" @click="addNoticeTemplate()">
<template #icon> <template #icon>
<PlusSquareOutlined class="mr-5"/> <PlusSquareOutlined class="mr-5"/>
</template> </template>
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
</a-popconfirm> </a-popconfirm>
</template> </template>
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
<a-button type="link" size="small" @click="editNoticeTemplate(record)">编辑</a-button> <a-button v-sec="'notice_template_2'" type="link" size="small" @click="editNoticeTemplate(record)">编辑</a-button>
<a-button type="link" size="small" @click="viewNoticeTemplate(record)">查看</a-button> <a-button v-sec="'notice_template_3'" type="link" size="small" @click="viewNoticeTemplate(record)">查看</a-button>
</template> </template>
</template> </template>
<!--通知模板列表end--> <!--通知模板列表end-->
......
...@@ -38,20 +38,22 @@ import {Component, Vue} from "vue-facing-decorator"; ...@@ -38,20 +38,22 @@ import {Component, Vue} from "vue-facing-decorator";
@Component({ @Component({
components: {} components: {}
}) })
export default class ViewPriceRule extends Vue { export default class ViewPriceRule extends Vue {
ruleId: any; ruleId: any;
priceRule:PriceRule | null = null; priceRule: PriceRule | null = null;
created(): void { created(): void {
this.ruleId = Number(this.\\$route.query.ruleId); this.ruleId = Number(this.\\$route.query.ruleId
this.axios.get('priceRule/getPriceRuleById', {params : { ruleId: this.ruleId }}).then(response => { )
this.priceRule=response.data; ;
this.axios.get('priceRule/getPriceRuleById', {params: {ruleId: this.ruleId}}).then(response => {
this.priceRule = response.data;
}); });
} }
} }
</script> </script>
<style scoped lang="ts"> <style scoped lang="ts">
......
...@@ -6,11 +6,11 @@ PUBLISH_PATH = '/' ...@@ -6,11 +6,11 @@ PUBLISH_PATH = '/'
# 平台端请求路径 # 平台端请求路径
# 生产环境 # 生产环境
VITE_APP_API_URL = 'http://aapp.link:6911/api/' # VITE_APP_API_URL = 'http://aapp.link:6911/api/'
VITE_APP_API_BASE_URL = 'http://aapp.link:6911/' # VITE_APP_API_BASE_URL = 'http://aapp.link:6911/'
# VITE_APP_API_URL = 'https://aus.glsx.com.cn/app/api/' VITE_APP_API_URL = 'https://aus.glsx.com.cn/app/api/'
# VITE_APP_API_BASE_URL = 'https://aus.glsx.com.cn/app/' VITE_APP_API_BASE_URL = 'https://aus.glsx.com.cn/app/'
VITE_APP_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmYWN0b3JJZCI6MSwic3ViIjoiYWRtaW5pc3RyYXRvciIsInJlYWxOYW1lIjoi6LaF57qn566h55CG5ZGYIiwicGFzc3dvcmQiOiIkMmEkMTAkaFR0QkdSOTAxZ1A2SzQ5Ti9RNWFNT2oyQjE3cDVYZjRmeXliZTJ6ckpjdEJjWklMbUEwZEciLCJpc3MiOiJ5eHR3ZWIiLCJhdmF0YXIiOiJ1c2VySW5mby8yMDIzMDcxOC9OMUYxNGJ5NmRPLmpwZyIsImV4cCI6MTc2ODkyNzY3NywiaWF0IjoxNjk2OTI3Njc3LCJqdGkiOiIxIiwiYXV0aG9yaXRpZXMiOlsiUk9MRV9TVVBFUiIsIkFETUlOIl19.3SYoNceGBTubVsikOb7aFpm5medHG-AUpVgcBdb2ao8' VITE_APP_TOKEN= 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmYWN0b3JJZCI6MSwic3ViIjoiYWRtaW5pc3RyYXRvciIsInJlYWxOYW1lIjoi6LaF57qn566h55CG5ZGYIiwicGFzc3dvcmQiOiIkMmEkMTAkaFR0QkdSOTAxZ1A2SzQ5Ti9RNWFNT2oyQjE3cDVYZjRmeXliZTJ6ckpjdEJjWklMbUEwZEciLCJpc3MiOiJ5eHR3ZWIiLCJhdmF0YXIiOiJ1c2VySW5mby8yMDIzMDcxOC9OMUYxNGJ5NmRPLmpwZyIsImV4cCI6MTc2ODkyNzY3NywiaWF0IjoxNjk2OTI3Njc3LCJqdGkiOiIxIiwiYXV0aG9yaXRpZXMiOlsiUk9MRV9TVVBFUiIsIkFETUlOIl19.3SYoNceGBTubVsikOb7aFpm5medHG-AUpVgcBdb2ao8'
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
"quickapp": {}, "quickapp": {},
/* 小程序特有相关 */ /* 小程序特有相关 */
"mp-weixin": { "mp-weixin": {
/* "appid": "wxa719209ed933d667",*/ "appid": "wxa719209ed933d667",
"appid": "wx568d02f6352efd49", /* "appid": "wx568d02f6352efd49",*/
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
"es6": true, "es6": true,
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</view> </view>
</template> </template>
<script lang="ts"> <script lang="ts">
import {Component} from "vue-facing-decorator"; import {Component, Hook} from "vue-facing-decorator";
import {onLoad, onShow} from "@dcloudio/uni-app"; import {onLoad, onShow} from "@dcloudio/uni-app";
import {Auction} from "lib/src/entity/auction/entity/Auction"; import {Auction} from "lib/src/entity/auction/entity/Auction";
import {AuctionController} from "@/api/AuctionController"; import {AuctionController} from "@/api/AuctionController";
...@@ -116,6 +116,17 @@ export default class AuctionSessionPage extends AuctionVehicleFilter { ...@@ -116,6 +116,17 @@ export default class AuctionSessionPage extends AuctionVehicleFilter {
}); });
} }
@Hook('onShareAppMessage')
onShareAppMessage(res: any) {
console.debug('分享来源:', res.from);
const title = `优加车拍 ${this.auction.auctionName}`;
return {
title: title,
path: '/module/auction/AuctionSessionPage?actionId='+this.auctionId,
imageUrl: 'https://dj-oss-fastdfs-release.oss-cn-shenzhen.aliyuncs.com/auction/f0e4f6add8afa743af09294e791c2f9b.png', // 分享图片(建议尺寸 5:4,默认使用页面截图)
};
}
} }
</script> </script>
......
...@@ -298,12 +298,12 @@ export default class AuctionVehicleDetail extends Vue { ...@@ -298,12 +298,12 @@ export default class AuctionVehicleDetail extends Vue {
{id: 2, label: '过户次数', value: this.vehicle.ownership.transferCount + '次'}, {id: 2, label: '过户次数', value: this.vehicle.ownership.transferCount + '次'},
{id: 3, label: '使用性质', value: Ownership.usageTypeLabel(this.vehicle)}, {id: 3, label: '使用性质', value: Ownership.usageTypeLabel(this.vehicle)},
{id: 4, label: '排放标准', value: '国' + this.vehicle.coreSpecs.emissionStandard}, {id: 4, label: '排放标准', value: '国' + this.vehicle.coreSpecs.emissionStandard},
{id: 5, label: '所在地', value: this.vehicle.ownership.carProvinceName ?? '-'}, {id: 5, label: '所在地', value: this.vehicle.ownership.carCityName ?? '-'},
{id: 6, label: '上牌时间', value: this.vehicle.ownership.registrationDate ?? '-'}, {id: 6, label: '上牌时间', value: this.vehicle.ownership.registrationDate ?? '-'},
{id: 7, label: '交强险到期', value: this.vehicle.licenseInfo.compulsoryInsuranceExpiry ?? '-'}, {id: 7, label: '交强险到期', value: this.vehicle.licenseInfo.compulsoryInsuranceExpiry ?? '-'},
{id: 8, label: '年检到期', value: this.vehicle.licenseInfo.annualInspectionExpiry ?? '-'}, {id: 8, label: '年检到期', value: this.vehicle.licenseInfo.annualInspectionExpiry ?? '-'},
{id: 9, label: '车身颜色', value: this.vehicle.coreSpecs.exteriorColor ?? '-'}, {id: 9, label: '车身颜色', value: this.vehicle.coreSpecs.exteriorColor ?? '-'},
{id: 10, label: '车辆网点', value: this.vehicle.venue?.venueName ?? '-'} // {id: 10, label: '车辆网点', value: this.vehicle.venue?.venueName ?? '-'}
]; ];
} }
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import {Component} from "vue-facing-decorator"; import {Component, Hook} from "vue-facing-decorator";
import {Auction} from "lib/src/entity/auction/entity/Auction"; import {Auction} from "lib/src/entity/auction/entity/Auction";
import {onLoad, onShow} from "@dcloudio/uni-app"; import {onLoad, onShow} from "@dcloudio/uni-app";
import {AuctionController} from "@/api/AuctionController"; import {AuctionController} from "@/api/AuctionController";
...@@ -270,6 +270,18 @@ export default class AuctionPage extends PaginationComponent<Auction> { ...@@ -270,6 +270,18 @@ export default class AuctionPage extends PaginationComponent<Auction> {
uni.navigateTo({url: url}); uni.navigateTo({url: url});
} }
// 定义分享内容(必写)
@Hook('onShareAppMessage')
onShareAppMessage(res: any) {
console.debug('分享来源:', res.from);
const title = `优加车拍`;
return {
title: title,
path: '/pages/tabbar/AuctionPage',
imageUrl: 'https://dj-oss-fastdfs-release.oss-cn-shenzhen.aliyuncs.com/auction/f0e4f6add8afa743af09294e791c2f9b.png', // 分享图片(建议尺寸 5:4,默认使用页面截图)
};
}
} }
</script> </script>
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
</van-dialog> </van-dialog>
</template> </template>
<script lang="ts"> <script lang="ts">
import {Component, Vue} from "vue-facing-decorator"; import {Component, Hook, Vue} from "vue-facing-decorator";
import {onLoad, onShow} from "@dcloudio/uni-app"; import {onLoad, onShow} from "@dcloudio/uni-app";
import {CarouselController} from "@/api/CarouselController"; import {CarouselController} from "@/api/CarouselController";
import {Carousel} from "lib/src/entity/business/entity/Carousel"; import {Carousel} from "lib/src/entity/business/entity/Carousel";
...@@ -295,6 +295,19 @@ export default class HomePage extends Vue { ...@@ -295,6 +295,19 @@ export default class HomePage extends Vue {
} }
} }
// 定义分享内容(必写)
@Hook('onShareAppMessage')
onShareAppMessage(res: any) {
console.debug('分享来源:', res.from);
const title = `优加车拍`;
return {
title: title,
path: '/pages/tabbar/HomePage',
imageUrl: 'https://dj-oss-fastdfs-release.oss-cn-shenzhen.aliyuncs.com/auction/f0e4f6add8afa743af09294e791c2f9b.png', // 分享图片(建议尺寸 5:4,默认使用页面截图)
};
}
} }
</script> </script>
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
</view> </view>
<!-- <van-empty v-else image="/static/images/empty_2.png" description="未找到相关车源"/>--> <!-- <van-empty v-else image="/static/images/empty_2.png" description="未找到相关车源"/>-->
<!-- </scroll-view>--> <!-- </scroll-view>-->
<template v-if="contents.length<20"> <!-- <template v-if="contents.length<20">-->
<like-auction-vehicles :page-size="20-contents.length"></like-auction-vehicles> <!-- <like-auction-vehicles :page-size="20-contents.length"></like-auction-vehicles>-->
<view style="font-size: 12px;color: #666666;text-align: center">已为您展示周边城市的优质⻋源</view> <!-- <view style="font-size: 12px;color: #666666;text-align: center">已为您展示周边城市的优质⻋源</view>-->
</template> <!-- </template>-->
</template> </template>
...@@ -43,8 +43,11 @@ export default class RecommendAuctionVehicles extends PaginationComponent<Auctio ...@@ -43,8 +43,11 @@ export default class RecommendAuctionVehicles extends PaginationComponent<Auctio
}); });
onLoad((option) => { onLoad((option) => {
this.buildQueryForm({ this.buildQueryForm({
cities: [this.currentCity.code, {label: '当前城市编码', field: 'auction.cities', operator: Operator.like}], // cities: [this.currentCity.code, {label: '当前城市编码', field: 'auction.cities', operator: Operator.like}],
}); });
if(this.currentCity.code){
this.pagination.putData("cities", this.currentCity.code);
}
this.initSearch(); this.initSearch();
}); });
} }
...@@ -53,7 +56,8 @@ export default class RecommendAuctionVehicles extends PaginationComponent<Auctio ...@@ -53,7 +56,8 @@ export default class RecommendAuctionVehicles extends PaginationComponent<Auctio
watchCurrentCity(newVal: City, oldVal: City): void { watchCurrentCity(newVal: City, oldVal: City): void {
console.log(newVal); console.log(newVal);
if (newVal && oldVal && newVal.code !== oldVal.code) { if (newVal && oldVal && newVal.code !== oldVal.code) {
this.pagination.queryForm.cities = newVal.code; this.pagination.putData("cities", newVal.code);
// this.pagination.queryForm.cities = newVal.code;
this.pageReload(); this.pageReload();
} }
} }
......
...@@ -17,6 +17,15 @@ export class CommissionRule extends AuditingEntity { ...@@ -17,6 +17,15 @@ export class CommissionRule extends AuditingEntity {
* 规则名称 * 规则名称
*/ */
ruleName: string; ruleName: string;
/**
* 最低估值
*/
minPrice: number;
/**
* 最高估值
*/
maxPrice: number;
/** /**
* 规则详情 * 规则详情
*/ */
......
...@@ -1304,6 +1304,14 @@ ...@@ -1304,6 +1304,14 @@
<DT arr="0" ds="Enum" en="'ACCOUNT','TAG','ALL'" id="706" ln="null" sc="null" sg="1" un="0"/> <DT arr="0" ds="Enum" en="'ACCOUNT','TAG','ALL'" id="706" ln="null" sc="null" sg="1" un="0"/>
<Cm>适用人群</Cm> <Cm>适用人群</Cm>
</Cl> </Cl>
<Cl au="0" df="0" nm="MIN_PRICE" nu="0">
<DT arr="0" ds="Decimal" en="" id="3" ln="16" sc="2" sg="1" un="0"/>
<Cm>最低成交价</Cm>
</Cl>
<Cl au="0" df="0" nm="MAX_PRICE" nu="0">
<DT arr="0" ds="Decimal" en="" id="3" ln="16" sc="2" sg="1" un="0"/>
<Cm>最高成交价</Cm>
</Cl>
<UniqueConstraints/> <UniqueConstraints/>
<SchTrHis/> <SchTrHis/>
</Tbl> </Tbl>
...@@ -3556,7 +3564,7 @@ ...@@ -3556,7 +3564,7 @@
<svg path=""/> <svg path=""/>
</DiaProps> </DiaProps>
<TbGl bkCl="#6699ff64" h="178" sch="schemaA" tbl="transaction" w="464" x="514" y="461"/> <TbGl bkCl="#6699ff64" h="178" sch="schemaA" tbl="transaction" w="464" x="514" y="461"/>
<TbGl bkCl="#6699ff64" h="434" sch="schemaA" tbl="withdraw" w="526" x="1136" y="787"/> <TbGl bkCl="#6699ff64" h="450" sch="schemaA" tbl="withdraw" w="526" x="1136" y="787"/>
<TbGl bkCl="#6699ff64" h="450" sch="schemaA" tbl="account" w="518" x="1131" y="181"/> <TbGl bkCl="#6699ff64" h="450" sch="schemaA" tbl="account" w="518" x="1131" y="181"/>
<TbGl bkCl="#6699ff64" h="242" sch="schemaA" tbl="bank_account" w="436" x="1486" y="1317"/> <TbGl bkCl="#6699ff64" h="242" sch="schemaA" tbl="bank_account" w="436" x="1486" y="1317"/>
<TbGl bkCl="#6699ff64" h="178" sch="schemaA" tbl="deposit" w="475" x="156" y="133"/> <TbGl bkCl="#6699ff64" h="178" sch="schemaA" tbl="deposit" w="475" x="156" y="133"/>
...@@ -3944,7 +3952,7 @@ ...@@ -3944,7 +3952,7 @@
<svg path=""/> <svg path=""/>
</DiaProps> </DiaProps>
<TbGl bkCl="#6699ff64" h="210" sch="schemaA" tbl="price_rule" w="496" x="149" y="166"/> <TbGl bkCl="#6699ff64" h="210" sch="schemaA" tbl="price_rule" w="496" x="149" y="166"/>
<TbGl bkCl="#6699ff64" h="242" sch="schemaA" tbl="commission_rule" w="472" x="1590" y="228"/> <TbGl bkCl="#6699ff64" h="274" sch="schemaA" tbl="commission_rule" w="472" x="1590" y="228"/>
<TbGl bkCl="#6699ff64" h="274" sch="schemaA" tbl="deposit_rule" w="516" x="885" y="158"/> <TbGl bkCl="#6699ff64" h="274" sch="schemaA" tbl="deposit_rule" w="516" x="885" y="158"/>
<TbGl bkCl="#6699ff64" h="290" sch="schemaA" tbl="carousel" w="396" x="108" y="459"/> <TbGl bkCl="#6699ff64" h="290" sch="schemaA" tbl="carousel" w="396" x="108" y="459"/>
<TbGl bkCl="#6699ff64" h="210" sch="schemaA" tbl="agreement" w="430" x="1174" y="581"/> <TbGl bkCl="#6699ff64" h="210" sch="schemaA" tbl="agreement" w="430" x="1174" y="581"/>
...@@ -4781,6 +4789,13 @@ ...@@ -4781,6 +4789,13 @@
<RnmCh ObjCls="Column" ParCls="Table" ParNme="refund" SupCls="Schema" SupNme="schemaA"> <RnmCh ObjCls="Column" ParCls="Table" ParNme="refund" SupCls="Schema" SupNme="schemaA">
<Rnm nNm="WITHDRAW_ID" oNm="WITHDRAW_ID"/> <Rnm nNm="WITHDRAW_ID" oNm="WITHDRAW_ID"/>
</RnmCh> </RnmCh>
<RnmCh ObjCls="Column" ParCls="Table" ParNme="commission_rule" SupCls="Schema" SupNme="schemaA">
<Rnm nNm="MIN_PRICE" oNm="MIN_PRICE"/>
<Rnm nNm="MIN_PRICE" oNm="MIN_PRICE"/>
</RnmCh>
<RnmCh ObjCls="Column" ParCls="Table" ParNme="commission_rule" SupCls="Schema" SupNme="schemaA">
<Rnm nNm="MAX_PRICE" oNm="MAX_PRICE"/>
</RnmCh>
</RnmMgr> </RnmMgr>
<BasicOptionMgr> <BasicOptionMgr>
<Name>dbDocOptionMgr</Name> <Name>dbDocOptionMgr</Name>
......
...@@ -215,3 +215,11 @@ ALTER TABLE withdraw ADD REFUND_AMOUNT DECIMAL(16, 2) DEFAULT 0 ...@@ -215,3 +215,11 @@ ALTER TABLE withdraw ADD REFUND_AMOUNT DECIMAL(16, 2) DEFAULT 0
ALTER TABLE withdraw ADD AUDITOR VARCHAR(32) ALTER TABLE withdraw ADD AUDITOR VARCHAR(32)
COMMENT '审核人' NULL after REFUND_AMOUNT; COMMENT '审核人' NULL after REFUND_AMOUNT;
# 2026-01-18
ALTER TABLE commission_rule ADD MIN_PRICE DECIMAL(16, 2) DEFAULT 0
COMMENT '最低成交价' NOT NULL after APPLICABLE_TYPE;
ALTER TABLE commission_rule ADD MAX_PRICE DECIMAL(16, 2) DEFAULT 0
COMMENT '最高成交价' NOT NULL after MIN_PRICE;
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!