租车套餐
This commit is contained in:
@ -46,7 +46,7 @@ public class CompanyStoreController extends BaseController
|
||||
@GetMapping()
|
||||
public String store(ModelMap mmap)
|
||||
{
|
||||
List<Company> companyList = getCompanyList(new Company()); // 获取运营商列表
|
||||
List<Company> companyList = companyService.getCompanyList(new Company(),getSysUser()); // 获取运营商列表
|
||||
mmap.put("companyList", companyList); // 将运营商列表传递到前端
|
||||
return prefix + "/store";
|
||||
}
|
||||
@ -88,7 +88,7 @@ public class CompanyStoreController extends BaseController
|
||||
@GetMapping("/add")
|
||||
public String add(ModelMap mmap)
|
||||
{
|
||||
List<Company> companyList = getCompanyList(new Company()); // 获取运营商列表
|
||||
List<Company> companyList = companyService.getCompanyList(new Company(),getSysUser()); // 获取运营商列表
|
||||
mmap.put("companyList", companyList); // 将运营商列表传递到前端
|
||||
return prefix + "/add";
|
||||
}
|
||||
@ -113,7 +113,7 @@ public class CompanyStoreController extends BaseController
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
List<Company> companyList = getCompanyList(new Company()); // 获取运营商列表
|
||||
List<Company> companyList = companyService.getCompanyList(new Company(),getSysUser()); // 获取运营商列表
|
||||
mmap.put("companyList", companyList); // 将运营商列表传递到前端
|
||||
|
||||
CompanyStore companyStore = companyStoreService.selectCompanyStoreById(id);
|
||||
@ -157,12 +157,4 @@ public class CompanyStoreController extends BaseController
|
||||
return toAjax(companyStoreService.changeStatus(companyStore));
|
||||
}
|
||||
|
||||
private List<Company> getCompanyList(Company company) {
|
||||
company.setStatus(CompanyConstants.company_status_0);
|
||||
// 运营者账号,只能查询所属商户数据
|
||||
if(UserConstants.USER_TYPE_02 .equals(getSysUser().getUserType())){
|
||||
company.setId(getSysUser().getGroupId());
|
||||
}
|
||||
return companyService.selectCompanyList(company);
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,127 @@
|
||||
package com.ruoyi.operation.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.operation.domain.ZcRentBatteyRule;
|
||||
import com.ruoyi.operation.service.IZcRentBatteyRuleService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 租电套餐Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/operation/rentBatteyRule")
|
||||
public class ZcRentBatteyRuleController extends BaseController
|
||||
{
|
||||
private String prefix = "operation/rentBatteyRule";
|
||||
|
||||
@Autowired
|
||||
private IZcRentBatteyRuleService zcRentBatteyRuleService;
|
||||
|
||||
@RequiresPermissions("operation:rentBatteyRule:view")
|
||||
@GetMapping()
|
||||
public String rentBatteyRule()
|
||||
{
|
||||
return prefix + "/rentBatteyRule";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询租电套餐列表
|
||||
*/
|
||||
@RequiresPermissions("operation:rentBatteyRule:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(ZcRentBatteyRule zcRentBatteyRule)
|
||||
{
|
||||
startPage();
|
||||
List<ZcRentBatteyRule> list = zcRentBatteyRuleService.selectZcRentBatteyRuleList(zcRentBatteyRule);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出租电套餐列表
|
||||
*/
|
||||
@RequiresPermissions("operation:rentBatteyRule:export")
|
||||
@Log(title = "租电套餐", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(ZcRentBatteyRule zcRentBatteyRule)
|
||||
{
|
||||
List<ZcRentBatteyRule> list = zcRentBatteyRuleService.selectZcRentBatteyRuleList(zcRentBatteyRule);
|
||||
ExcelUtil<ZcRentBatteyRule> util = new ExcelUtil<ZcRentBatteyRule>(ZcRentBatteyRule.class);
|
||||
return util.exportExcel(list, "租电套餐数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增租电套餐
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存租电套餐
|
||||
*/
|
||||
@RequiresPermissions("operation:rentBatteyRule:add")
|
||||
@Log(title = "租电套餐", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(ZcRentBatteyRule zcRentBatteyRule)
|
||||
{
|
||||
return toAjax(zcRentBatteyRuleService.insertZcRentBatteyRule(zcRentBatteyRule));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改租电套餐
|
||||
*/
|
||||
@RequiresPermissions("operation:rentBatteyRule:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
ZcRentBatteyRule zcRentBatteyRule = zcRentBatteyRuleService.selectZcRentBatteyRuleById(id);
|
||||
mmap.put("zcRentBatteyRule", zcRentBatteyRule);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存租电套餐
|
||||
*/
|
||||
@RequiresPermissions("operation:rentBatteyRule:edit")
|
||||
@Log(title = "租电套餐", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(ZcRentBatteyRule zcRentBatteyRule)
|
||||
{
|
||||
return toAjax(zcRentBatteyRuleService.updateZcRentBatteyRule(zcRentBatteyRule));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除租电套餐
|
||||
*/
|
||||
@RequiresPermissions("operation:rentBatteyRule:remove")
|
||||
@Log(title = "租电套餐", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(zcRentBatteyRuleService.deleteZcRentBatteyRuleByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,127 @@
|
||||
package com.ruoyi.operation.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.operation.domain.ZcRentCarRuleBattery;
|
||||
import com.ruoyi.operation.service.IZcRentCarRuleBatteryService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 租车规则租电规则关联Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/operation/rentCarBattey")
|
||||
public class ZcRentCarRuleBatteryController extends BaseController
|
||||
{
|
||||
private String prefix = "operation/rentCarBattey";
|
||||
|
||||
@Autowired
|
||||
private IZcRentCarRuleBatteryService zcRentCarRuleBatteryService;
|
||||
|
||||
@RequiresPermissions("operation:rentCarBattey:view")
|
||||
@GetMapping()
|
||||
public String rentCarBattey()
|
||||
{
|
||||
return prefix + "/rentCarBattey";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询租车规则租电规则关联列表
|
||||
*/
|
||||
@RequiresPermissions("operation:rentCarBattey:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(ZcRentCarRuleBattery zcRentCarRuleBattery)
|
||||
{
|
||||
startPage();
|
||||
List<ZcRentCarRuleBattery> list = zcRentCarRuleBatteryService.selectZcRentCarRuleBatteryList(zcRentCarRuleBattery);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出租车规则租电规则关联列表
|
||||
*/
|
||||
@RequiresPermissions("operation:rentCarBattey:export")
|
||||
@Log(title = "租车规则租电规则关联", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(ZcRentCarRuleBattery zcRentCarRuleBattery)
|
||||
{
|
||||
List<ZcRentCarRuleBattery> list = zcRentCarRuleBatteryService.selectZcRentCarRuleBatteryList(zcRentCarRuleBattery);
|
||||
ExcelUtil<ZcRentCarRuleBattery> util = new ExcelUtil<ZcRentCarRuleBattery>(ZcRentCarRuleBattery.class);
|
||||
return util.exportExcel(list, "租车规则租电规则关联数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增租车规则租电规则关联
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存租车规则租电规则关联
|
||||
*/
|
||||
@RequiresPermissions("operation:rentCarBattey:add")
|
||||
@Log(title = "租车规则租电规则关联", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(ZcRentCarRuleBattery zcRentCarRuleBattery)
|
||||
{
|
||||
return toAjax(zcRentCarRuleBatteryService.insertZcRentCarRuleBattery(zcRentCarRuleBattery));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改租车规则租电规则关联
|
||||
*/
|
||||
@RequiresPermissions("operation:rentCarBattey:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
ZcRentCarRuleBattery zcRentCarRuleBattery = zcRentCarRuleBatteryService.selectZcRentCarRuleBatteryById(id);
|
||||
mmap.put("zcRentCarRuleBattery", zcRentCarRuleBattery);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存租车规则租电规则关联
|
||||
*/
|
||||
@RequiresPermissions("operation:rentCarBattey:edit")
|
||||
@Log(title = "租车规则租电规则关联", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(ZcRentCarRuleBattery zcRentCarRuleBattery)
|
||||
{
|
||||
return toAjax(zcRentCarRuleBatteryService.updateZcRentCarRuleBattery(zcRentCarRuleBattery));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除租车规则租电规则关联
|
||||
*/
|
||||
@RequiresPermissions("operation:rentCarBattey:remove")
|
||||
@Log(title = "租车规则租电规则关联", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(zcRentCarRuleBatteryService.deleteZcRentCarRuleBatteryByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,163 @@
|
||||
package com.ruoyi.operation.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import com.ruoyi.common.constant.UserConstants;
|
||||
import com.ruoyi.operation.domain.Company;
|
||||
import com.ruoyi.operation.service.ICompanyService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.operation.domain.ZcRentCarRule;
|
||||
import com.ruoyi.operation.service.IZcRentCarRuleService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 租车计费规则Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/operation/rentCarRule")
|
||||
public class ZcRentCarRuleController extends BaseController
|
||||
{
|
||||
private String prefix = "operation/rentCarRule";
|
||||
|
||||
@Autowired
|
||||
private IZcRentCarRuleService zcRentCarRuleService;
|
||||
@Autowired
|
||||
private ICompanyService companyService;
|
||||
|
||||
@RequiresPermissions("operation:rentCarRule:view")
|
||||
@GetMapping()
|
||||
public String rentCarRule(ModelMap mmap)
|
||||
{
|
||||
List<Company> companyList = companyService.getCompanyList(new Company(),getSysUser()); // 获取运营商列表
|
||||
mmap.put("companyList", companyList); // 将运营商列表传递到前端
|
||||
|
||||
return prefix + "/rentCarRule";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询租车计费规则列表
|
||||
*/
|
||||
@RequiresPermissions("operation:rentCarRule:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(ZcRentCarRule zcRentCarRule)
|
||||
{
|
||||
startPage();
|
||||
// 运营者账号,只能查询所属商户数据
|
||||
if(UserConstants.USER_TYPE_02 .equals(getSysUser().getUserType())){
|
||||
zcRentCarRule.setOperatingCompanyId(getSysUser().getGroupId());
|
||||
}
|
||||
List<ZcRentCarRule> list = zcRentCarRuleService.selectZcRentCarRuleList(zcRentCarRule);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出租车计费规则列表
|
||||
*/
|
||||
@RequiresPermissions("operation:rentCarRule:export")
|
||||
@Log(title = "租车计费规则", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(ZcRentCarRule zcRentCarRule)
|
||||
{
|
||||
List<ZcRentCarRule> list = zcRentCarRuleService.selectZcRentCarRuleList(zcRentCarRule);
|
||||
ExcelUtil<ZcRentCarRule> util = new ExcelUtil<ZcRentCarRule>(ZcRentCarRule.class);
|
||||
return util.exportExcel(list, "租车计费规则数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增租车计费规则
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add(ModelMap mmap)
|
||||
{
|
||||
List<Company> companyList = companyService.getCompanyList(new Company(),getSysUser()); // 获取运营商列表
|
||||
mmap.put("companyList", companyList); // 将运营商列表传递到前端
|
||||
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存租车计费规则
|
||||
*/
|
||||
@RequiresPermissions("operation:rentCarRule:add")
|
||||
@Log(title = "租车计费规则", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(ZcRentCarRule zcRentCarRule)
|
||||
{
|
||||
zcRentCarRule.setRuleCode(generateTimestampBasedCode());
|
||||
zcRentCarRule.setCreateBy(getLoginName());
|
||||
return toAjax(zcRentCarRuleService.insertZcRentCarRule(zcRentCarRule));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改租车计费规则
|
||||
*/
|
||||
@RequiresPermissions("operation:rentCarRule:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
List<Company> companyList = companyService.getCompanyList(new Company(),getSysUser()); // 获取运营商列表
|
||||
mmap.put("companyList", companyList); // 将运营商列表传递到前端
|
||||
|
||||
ZcRentCarRule zcRentCarRule = zcRentCarRuleService.selectZcRentCarRuleById(id);
|
||||
mmap.put("zcRentCarRule", zcRentCarRule);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存租车计费规则
|
||||
*/
|
||||
@RequiresPermissions("operation:rentCarRule:edit")
|
||||
@Log(title = "租车计费规则", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(ZcRentCarRule zcRentCarRule)
|
||||
{
|
||||
zcRentCarRule.setUpdateBy(getLoginName());
|
||||
return toAjax(zcRentCarRuleService.updateZcRentCarRule(zcRentCarRule));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除租车计费规则
|
||||
*/
|
||||
@RequiresPermissions("operation:rentCarRule:remove")
|
||||
@Log(title = "租车计费规则", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(zcRentCarRuleService.deleteZcRentCarRuleByIds(ids));
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static String generateTimestampBasedCode() {
|
||||
Random random = new Random();
|
||||
// 获取当前时间戳的后6位
|
||||
long timestampPart = System.currentTimeMillis() % 1000000;
|
||||
// 生成3位随机数
|
||||
int randomPart = 100 + random.nextInt(900);
|
||||
// 组合成9位数
|
||||
long code = timestampPart * 1000 + randomPart;
|
||||
return String.format("%09d", code);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,402 @@
|
||||
package com.ruoyi.operation.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 租电套餐对象 zc_rent_battey_rule
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
public class ZcRentBatteyRule extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** */
|
||||
private Long id;
|
||||
|
||||
/** 商品标题 */
|
||||
@Excel(name = "商品标题")
|
||||
private String title;
|
||||
|
||||
/** 商品描述 */
|
||||
@Excel(name = "商品描述")
|
||||
private String detail;
|
||||
|
||||
/** 图标 */
|
||||
@Excel(name = "图标")
|
||||
private String icon;
|
||||
|
||||
/** 电压 */
|
||||
@Excel(name = "电压")
|
||||
private String voltage;
|
||||
|
||||
/** 电容 */
|
||||
@Excel(name = "电容")
|
||||
private String ah;
|
||||
|
||||
/** 最大里程 */
|
||||
@Excel(name = "最大里程")
|
||||
private Long maxMileage;
|
||||
|
||||
/** 最小里程 默认0 */
|
||||
@Excel(name = "最小里程 默认0")
|
||||
private Long minMileage;
|
||||
|
||||
/** 押金 */
|
||||
@Excel(name = "押金")
|
||||
private BigDecimal depositPrice;
|
||||
|
||||
/** 租金 */
|
||||
@Excel(name = "租金")
|
||||
private BigDecimal rentPrice;
|
||||
|
||||
/** 计时方式 */
|
||||
@Excel(name = "计时方式")
|
||||
private Long durationType;
|
||||
|
||||
/** 租赁时长 */
|
||||
@Excel(name = "租赁时长")
|
||||
private Long duration;
|
||||
|
||||
/** 盗抢险 */
|
||||
@Excel(name = "盗抢险")
|
||||
private BigDecimal insurancePrice;
|
||||
|
||||
/** 是否强制投保 默认0 false */
|
||||
@Excel(name = "是否强制投保 默认0 false")
|
||||
private Integer compulsoryInsurance;
|
||||
|
||||
/** 保险有效时长 默认12个月 */
|
||||
@Excel(name = "保险有效时长 默认12个月")
|
||||
private Long insuranceDuration;
|
||||
|
||||
/** 换电次数 */
|
||||
@Excel(name = "换电次数")
|
||||
private Long changeNum;
|
||||
|
||||
/** 1、有限次数 2无限次数 */
|
||||
@Excel(name = "1、有限次数 2无限次数")
|
||||
private Long changeType;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private Integer isDelete;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private Long cityId;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private Long operatorId;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private Long provinceId;
|
||||
|
||||
/** 电池类型 */
|
||||
@Excel(name = "电池类型")
|
||||
private Long categoryId;
|
||||
|
||||
/** 套餐类型 换电/租电 */
|
||||
@Excel(name = "套餐类型 换电/租电")
|
||||
private Long mealType;
|
||||
|
||||
/** 套餐排序规则 */
|
||||
@Excel(name = "套餐排序规则")
|
||||
private Long mealSort;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private Integer isJoinInvite;
|
||||
|
||||
/** 套餐渠道租车默认 id号待定 */
|
||||
@Excel(name = "套餐渠道租车默认 id号待定")
|
||||
private Long mealChannel;
|
||||
|
||||
/** 购买限制类型 */
|
||||
@Excel(name = "购买限制类型")
|
||||
private Long buyLimitType;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
public void setDetail(String detail)
|
||||
{
|
||||
this.detail = detail;
|
||||
}
|
||||
|
||||
public String getDetail()
|
||||
{
|
||||
return detail;
|
||||
}
|
||||
public void setIcon(String icon)
|
||||
{
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
public String getIcon()
|
||||
{
|
||||
return icon;
|
||||
}
|
||||
public void setVoltage(String voltage)
|
||||
{
|
||||
this.voltage = voltage;
|
||||
}
|
||||
|
||||
public String getVoltage()
|
||||
{
|
||||
return voltage;
|
||||
}
|
||||
public void setAh(String ah)
|
||||
{
|
||||
this.ah = ah;
|
||||
}
|
||||
|
||||
public String getAh()
|
||||
{
|
||||
return ah;
|
||||
}
|
||||
public void setMaxMileage(Long maxMileage)
|
||||
{
|
||||
this.maxMileage = maxMileage;
|
||||
}
|
||||
|
||||
public Long getMaxMileage()
|
||||
{
|
||||
return maxMileage;
|
||||
}
|
||||
public void setMinMileage(Long minMileage)
|
||||
{
|
||||
this.minMileage = minMileage;
|
||||
}
|
||||
|
||||
public Long getMinMileage()
|
||||
{
|
||||
return minMileage;
|
||||
}
|
||||
public void setDepositPrice(BigDecimal depositPrice)
|
||||
{
|
||||
this.depositPrice = depositPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getDepositPrice()
|
||||
{
|
||||
return depositPrice;
|
||||
}
|
||||
public void setRentPrice(BigDecimal rentPrice)
|
||||
{
|
||||
this.rentPrice = rentPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getRentPrice()
|
||||
{
|
||||
return rentPrice;
|
||||
}
|
||||
public void setDurationType(Long durationType)
|
||||
{
|
||||
this.durationType = durationType;
|
||||
}
|
||||
|
||||
public Long getDurationType()
|
||||
{
|
||||
return durationType;
|
||||
}
|
||||
public void setDuration(Long duration)
|
||||
{
|
||||
this.duration = duration;
|
||||
}
|
||||
|
||||
public Long getDuration()
|
||||
{
|
||||
return duration;
|
||||
}
|
||||
public void setInsurancePrice(BigDecimal insurancePrice)
|
||||
{
|
||||
this.insurancePrice = insurancePrice;
|
||||
}
|
||||
|
||||
public BigDecimal getInsurancePrice()
|
||||
{
|
||||
return insurancePrice;
|
||||
}
|
||||
public void setCompulsoryInsurance(Integer compulsoryInsurance)
|
||||
{
|
||||
this.compulsoryInsurance = compulsoryInsurance;
|
||||
}
|
||||
|
||||
public Integer getCompulsoryInsurance()
|
||||
{
|
||||
return compulsoryInsurance;
|
||||
}
|
||||
public void setInsuranceDuration(Long insuranceDuration)
|
||||
{
|
||||
this.insuranceDuration = insuranceDuration;
|
||||
}
|
||||
|
||||
public Long getInsuranceDuration()
|
||||
{
|
||||
return insuranceDuration;
|
||||
}
|
||||
public void setChangeNum(Long changeNum)
|
||||
{
|
||||
this.changeNum = changeNum;
|
||||
}
|
||||
|
||||
public Long getChangeNum()
|
||||
{
|
||||
return changeNum;
|
||||
}
|
||||
public void setChangeType(Long changeType)
|
||||
{
|
||||
this.changeType = changeType;
|
||||
}
|
||||
|
||||
public Long getChangeType()
|
||||
{
|
||||
return changeType;
|
||||
}
|
||||
public void setIsDelete(Integer isDelete)
|
||||
{
|
||||
this.isDelete = isDelete;
|
||||
}
|
||||
|
||||
public Integer getIsDelete()
|
||||
{
|
||||
return isDelete;
|
||||
}
|
||||
public void setCityId(Long cityId)
|
||||
{
|
||||
this.cityId = cityId;
|
||||
}
|
||||
|
||||
public Long getCityId()
|
||||
{
|
||||
return cityId;
|
||||
}
|
||||
public void setOperatorId(Long operatorId)
|
||||
{
|
||||
this.operatorId = operatorId;
|
||||
}
|
||||
|
||||
public Long getOperatorId()
|
||||
{
|
||||
return operatorId;
|
||||
}
|
||||
public void setProvinceId(Long provinceId)
|
||||
{
|
||||
this.provinceId = provinceId;
|
||||
}
|
||||
|
||||
public Long getProvinceId()
|
||||
{
|
||||
return provinceId;
|
||||
}
|
||||
public void setCategoryId(Long categoryId)
|
||||
{
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public Long getCategoryId()
|
||||
{
|
||||
return categoryId;
|
||||
}
|
||||
public void setMealType(Long mealType)
|
||||
{
|
||||
this.mealType = mealType;
|
||||
}
|
||||
|
||||
public Long getMealType()
|
||||
{
|
||||
return mealType;
|
||||
}
|
||||
public void setMealSort(Long mealSort)
|
||||
{
|
||||
this.mealSort = mealSort;
|
||||
}
|
||||
|
||||
public Long getMealSort()
|
||||
{
|
||||
return mealSort;
|
||||
}
|
||||
public void setIsJoinInvite(Integer isJoinInvite)
|
||||
{
|
||||
this.isJoinInvite = isJoinInvite;
|
||||
}
|
||||
|
||||
public Integer getIsJoinInvite()
|
||||
{
|
||||
return isJoinInvite;
|
||||
}
|
||||
public void setMealChannel(Long mealChannel)
|
||||
{
|
||||
this.mealChannel = mealChannel;
|
||||
}
|
||||
|
||||
public Long getMealChannel()
|
||||
{
|
||||
return mealChannel;
|
||||
}
|
||||
public void setBuyLimitType(Long buyLimitType)
|
||||
{
|
||||
this.buyLimitType = buyLimitType;
|
||||
}
|
||||
|
||||
public Long getBuyLimitType()
|
||||
{
|
||||
return buyLimitType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("title", getTitle())
|
||||
.append("detail", getDetail())
|
||||
.append("icon", getIcon())
|
||||
.append("voltage", getVoltage())
|
||||
.append("ah", getAh())
|
||||
.append("maxMileage", getMaxMileage())
|
||||
.append("minMileage", getMinMileage())
|
||||
.append("depositPrice", getDepositPrice())
|
||||
.append("rentPrice", getRentPrice())
|
||||
.append("durationType", getDurationType())
|
||||
.append("duration", getDuration())
|
||||
.append("insurancePrice", getInsurancePrice())
|
||||
.append("compulsoryInsurance", getCompulsoryInsurance())
|
||||
.append("insuranceDuration", getInsuranceDuration())
|
||||
.append("changeNum", getChangeNum())
|
||||
.append("changeType", getChangeType())
|
||||
.append("isDelete", getIsDelete())
|
||||
.append("cityId", getCityId())
|
||||
.append("operatorId", getOperatorId())
|
||||
.append("provinceId", getProvinceId())
|
||||
.append("categoryId", getCategoryId())
|
||||
.append("mealType", getMealType())
|
||||
.append("mealSort", getMealSort())
|
||||
.append("isJoinInvite", getIsJoinInvite())
|
||||
.append("mealChannel", getMealChannel())
|
||||
.append("buyLimitType", getBuyLimitType())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,314 @@
|
||||
package com.ruoyi.operation.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
import org.springframework.data.annotation.Transient;
|
||||
|
||||
/**
|
||||
* 租车计费规则对象 zc_rent_car_rule
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
public class ZcRentCarRule extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 规则ID */
|
||||
private Long id;
|
||||
|
||||
/** 套餐名称 */
|
||||
@Excel(name = "套餐名称")
|
||||
private String ruleName;
|
||||
|
||||
/** 套餐编码 */
|
||||
@Excel(name = "套餐编码")
|
||||
private String ruleCode;
|
||||
|
||||
/** 租赁类型 */
|
||||
@Excel(name = "租赁类型")
|
||||
private String rentalType;
|
||||
|
||||
/** 租赁天数 */
|
||||
@Excel(name = "租赁天数当")
|
||||
private Long rentalDays;
|
||||
|
||||
/** 租车价格(元) */
|
||||
@Excel(name = "租车价格(元)")
|
||||
private BigDecimal rentalPrice;
|
||||
|
||||
/** 押金价格(元) */
|
||||
@Excel(name = "押金价格(元)")
|
||||
private BigDecimal depositPrice;
|
||||
|
||||
/** 逾期金额(元) */
|
||||
@Excel(name = "逾期金额(元)")
|
||||
private BigDecimal overdueFee;
|
||||
|
||||
/** 逾期计费类型 */
|
||||
@Excel(name = "逾期计费类型")
|
||||
private String overdueType;
|
||||
|
||||
/** 是否支持免押 */
|
||||
@Excel(name = "是否支持免押")
|
||||
private String depositFree;
|
||||
|
||||
/** 是否支持代扣 */
|
||||
@Excel(name = "是否支持代扣")
|
||||
private String autoDeduct;
|
||||
|
||||
/** 运营商 */
|
||||
private Long operatingCompanyId;
|
||||
|
||||
/** 状态(0正常 1停用) */
|
||||
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
||||
private String status;
|
||||
|
||||
/** 是否默认套餐(0否 1是) */
|
||||
@Excel(name = "是否默认套餐", readConverterExp = "0=否,1=是")
|
||||
private String isDefault;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
private String delFlag;
|
||||
|
||||
/** 扩展字段1 */
|
||||
private String extend1;
|
||||
|
||||
/** 扩展字段2 */
|
||||
private String extend2;
|
||||
|
||||
/** 扩展字段3 */
|
||||
private String extend3;
|
||||
|
||||
/** 扩展字段4 */
|
||||
private String extend4;
|
||||
|
||||
/** 扩展字段5 */
|
||||
private String extend5;
|
||||
|
||||
@Transient
|
||||
private String operatingCompanyName;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setRuleName(String ruleName)
|
||||
{
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
public String getRuleName()
|
||||
{
|
||||
return ruleName;
|
||||
}
|
||||
public void setRuleCode(String ruleCode)
|
||||
{
|
||||
this.ruleCode = ruleCode;
|
||||
}
|
||||
|
||||
public String getRuleCode()
|
||||
{
|
||||
return ruleCode;
|
||||
}
|
||||
public void setRentalType(String rentalType)
|
||||
{
|
||||
this.rentalType = rentalType;
|
||||
}
|
||||
|
||||
public String getRentalType()
|
||||
{
|
||||
return rentalType;
|
||||
}
|
||||
public void setRentalDays(Long rentalDays)
|
||||
{
|
||||
this.rentalDays = rentalDays;
|
||||
}
|
||||
|
||||
public Long getRentalDays()
|
||||
{
|
||||
return rentalDays;
|
||||
}
|
||||
public void setRentalPrice(BigDecimal rentalPrice)
|
||||
{
|
||||
this.rentalPrice = rentalPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getRentalPrice()
|
||||
{
|
||||
return rentalPrice;
|
||||
}
|
||||
public void setDepositPrice(BigDecimal depositPrice)
|
||||
{
|
||||
this.depositPrice = depositPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getDepositPrice()
|
||||
{
|
||||
return depositPrice;
|
||||
}
|
||||
public void setOverdueFee(BigDecimal overdueFee)
|
||||
{
|
||||
this.overdueFee = overdueFee;
|
||||
}
|
||||
|
||||
public BigDecimal getOverdueFee()
|
||||
{
|
||||
return overdueFee;
|
||||
}
|
||||
public void setOverdueType(String overdueType)
|
||||
{
|
||||
this.overdueType = overdueType;
|
||||
}
|
||||
|
||||
public String getOverdueType()
|
||||
{
|
||||
return overdueType;
|
||||
}
|
||||
public void setDepositFree(String depositFree)
|
||||
{
|
||||
this.depositFree = depositFree;
|
||||
}
|
||||
|
||||
public String getDepositFree()
|
||||
{
|
||||
return depositFree;
|
||||
}
|
||||
public void setAutoDeduct(String autoDeduct)
|
||||
{
|
||||
this.autoDeduct = autoDeduct;
|
||||
}
|
||||
|
||||
public String getAutoDeduct()
|
||||
{
|
||||
return autoDeduct;
|
||||
}
|
||||
|
||||
public Long getOperatingCompanyId() {
|
||||
return operatingCompanyId;
|
||||
}
|
||||
|
||||
public void setOperatingCompanyId(Long operatingCompanyId) {
|
||||
this.operatingCompanyId = operatingCompanyId;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setIsDefault(String isDefault)
|
||||
{
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
|
||||
public String getIsDefault()
|
||||
{
|
||||
return isDefault;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
public void setExtend1(String extend1)
|
||||
{
|
||||
this.extend1 = extend1;
|
||||
}
|
||||
|
||||
public String getExtend1()
|
||||
{
|
||||
return extend1;
|
||||
}
|
||||
public void setExtend2(String extend2)
|
||||
{
|
||||
this.extend2 = extend2;
|
||||
}
|
||||
|
||||
public String getExtend2()
|
||||
{
|
||||
return extend2;
|
||||
}
|
||||
public void setExtend3(String extend3)
|
||||
{
|
||||
this.extend3 = extend3;
|
||||
}
|
||||
|
||||
public String getExtend3()
|
||||
{
|
||||
return extend3;
|
||||
}
|
||||
public void setExtend4(String extend4)
|
||||
{
|
||||
this.extend4 = extend4;
|
||||
}
|
||||
|
||||
public String getExtend4()
|
||||
{
|
||||
return extend4;
|
||||
}
|
||||
public void setExtend5(String extend5)
|
||||
{
|
||||
this.extend5 = extend5;
|
||||
}
|
||||
|
||||
public String getExtend5()
|
||||
{
|
||||
return extend5;
|
||||
}
|
||||
|
||||
public String getOperatingCompanyName() {
|
||||
return operatingCompanyName;
|
||||
}
|
||||
|
||||
public void setOperatingCompanyName(String operatingCompanyName) {
|
||||
this.operatingCompanyName = operatingCompanyName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("ruleName", getRuleName())
|
||||
.append("ruleCode", getRuleCode())
|
||||
.append("rentalType", getRentalType())
|
||||
.append("rentalDays", getRentalDays())
|
||||
.append("rentalPrice", getRentalPrice())
|
||||
.append("depositPrice", getDepositPrice())
|
||||
.append("overdueFee", getOverdueFee())
|
||||
.append("overdueType", getOverdueType())
|
||||
.append("depositFree", getDepositFree())
|
||||
.append("autoDeduct", getAutoDeduct())
|
||||
.append("operatingCompanyId", getOperatingCompanyId())
|
||||
.append("status", getStatus())
|
||||
.append("isDefault", getIsDefault())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.append("extend1", getExtend1())
|
||||
.append("extend2", getExtend2())
|
||||
.append("extend3", getExtend3())
|
||||
.append("extend4", getExtend4())
|
||||
.append("extend5", getExtend5())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,97 @@
|
||||
package com.ruoyi.operation.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 租车规则租电规则关联对象 zc_rent_car_rule_battery
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
public class ZcRentCarRuleBattery extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 规则ID */
|
||||
private Long id;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private Long carRuleId;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private Long batteryRuleId;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private Long sortOrder;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCarRuleId(Long carRuleId)
|
||||
{
|
||||
this.carRuleId = carRuleId;
|
||||
}
|
||||
|
||||
public Long getCarRuleId()
|
||||
{
|
||||
return carRuleId;
|
||||
}
|
||||
public void setBatteryRuleId(Long batteryRuleId)
|
||||
{
|
||||
this.batteryRuleId = batteryRuleId;
|
||||
}
|
||||
|
||||
public Long getBatteryRuleId()
|
||||
{
|
||||
return batteryRuleId;
|
||||
}
|
||||
public void setSortOrder(Long sortOrder)
|
||||
{
|
||||
this.sortOrder = sortOrder;
|
||||
}
|
||||
|
||||
public Long getSortOrder()
|
||||
{
|
||||
return sortOrder;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("carRuleId", getCarRuleId())
|
||||
.append("batteryRuleId", getBatteryRuleId())
|
||||
.append("sortOrder", getSortOrder())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.operation.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.operation.domain.ZcRentBatteyRule;
|
||||
|
||||
/**
|
||||
* 租电套餐Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
public interface ZcRentBatteyRuleMapper
|
||||
{
|
||||
/**
|
||||
* 查询租电套餐
|
||||
*
|
||||
* @param id 租电套餐主键
|
||||
* @return 租电套餐
|
||||
*/
|
||||
public ZcRentBatteyRule selectZcRentBatteyRuleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询租电套餐列表
|
||||
*
|
||||
* @param zcRentBatteyRule 租电套餐
|
||||
* @return 租电套餐集合
|
||||
*/
|
||||
public List<ZcRentBatteyRule> selectZcRentBatteyRuleList(ZcRentBatteyRule zcRentBatteyRule);
|
||||
|
||||
/**
|
||||
* 新增租电套餐
|
||||
*
|
||||
* @param zcRentBatteyRule 租电套餐
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertZcRentBatteyRule(ZcRentBatteyRule zcRentBatteyRule);
|
||||
|
||||
/**
|
||||
* 修改租电套餐
|
||||
*
|
||||
* @param zcRentBatteyRule 租电套餐
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateZcRentBatteyRule(ZcRentBatteyRule zcRentBatteyRule);
|
||||
|
||||
/**
|
||||
* 删除租电套餐
|
||||
*
|
||||
* @param id 租电套餐主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcRentBatteyRuleById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除租电套餐
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcRentBatteyRuleByIds(String[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.operation.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.operation.domain.ZcRentCarRuleBattery;
|
||||
|
||||
/**
|
||||
* 租车规则租电规则关联Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
public interface ZcRentCarRuleBatteryMapper
|
||||
{
|
||||
/**
|
||||
* 查询租车规则租电规则关联
|
||||
*
|
||||
* @param id 租车规则租电规则关联主键
|
||||
* @return 租车规则租电规则关联
|
||||
*/
|
||||
public ZcRentCarRuleBattery selectZcRentCarRuleBatteryById(Long id);
|
||||
|
||||
/**
|
||||
* 查询租车规则租电规则关联列表
|
||||
*
|
||||
* @param zcRentCarRuleBattery 租车规则租电规则关联
|
||||
* @return 租车规则租电规则关联集合
|
||||
*/
|
||||
public List<ZcRentCarRuleBattery> selectZcRentCarRuleBatteryList(ZcRentCarRuleBattery zcRentCarRuleBattery);
|
||||
|
||||
/**
|
||||
* 新增租车规则租电规则关联
|
||||
*
|
||||
* @param zcRentCarRuleBattery 租车规则租电规则关联
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertZcRentCarRuleBattery(ZcRentCarRuleBattery zcRentCarRuleBattery);
|
||||
|
||||
/**
|
||||
* 修改租车规则租电规则关联
|
||||
*
|
||||
* @param zcRentCarRuleBattery 租车规则租电规则关联
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateZcRentCarRuleBattery(ZcRentCarRuleBattery zcRentCarRuleBattery);
|
||||
|
||||
/**
|
||||
* 删除租车规则租电规则关联
|
||||
*
|
||||
* @param id 租车规则租电规则关联主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcRentCarRuleBatteryById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除租车规则租电规则关联
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcRentCarRuleBatteryByIds(String[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.operation.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.operation.domain.ZcRentCarRule;
|
||||
|
||||
/**
|
||||
* 租车计费规则Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
public interface ZcRentCarRuleMapper
|
||||
{
|
||||
/**
|
||||
* 查询租车计费规则
|
||||
*
|
||||
* @param id 租车计费规则主键
|
||||
* @return 租车计费规则
|
||||
*/
|
||||
public ZcRentCarRule selectZcRentCarRuleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询租车计费规则列表
|
||||
*
|
||||
* @param zcRentCarRule 租车计费规则
|
||||
* @return 租车计费规则集合
|
||||
*/
|
||||
public List<ZcRentCarRule> selectZcRentCarRuleList(ZcRentCarRule zcRentCarRule);
|
||||
|
||||
/**
|
||||
* 新增租车计费规则
|
||||
*
|
||||
* @param zcRentCarRule 租车计费规则
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertZcRentCarRule(ZcRentCarRule zcRentCarRule);
|
||||
|
||||
/**
|
||||
* 修改租车计费规则
|
||||
*
|
||||
* @param zcRentCarRule 租车计费规则
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateZcRentCarRule(ZcRentCarRule zcRentCarRule);
|
||||
|
||||
/**
|
||||
* 删除租车计费规则
|
||||
*
|
||||
* @param id 租车计费规则主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcRentCarRuleById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除租车计费规则
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcRentCarRuleByIds(String[] ids);
|
||||
}
|
||||
@ -1,6 +1,8 @@
|
||||
package com.ruoyi.operation.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.operation.domain.Company;
|
||||
|
||||
/**
|
||||
@ -27,7 +29,7 @@ public interface ICompanyService
|
||||
*/
|
||||
public List<Company> selectCompanyList(Company company);
|
||||
|
||||
|
||||
public List<Company> getCompanyList(Company company, SysUser user);
|
||||
|
||||
/**
|
||||
* 校验手机号是否唯一
|
||||
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.operation.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.operation.domain.ZcRentBatteyRule;
|
||||
|
||||
/**
|
||||
* 租电套餐Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
public interface IZcRentBatteyRuleService
|
||||
{
|
||||
/**
|
||||
* 查询租电套餐
|
||||
*
|
||||
* @param id 租电套餐主键
|
||||
* @return 租电套餐
|
||||
*/
|
||||
public ZcRentBatteyRule selectZcRentBatteyRuleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询租电套餐列表
|
||||
*
|
||||
* @param zcRentBatteyRule 租电套餐
|
||||
* @return 租电套餐集合
|
||||
*/
|
||||
public List<ZcRentBatteyRule> selectZcRentBatteyRuleList(ZcRentBatteyRule zcRentBatteyRule);
|
||||
|
||||
/**
|
||||
* 新增租电套餐
|
||||
*
|
||||
* @param zcRentBatteyRule 租电套餐
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertZcRentBatteyRule(ZcRentBatteyRule zcRentBatteyRule);
|
||||
|
||||
/**
|
||||
* 修改租电套餐
|
||||
*
|
||||
* @param zcRentBatteyRule 租电套餐
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateZcRentBatteyRule(ZcRentBatteyRule zcRentBatteyRule);
|
||||
|
||||
/**
|
||||
* 批量删除租电套餐
|
||||
*
|
||||
* @param ids 需要删除的租电套餐主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcRentBatteyRuleByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除租电套餐信息
|
||||
*
|
||||
* @param id 租电套餐主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcRentBatteyRuleById(Long id);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.operation.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.operation.domain.ZcRentCarRuleBattery;
|
||||
|
||||
/**
|
||||
* 租车规则租电规则关联Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
public interface IZcRentCarRuleBatteryService
|
||||
{
|
||||
/**
|
||||
* 查询租车规则租电规则关联
|
||||
*
|
||||
* @param id 租车规则租电规则关联主键
|
||||
* @return 租车规则租电规则关联
|
||||
*/
|
||||
public ZcRentCarRuleBattery selectZcRentCarRuleBatteryById(Long id);
|
||||
|
||||
/**
|
||||
* 查询租车规则租电规则关联列表
|
||||
*
|
||||
* @param zcRentCarRuleBattery 租车规则租电规则关联
|
||||
* @return 租车规则租电规则关联集合
|
||||
*/
|
||||
public List<ZcRentCarRuleBattery> selectZcRentCarRuleBatteryList(ZcRentCarRuleBattery zcRentCarRuleBattery);
|
||||
|
||||
/**
|
||||
* 新增租车规则租电规则关联
|
||||
*
|
||||
* @param zcRentCarRuleBattery 租车规则租电规则关联
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertZcRentCarRuleBattery(ZcRentCarRuleBattery zcRentCarRuleBattery);
|
||||
|
||||
/**
|
||||
* 修改租车规则租电规则关联
|
||||
*
|
||||
* @param zcRentCarRuleBattery 租车规则租电规则关联
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateZcRentCarRuleBattery(ZcRentCarRuleBattery zcRentCarRuleBattery);
|
||||
|
||||
/**
|
||||
* 批量删除租车规则租电规则关联
|
||||
*
|
||||
* @param ids 需要删除的租车规则租电规则关联主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcRentCarRuleBatteryByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除租车规则租电规则关联信息
|
||||
*
|
||||
* @param id 租车规则租电规则关联主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcRentCarRuleBatteryById(Long id);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.operation.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.operation.domain.ZcRentCarRule;
|
||||
|
||||
/**
|
||||
* 租车计费规则Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
public interface IZcRentCarRuleService
|
||||
{
|
||||
/**
|
||||
* 查询租车计费规则
|
||||
*
|
||||
* @param id 租车计费规则主键
|
||||
* @return 租车计费规则
|
||||
*/
|
||||
public ZcRentCarRule selectZcRentCarRuleById(Long id);
|
||||
|
||||
/**
|
||||
* 查询租车计费规则列表
|
||||
*
|
||||
* @param zcRentCarRule 租车计费规则
|
||||
* @return 租车计费规则集合
|
||||
*/
|
||||
public List<ZcRentCarRule> selectZcRentCarRuleList(ZcRentCarRule zcRentCarRule);
|
||||
|
||||
/**
|
||||
* 新增租车计费规则
|
||||
*
|
||||
* @param zcRentCarRule 租车计费规则
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertZcRentCarRule(ZcRentCarRule zcRentCarRule);
|
||||
|
||||
/**
|
||||
* 修改租车计费规则
|
||||
*
|
||||
* @param zcRentCarRule 租车计费规则
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateZcRentCarRule(ZcRentCarRule zcRentCarRule);
|
||||
|
||||
/**
|
||||
* 批量删除租车计费规则
|
||||
*
|
||||
* @param ids 需要删除的租车计费规则主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcRentCarRuleByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除租车计费规则信息
|
||||
*
|
||||
* @param id 租车计费规则主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteZcRentCarRuleById(Long id);
|
||||
}
|
||||
@ -2,6 +2,7 @@ package com.ruoyi.operation.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.constant.CompanyConstants;
|
||||
import com.ruoyi.common.constant.UserConstants;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
@ -50,7 +51,16 @@ public class CompanyServiceImpl implements ICompanyService
|
||||
return companyMapper.selectCompanyList(company);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<Company> getCompanyList(Company company,SysUser user)
|
||||
{
|
||||
company.setStatus(CompanyConstants.company_status_0);
|
||||
// 运营者账号,只能查询所属商户数据
|
||||
if(UserConstants.USER_TYPE_02 .equals(user.getUserType())){
|
||||
company.setId(user.getGroupId());
|
||||
}
|
||||
return companyMapper.selectCompanyList(company);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String checkPhoneUnique(Company company){
|
||||
|
||||
@ -0,0 +1,94 @@
|
||||
package com.ruoyi.operation.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.operation.mapper.ZcRentBatteyRuleMapper;
|
||||
import com.ruoyi.operation.domain.ZcRentBatteyRule;
|
||||
import com.ruoyi.operation.service.IZcRentBatteyRuleService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 租电套餐Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
@Service
|
||||
public class ZcRentBatteyRuleServiceImpl implements IZcRentBatteyRuleService
|
||||
{
|
||||
@Autowired
|
||||
private ZcRentBatteyRuleMapper zcRentBatteyRuleMapper;
|
||||
|
||||
/**
|
||||
* 查询租电套餐
|
||||
*
|
||||
* @param id 租电套餐主键
|
||||
* @return 租电套餐
|
||||
*/
|
||||
@Override
|
||||
public ZcRentBatteyRule selectZcRentBatteyRuleById(Long id)
|
||||
{
|
||||
return zcRentBatteyRuleMapper.selectZcRentBatteyRuleById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询租电套餐列表
|
||||
*
|
||||
* @param zcRentBatteyRule 租电套餐
|
||||
* @return 租电套餐
|
||||
*/
|
||||
@Override
|
||||
public List<ZcRentBatteyRule> selectZcRentBatteyRuleList(ZcRentBatteyRule zcRentBatteyRule)
|
||||
{
|
||||
return zcRentBatteyRuleMapper.selectZcRentBatteyRuleList(zcRentBatteyRule);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增租电套餐
|
||||
*
|
||||
* @param zcRentBatteyRule 租电套餐
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertZcRentBatteyRule(ZcRentBatteyRule zcRentBatteyRule)
|
||||
{
|
||||
return zcRentBatteyRuleMapper.insertZcRentBatteyRule(zcRentBatteyRule);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改租电套餐
|
||||
*
|
||||
* @param zcRentBatteyRule 租电套餐
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateZcRentBatteyRule(ZcRentBatteyRule zcRentBatteyRule)
|
||||
{
|
||||
return zcRentBatteyRuleMapper.updateZcRentBatteyRule(zcRentBatteyRule);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除租电套餐
|
||||
*
|
||||
* @param ids 需要删除的租电套餐主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteZcRentBatteyRuleByIds(String ids)
|
||||
{
|
||||
return zcRentBatteyRuleMapper.deleteZcRentBatteyRuleByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除租电套餐信息
|
||||
*
|
||||
* @param id 租电套餐主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteZcRentBatteyRuleById(Long id)
|
||||
{
|
||||
return zcRentBatteyRuleMapper.deleteZcRentBatteyRuleById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,97 @@
|
||||
package com.ruoyi.operation.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.operation.mapper.ZcRentCarRuleBatteryMapper;
|
||||
import com.ruoyi.operation.domain.ZcRentCarRuleBattery;
|
||||
import com.ruoyi.operation.service.IZcRentCarRuleBatteryService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 租车规则租电规则关联Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
@Service
|
||||
public class ZcRentCarRuleBatteryServiceImpl implements IZcRentCarRuleBatteryService
|
||||
{
|
||||
@Autowired
|
||||
private ZcRentCarRuleBatteryMapper zcRentCarRuleBatteryMapper;
|
||||
|
||||
/**
|
||||
* 查询租车规则租电规则关联
|
||||
*
|
||||
* @param id 租车规则租电规则关联主键
|
||||
* @return 租车规则租电规则关联
|
||||
*/
|
||||
@Override
|
||||
public ZcRentCarRuleBattery selectZcRentCarRuleBatteryById(Long id)
|
||||
{
|
||||
return zcRentCarRuleBatteryMapper.selectZcRentCarRuleBatteryById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询租车规则租电规则关联列表
|
||||
*
|
||||
* @param zcRentCarRuleBattery 租车规则租电规则关联
|
||||
* @return 租车规则租电规则关联
|
||||
*/
|
||||
@Override
|
||||
public List<ZcRentCarRuleBattery> selectZcRentCarRuleBatteryList(ZcRentCarRuleBattery zcRentCarRuleBattery)
|
||||
{
|
||||
return zcRentCarRuleBatteryMapper.selectZcRentCarRuleBatteryList(zcRentCarRuleBattery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增租车规则租电规则关联
|
||||
*
|
||||
* @param zcRentCarRuleBattery 租车规则租电规则关联
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertZcRentCarRuleBattery(ZcRentCarRuleBattery zcRentCarRuleBattery)
|
||||
{
|
||||
zcRentCarRuleBattery.setCreateTime(DateUtils.getNowDate());
|
||||
return zcRentCarRuleBatteryMapper.insertZcRentCarRuleBattery(zcRentCarRuleBattery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改租车规则租电规则关联
|
||||
*
|
||||
* @param zcRentCarRuleBattery 租车规则租电规则关联
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateZcRentCarRuleBattery(ZcRentCarRuleBattery zcRentCarRuleBattery)
|
||||
{
|
||||
zcRentCarRuleBattery.setUpdateTime(DateUtils.getNowDate());
|
||||
return zcRentCarRuleBatteryMapper.updateZcRentCarRuleBattery(zcRentCarRuleBattery);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除租车规则租电规则关联
|
||||
*
|
||||
* @param ids 需要删除的租车规则租电规则关联主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteZcRentCarRuleBatteryByIds(String ids)
|
||||
{
|
||||
return zcRentCarRuleBatteryMapper.deleteZcRentCarRuleBatteryByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除租车规则租电规则关联信息
|
||||
*
|
||||
* @param id 租车规则租电规则关联主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteZcRentCarRuleBatteryById(Long id)
|
||||
{
|
||||
return zcRentCarRuleBatteryMapper.deleteZcRentCarRuleBatteryById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,98 @@
|
||||
package com.ruoyi.operation.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.operation.mapper.ZcRentCarRuleMapper;
|
||||
import com.ruoyi.operation.domain.ZcRentCarRule;
|
||||
import com.ruoyi.operation.service.IZcRentCarRuleService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 租车计费规则Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-07
|
||||
*/
|
||||
@Service
|
||||
public class ZcRentCarRuleServiceImpl implements IZcRentCarRuleService
|
||||
{
|
||||
@Autowired
|
||||
private ZcRentCarRuleMapper zcRentCarRuleMapper;
|
||||
|
||||
/**
|
||||
* 查询租车计费规则
|
||||
*
|
||||
* @param id 租车计费规则主键
|
||||
* @return 租车计费规则
|
||||
*/
|
||||
@Override
|
||||
public ZcRentCarRule selectZcRentCarRuleById(Long id)
|
||||
{
|
||||
return zcRentCarRuleMapper.selectZcRentCarRuleById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询租车计费规则列表
|
||||
*
|
||||
* @param zcRentCarRule 租车计费规则
|
||||
* @return 租车计费规则
|
||||
*/
|
||||
@Override
|
||||
public List<ZcRentCarRule> selectZcRentCarRuleList(ZcRentCarRule zcRentCarRule)
|
||||
{
|
||||
return zcRentCarRuleMapper.selectZcRentCarRuleList(zcRentCarRule);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增租车计费规则
|
||||
*
|
||||
* @param zcRentCarRule 租车计费规则
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertZcRentCarRule(ZcRentCarRule zcRentCarRule)
|
||||
{
|
||||
zcRentCarRule.setCreateTime(DateUtils.getNowDate());
|
||||
zcRentCarRule.setUpdateTime(DateUtils.getNowDate());
|
||||
return zcRentCarRuleMapper.insertZcRentCarRule(zcRentCarRule);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改租车计费规则
|
||||
*
|
||||
* @param zcRentCarRule 租车计费规则
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateZcRentCarRule(ZcRentCarRule zcRentCarRule)
|
||||
{
|
||||
zcRentCarRule.setUpdateTime(DateUtils.getNowDate());
|
||||
return zcRentCarRuleMapper.updateZcRentCarRule(zcRentCarRule);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除租车计费规则
|
||||
*
|
||||
* @param ids 需要删除的租车计费规则主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteZcRentCarRuleByIds(String ids)
|
||||
{
|
||||
return zcRentCarRuleMapper.deleteZcRentCarRuleByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除租车计费规则信息
|
||||
*
|
||||
* @param id 租车计费规则主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteZcRentCarRuleById(Long id)
|
||||
{
|
||||
return zcRentCarRuleMapper.deleteZcRentCarRuleById(id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user