diff --git a/ruoyi-admin/src/main/java/com/ruoyi/operation/domain/CompanyStore.java b/ruoyi-admin/src/main/java/com/ruoyi/operation/domain/CompanyStore.java index 0ca7f03..e3fdb64 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/operation/domain/CompanyStore.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/operation/domain/CompanyStore.java @@ -57,7 +57,7 @@ public class CompanyStore extends BaseEntity private String cityName; /** 区县 */ - private Long areaId; + private String areaId; /** 城市 */ @Excel(name = "城市") @@ -127,7 +127,7 @@ public class CompanyStore extends BaseEntity private Long operatingCompanyId; /** 运营性质 1.直营 0.合作 */ - @Excel(name = "运营性质 1.直营 0.合作") + @Excel(name = "运营性质") private Integer operatingNature; /** 简介 */ @@ -143,36 +143,28 @@ public class CompanyStore extends BaseEntity private String storeNumber; /** 营业执照 */ - @Excel(name = "营业执照") private String businessLicenseImg; /** 审核状态 0.未审核 1.审核通过 2.审核未通过 */ - @Excel(name = "审核状态 0.未审核 1.审核通过 2.审核未通过") private Integer auditStatus; /** 审核时间 */ @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd") private Date auditTime; /** 审核人id */ - @Excel(name = "审核人id") private Long auditorId; /** 所属用户id */ - @Excel(name = "所属用户id") private Long userId; /** 是否允许回收退租天数 0.不允许 1.允许 */ - @Excel(name = "是否允许回收退租天数 0.不允许 1.允许") private Integer isReturnAllowed; /** 企业套餐保证金 */ - @Excel(name = "企业套餐保证金") private BigDecimal mealDepositPrice; /** 企业充值订单数限制 */ - @Excel(name = "企业充值订单数限制") private Long orderNumLimit; /** */ @@ -285,11 +277,11 @@ public class CompanyStore extends BaseEntity this.cityName = cityName; } - public Long getAreaId() { + public String getAreaId() { return areaId; } - public void setAreaId(Long areaId) { + public void setAreaId(String areaId) { this.areaId = areaId; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/operation/service/impl/CompanyStoreServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/operation/service/impl/CompanyStoreServiceImpl.java index cf9e3c8..65836bc 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/operation/service/impl/CompanyStoreServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/operation/service/impl/CompanyStoreServiceImpl.java @@ -2,6 +2,9 @@ package com.ruoyi.operation.service.impl; import java.util.List; import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.domain.SysAreaHn; +import com.ruoyi.system.service.ISysAreaHnService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ruoyi.operation.mapper.CompanyStoreMapper; @@ -20,7 +23,8 @@ public class CompanyStoreServiceImpl implements ICompanyStoreService { @Autowired private CompanyStoreMapper companyStoreMapper; - + @Autowired + private ISysAreaHnService sysAreaHnService; /** * 查询门店 * @@ -56,14 +60,22 @@ public class CompanyStoreServiceImpl implements ICompanyStoreService { companyStore.setCreateTime(DateUtils.getNowDate()); companyStore.setUpdateTime(DateUtils.getNowDate()); - if(companyStore.getAuditStatus().equals("1")){ - companyStore.setStatus("0"); - }else{ - companyStore.setStatus("0"); - } + companyStore.setStatus("0"); + + setAreaInfo(companyStore); return companyStoreMapper.insertCompanyStore(companyStore); } + private void setAreaInfo(CompanyStore companyStore){ + //获取当前区划 + String areaCode = companyStore.getAreaId(); + SysAreaHn areaHn = sysAreaHnService.selectSysAreaHnByCode(areaCode.substring(0,4)+"00000000"); + companyStore.setCityId(areaHn.getAreaCode()); + companyStore.setCityName(areaHn.getName()); + companyStore.setProvinceId(areaHn.getParentCode()); + companyStore.setProvinceName(areaHn.getParentName()); + } + /** * 修改门店 * @@ -74,11 +86,9 @@ public class CompanyStoreServiceImpl implements ICompanyStoreService public int updateCompanyStore(CompanyStore companyStore) { companyStore.setUpdateTime(DateUtils.getNowDate()); - if(companyStore.getAuditStatus().equals("1")){ - companyStore.setStatus("0"); - }else{ - companyStore.setStatus("0"); - } + companyStore.setStatus("0"); + + setAreaInfo(companyStore); return companyStoreMapper.updateCompanyStore(companyStore); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/orders/domain/ZcOrderMain.java b/ruoyi-admin/src/main/java/com/ruoyi/orders/domain/ZcOrderMain.java index a5257b3..9c2e6a0 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/orders/domain/ZcOrderMain.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/orders/domain/ZcOrderMain.java @@ -93,13 +93,13 @@ public class ZcOrderMain extends BaseEntity private Integer isAutoDeduct; /** 首次下单时间 */ - @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "首次下单时间", width = 30, dateFormat = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "首次下单时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date firstOrderTime; /** 开始计费时间 */ - @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "开始计费时间", width = 30, dateFormat = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "开始计费时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date startRentTime; /** 逾期天数 */ diff --git a/ruoyi-admin/src/main/resources/mapper/orders/ZcOrderMainMapper.xml b/ruoyi-admin/src/main/resources/mapper/orders/ZcOrderMainMapper.xml index bb2c5e7..36e6d75 100644 --- a/ruoyi-admin/src/main/resources/mapper/orders/ZcOrderMainMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/orders/ZcOrderMainMapper.xml @@ -91,6 +91,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and a.charge_times = #{chargeTimes} and a.rent_car_rule_id = #{rentCarRuleId} and a.rent_battey_rule_id = #{rentBatteyRuleId} + + and s.name = #{storeName} + and zc.license_plate = #{licensePlate} diff --git a/ruoyi-admin/src/main/resources/templates/operation/company/add.html b/ruoyi-admin/src/main/resources/templates/operation/company/add.html index 02eb971..b4435f5 100644 --- a/ruoyi-admin/src/main/resources/templates/operation/company/add.html +++ b/ruoyi-admin/src/main/resources/templates/operation/company/add.html @@ -39,7 +39,10 @@
- +
+ + % +
diff --git a/ruoyi-admin/src/main/resources/templates/operation/company/company.html b/ruoyi-admin/src/main/resources/templates/operation/company/company.html index 64513e4..1e210e0 100644 --- a/ruoyi-admin/src/main/resources/templates/operation/company/company.html +++ b/ruoyi-admin/src/main/resources/templates/operation/company/company.html @@ -107,7 +107,10 @@ }, { field: 'sharingRatio', - title: '租车平台分成比例' + title: '租车平台分成比例', + formatter: function(value, row, index) { + return value +"%"; + } }, { field: 'createBy', @@ -130,12 +133,11 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('编辑 '); - actions.push('删除'); + actions.push('修改 '); if (row.status == 1) { - actions.push('启用 '); + actions.push('启用 '); } else { - actions.push('停用 '); + actions.push('停用 '); } return actions.join(''); } diff --git a/ruoyi-admin/src/main/resources/templates/operation/company/edit.html b/ruoyi-admin/src/main/resources/templates/operation/company/edit.html index de5de9f..06876f8 100644 --- a/ruoyi-admin/src/main/resources/templates/operation/company/edit.html +++ b/ruoyi-admin/src/main/resources/templates/operation/company/edit.html @@ -40,7 +40,10 @@
- +
+ + % +
diff --git a/ruoyi-admin/src/main/resources/templates/operation/store/add.html b/ruoyi-admin/src/main/resources/templates/operation/store/add.html index 5d0716e..19e60c9 100644 --- a/ruoyi-admin/src/main/resources/templates/operation/store/add.html +++ b/ruoyi-admin/src/main/resources/templates/operation/store/add.html @@ -58,8 +58,8 @@
- - + +
@@ -101,19 +101,28 @@
- +
+ + % +
- +
+ + % +
- +
+ + % +
@@ -169,15 +178,15 @@
-
- -
- -
- -
-
-
+ + + + + + + + +
diff --git a/ruoyi-admin/src/main/resources/templates/operation/store/addStoreUser.html b/ruoyi-admin/src/main/resources/templates/operation/store/addStoreUser.html index c7ed1a6..58d138c 100644 --- a/ruoyi-admin/src/main/resources/templates/operation/store/addStoreUser.html +++ b/ruoyi-admin/src/main/resources/templates/operation/store/addStoreUser.html @@ -57,6 +57,7 @@ } } + var removeFlag = [[${@permission.hasPermi('baseUser:user:remove')}]]; $(function() { var options = { @@ -67,6 +68,8 @@ showToggle: false, showColumns: false, sidePagination: "client", + removeUrl: prefix + "/remove", + modalName: "门店用户", columns: [{ checkbox: false }, @@ -102,7 +105,15 @@ align: 'center', title: '创建时间' }, - ] + { + title: '操作', + align: 'center', + formatter: function(value, row, index) { + var actions = []; + actions.push('删除'); + return actions.join(''); + } + }] }; $.table.init(options); }); diff --git a/ruoyi-admin/src/main/resources/templates/operation/store/edit.html b/ruoyi-admin/src/main/resources/templates/operation/store/edit.html index eef9df3..1420e75 100644 --- a/ruoyi-admin/src/main/resources/templates/operation/store/edit.html +++ b/ruoyi-admin/src/main/resources/templates/operation/store/edit.html @@ -59,8 +59,8 @@
- - + +
@@ -101,19 +101,28 @@
- +
+ + % +
- +
+ + % +
- +
+ + % +
@@ -169,15 +178,15 @@
-
- -
- -
- -
-
-
+ + + + + + + + +
diff --git a/ruoyi-admin/src/main/resources/templates/operation/store/store.html b/ruoyi-admin/src/main/resources/templates/operation/store/store.html index 04ed891..d275502 100644 --- a/ruoyi-admin/src/main/resources/templates/operation/store/store.html +++ b/ruoyi-admin/src/main/resources/templates/operation/store/store.html @@ -142,15 +142,24 @@ }, { field: 'zucheRatio', - title: '租车订单分成比例' + title: '租车分成比例', + formatter: function(value, row, index) { + return value +"%"; + } }, { field: 'zudianRatio', - title: '租电订单分成比例' + title: '租电分成比例', + formatter: function(value, row, index) { + return value +"%"; + } }, { field: 'daishouRatio', - title: '以租代售分成比例' + title: '以租代售分成比例', + formatter: function(value, row, index) { + return value +"%"; + } }, { field: 'label', @@ -183,7 +192,7 @@ formatter: function(value, row, index) { var actions = []; actions.push('门店用户 '); - actions.push('编辑 '); + actions.push('修改 '); actions.push('删除'); if (row.status == 1) { actions.push('启用 '); diff --git a/ruoyi-admin/src/main/resources/templates/orders/order/edit.html b/ruoyi-admin/src/main/resources/templates/orders/order/edit.html index 7d0de82..5a52159 100644 --- a/ruoyi-admin/src/main/resources/templates/orders/order/edit.html +++ b/ruoyi-admin/src/main/resources/templates/orders/order/edit.html @@ -10,130 +10,105 @@

租车订单信息

- -
- + +
+
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- + +
+
- -
- + +
+
+
+ +
+
-
- -
- +
+ +
+
+
+ +
+
-
- -
- +
+ +
+
+
+ +
+
-
- -
- +
+ +
+
+
+ +
+
-
- -
- +
+ +
+
+
+ +
+
-
- -
- +
+ +
+
+
+ +
+
-
- -
- +
+ +
+
+
+ +
+
-
- -
- +
+ +
+
+
+ +
+
-
- -
- -
-
-
- -
-
- - -
-
-
-
- -
-
- - -
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- +
+ +
+
+
+ +

租车子订单信息

@@ -182,9 +157,7 @@ showToggle: false, showColumns: false, sidePagination: "client", - columns: [{ - checkbox: true - }, + columns: [ { field: 'index', align: 'center', diff --git a/ruoyi-admin/src/main/resources/templates/orders/order/order.html b/ruoyi-admin/src/main/resources/templates/orders/order/order.html index c0dad3b..67780ea 100644 --- a/ruoyi-admin/src/main/resources/templates/orders/order/order.html +++ b/ruoyi-admin/src/main/resources/templates/orders/order/order.html @@ -19,11 +19,11 @@
  • - +
  • - +
  • @@ -106,7 +106,12 @@ }, { field: 'orderNo', - title: '订单编号' + title: '订单编号', + formatter: function(value, row, index) { + var actions = []; + actions.push('' + value + ' '); + return actions.join(''); + } }, { field: 'orderStatus', @@ -133,7 +138,7 @@ }, { field: 'customerPhone', - title: '客户联系电话' + title: '联系电话' }, { field: 'rentalType', @@ -182,7 +187,7 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('查看 '); + actions.push('查看 '); //actions.push('删除'); return actions.join(''); }