运营商初版
This commit is contained in:
@ -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.Company;
|
||||
import com.ruoyi.operation.service.ICompanyService;
|
||||
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 majian
|
||||
* @date 2025-06-30
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/operation/company")
|
||||
public class CompanyController extends BaseController
|
||||
{
|
||||
private String prefix = "operation/company";
|
||||
|
||||
@Autowired
|
||||
private ICompanyService companyService;
|
||||
|
||||
@RequiresPermissions("operation:company:view")
|
||||
@GetMapping()
|
||||
public String company()
|
||||
{
|
||||
return prefix + "/company";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询运营商列表
|
||||
*/
|
||||
@RequiresPermissions("operation:company:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(Company company)
|
||||
{
|
||||
startPage();
|
||||
List<Company> list = companyService.selectCompanyList(company);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出运营商列表
|
||||
*/
|
||||
@RequiresPermissions("operation:company:export")
|
||||
@Log(title = "运营商", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(Company company)
|
||||
{
|
||||
List<Company> list = companyService.selectCompanyList(company);
|
||||
ExcelUtil<Company> util = new ExcelUtil<Company>(Company.class);
|
||||
return util.exportExcel(list, "运营商数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增运营商
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存运营商
|
||||
*/
|
||||
@RequiresPermissions("operation:company:add")
|
||||
@Log(title = "运营商", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(Company company)
|
||||
{
|
||||
return toAjax(companyService.insertCompany(company));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改运营商
|
||||
*/
|
||||
@RequiresPermissions("operation:company:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||
{
|
||||
Company company = companyService.selectCompanyById(id);
|
||||
mmap.put("company", company);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存运营商
|
||||
*/
|
||||
@RequiresPermissions("operation:company:edit")
|
||||
@Log(title = "运营商", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(Company company)
|
||||
{
|
||||
return toAjax(companyService.updateCompany(company));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除运营商
|
||||
*/
|
||||
@RequiresPermissions("operation:company:remove")
|
||||
@Log(title = "运营商", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(companyService.deleteCompanyByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,610 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* 运营商对象 company
|
||||
*
|
||||
* @author majian
|
||||
* @date 2025-06-30
|
||||
*/
|
||||
public class Company extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 公司ID */
|
||||
private Long id;
|
||||
|
||||
/** 公司名称 */
|
||||
@Excel(name = "公司名称")
|
||||
private String companyName;
|
||||
|
||||
/** 联系人姓名 */
|
||||
@Excel(name = "联系人姓名")
|
||||
private String contactName;
|
||||
|
||||
/** 联系电话 */
|
||||
@Excel(name = "联系电话")
|
||||
private String phone;
|
||||
|
||||
/** 公司地址 */
|
||||
@Excel(name = "公司地址")
|
||||
private String address;
|
||||
|
||||
/** 账户余额 */
|
||||
@Excel(name = "账户余额")
|
||||
private BigDecimal balance;
|
||||
|
||||
/** 押金/保证金金额 */
|
||||
@Excel(name = "押金/保证金金额")
|
||||
private BigDecimal deposit;
|
||||
|
||||
/** 公司类型(用数字表示的分类) */
|
||||
@Excel(name = "公司类型", readConverterExp = "用=数字表示的分类")
|
||||
private Long type;
|
||||
|
||||
/** 是否已删除 */
|
||||
@Excel(name = "是否已删除")
|
||||
private Integer isDelete;
|
||||
|
||||
/** 是否允许拆分账单 */
|
||||
@Excel(name = "是否允许拆分账单")
|
||||
private Integer allowSplitBill;
|
||||
|
||||
/** 最大百分比 */
|
||||
@Excel(name = "最大百分比")
|
||||
private BigDecimal maxPercentage;
|
||||
|
||||
/** 是否可新增套餐 */
|
||||
@Excel(name = "是否可新增套餐")
|
||||
private String isAddRules;
|
||||
|
||||
/** 租车平台分成比例 */
|
||||
@Excel(name = "租车平台分成比例")
|
||||
private Long sharingRatio;
|
||||
|
||||
/** 微信支付模式 */
|
||||
@Excel(name = "微信支付模式")
|
||||
private String wechatPayModel;
|
||||
|
||||
/** 微信收款商户号 */
|
||||
@Excel(name = "微信收款商户号")
|
||||
private String wechatReceivingAccount;
|
||||
|
||||
/** 微信收款密钥 */
|
||||
@Excel(name = "微信收款密钥")
|
||||
private String wechatKey;
|
||||
|
||||
/** 计费模式 */
|
||||
@Excel(name = "计费模式")
|
||||
private Long chargeMode;
|
||||
|
||||
/** 计费参数 */
|
||||
@Excel(name = "计费参数")
|
||||
private BigDecimal chargeParam;
|
||||
|
||||
/** 是否允许修改 */
|
||||
@Excel(name = "是否允许修改")
|
||||
private Integer allowChange;
|
||||
|
||||
/** 渠道/通路ID */
|
||||
@Excel(name = "渠道/通路ID")
|
||||
private Long channelId;
|
||||
|
||||
/** 运营商管理城市 */
|
||||
@Excel(name = "运营商管理城市")
|
||||
private String citys;
|
||||
|
||||
/** 支付宝支付模式 */
|
||||
@Excel(name = "支付宝支付模式")
|
||||
private Long aliPayModel;
|
||||
|
||||
/** 支付宝收款商户号 */
|
||||
@Excel(name = "支付宝收款商户号")
|
||||
private String aliReceivingAccount;
|
||||
|
||||
/** 支付宝收款密钥 */
|
||||
@Excel(name = "支付宝收款密钥")
|
||||
private String aliKey;
|
||||
|
||||
/** 服务费收费订单类型 */
|
||||
@Excel(name = "服务费收费订单类型")
|
||||
private String serviceOrderType;
|
||||
|
||||
/** 分账订单类型 */
|
||||
@Excel(name = "分账订单类型")
|
||||
private String splitOrderType;
|
||||
|
||||
/** 微信公共平台余额 */
|
||||
@Excel(name = "微信公共平台余额")
|
||||
private BigDecimal wechatBalance;
|
||||
|
||||
/** 支付宝公共平台余额 */
|
||||
@Excel(name = "支付宝公共平台余额")
|
||||
private BigDecimal alipayBalance;
|
||||
|
||||
/** 邀请奖励模式 */
|
||||
@Excel(name = "邀请奖励模式")
|
||||
private Long inviteRewardMode;
|
||||
|
||||
/** 邀请奖励参数 */
|
||||
@Excel(name = "邀请奖励参数")
|
||||
private BigDecimal inviteRewardParam;
|
||||
|
||||
/** 奖励方式 */
|
||||
@Excel(name = "奖励方式")
|
||||
private Long rewardType;
|
||||
|
||||
/** 奖励参数 */
|
||||
@Excel(name = "奖励参数")
|
||||
private BigDecimal rewardParam;
|
||||
|
||||
/** 是否预约 */
|
||||
@Excel(name = "是否预约")
|
||||
private Integer isReservation;
|
||||
|
||||
/** 预约时长 */
|
||||
@Excel(name = "预约时长")
|
||||
private Long reservationDuration;
|
||||
|
||||
/** 预约次数 */
|
||||
@Excel(name = "预约次数")
|
||||
private Long reservationNumber;
|
||||
|
||||
/** 部门状态(0正常 1停用) */
|
||||
@Excel(name = "部门状态", readConverterExp = "0=正常,1=停用")
|
||||
private String status;
|
||||
|
||||
/** 删除标志 */
|
||||
private String delFlag;
|
||||
|
||||
/** */
|
||||
private String extend1;
|
||||
|
||||
/** */
|
||||
private String extend2;
|
||||
|
||||
/** */
|
||||
private String extend3;
|
||||
|
||||
/** */
|
||||
private String extend4;
|
||||
|
||||
/** */
|
||||
private String extend5;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCompanyName(String companyName)
|
||||
{
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getCompanyName()
|
||||
{
|
||||
return companyName;
|
||||
}
|
||||
public void setContactName(String contactName)
|
||||
{
|
||||
this.contactName = contactName;
|
||||
}
|
||||
|
||||
public String getContactName()
|
||||
{
|
||||
return contactName;
|
||||
}
|
||||
public void setPhone(String phone)
|
||||
{
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getPhone()
|
||||
{
|
||||
return phone;
|
||||
}
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
public void setBalance(BigDecimal balance)
|
||||
{
|
||||
this.balance = balance;
|
||||
}
|
||||
|
||||
public BigDecimal getBalance()
|
||||
{
|
||||
return balance;
|
||||
}
|
||||
public void setDeposit(BigDecimal deposit)
|
||||
{
|
||||
this.deposit = deposit;
|
||||
}
|
||||
|
||||
public BigDecimal getDeposit()
|
||||
{
|
||||
return deposit;
|
||||
}
|
||||
public void setType(Long type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Long getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setIsDelete(Integer isDelete)
|
||||
{
|
||||
this.isDelete = isDelete;
|
||||
}
|
||||
|
||||
public Integer getIsDelete()
|
||||
{
|
||||
return isDelete;
|
||||
}
|
||||
public void setAllowSplitBill(Integer allowSplitBill)
|
||||
{
|
||||
this.allowSplitBill = allowSplitBill;
|
||||
}
|
||||
|
||||
public Integer getAllowSplitBill()
|
||||
{
|
||||
return allowSplitBill;
|
||||
}
|
||||
public void setMaxPercentage(BigDecimal maxPercentage)
|
||||
{
|
||||
this.maxPercentage = maxPercentage;
|
||||
}
|
||||
|
||||
public BigDecimal getMaxPercentage()
|
||||
{
|
||||
return maxPercentage;
|
||||
}
|
||||
public void setIsAddRules(String isAddRules)
|
||||
{
|
||||
this.isAddRules = isAddRules;
|
||||
}
|
||||
|
||||
public String getIsAddRules()
|
||||
{
|
||||
return isAddRules;
|
||||
}
|
||||
public void setSharingRatio(Long sharingRatio)
|
||||
{
|
||||
this.sharingRatio = sharingRatio;
|
||||
}
|
||||
|
||||
public Long getSharingRatio()
|
||||
{
|
||||
return sharingRatio;
|
||||
}
|
||||
public void setWechatPayModel(String wechatPayModel)
|
||||
{
|
||||
this.wechatPayModel = wechatPayModel;
|
||||
}
|
||||
|
||||
public String getWechatPayModel()
|
||||
{
|
||||
return wechatPayModel;
|
||||
}
|
||||
public void setWechatReceivingAccount(String wechatReceivingAccount)
|
||||
{
|
||||
this.wechatReceivingAccount = wechatReceivingAccount;
|
||||
}
|
||||
|
||||
public String getWechatReceivingAccount()
|
||||
{
|
||||
return wechatReceivingAccount;
|
||||
}
|
||||
public void setWechatKey(String wechatKey)
|
||||
{
|
||||
this.wechatKey = wechatKey;
|
||||
}
|
||||
|
||||
public String getWechatKey()
|
||||
{
|
||||
return wechatKey;
|
||||
}
|
||||
public void setChargeMode(Long chargeMode)
|
||||
{
|
||||
this.chargeMode = chargeMode;
|
||||
}
|
||||
|
||||
public Long getChargeMode()
|
||||
{
|
||||
return chargeMode;
|
||||
}
|
||||
public void setChargeParam(BigDecimal chargeParam)
|
||||
{
|
||||
this.chargeParam = chargeParam;
|
||||
}
|
||||
|
||||
public BigDecimal getChargeParam()
|
||||
{
|
||||
return chargeParam;
|
||||
}
|
||||
public void setAllowChange(Integer allowChange)
|
||||
{
|
||||
this.allowChange = allowChange;
|
||||
}
|
||||
|
||||
public Integer getAllowChange()
|
||||
{
|
||||
return allowChange;
|
||||
}
|
||||
public void setChannelId(Long channelId)
|
||||
{
|
||||
this.channelId = channelId;
|
||||
}
|
||||
|
||||
public Long getChannelId()
|
||||
{
|
||||
return channelId;
|
||||
}
|
||||
public void setCitys(String citys)
|
||||
{
|
||||
this.citys = citys;
|
||||
}
|
||||
|
||||
public String getCitys()
|
||||
{
|
||||
return citys;
|
||||
}
|
||||
public void setAliPayModel(Long aliPayModel)
|
||||
{
|
||||
this.aliPayModel = aliPayModel;
|
||||
}
|
||||
|
||||
public Long getAliPayModel()
|
||||
{
|
||||
return aliPayModel;
|
||||
}
|
||||
public void setAliReceivingAccount(String aliReceivingAccount)
|
||||
{
|
||||
this.aliReceivingAccount = aliReceivingAccount;
|
||||
}
|
||||
|
||||
public String getAliReceivingAccount()
|
||||
{
|
||||
return aliReceivingAccount;
|
||||
}
|
||||
public void setAliKey(String aliKey)
|
||||
{
|
||||
this.aliKey = aliKey;
|
||||
}
|
||||
|
||||
public String getAliKey()
|
||||
{
|
||||
return aliKey;
|
||||
}
|
||||
public void setServiceOrderType(String serviceOrderType)
|
||||
{
|
||||
this.serviceOrderType = serviceOrderType;
|
||||
}
|
||||
|
||||
public String getServiceOrderType()
|
||||
{
|
||||
return serviceOrderType;
|
||||
}
|
||||
public void setSplitOrderType(String splitOrderType)
|
||||
{
|
||||
this.splitOrderType = splitOrderType;
|
||||
}
|
||||
|
||||
public String getSplitOrderType()
|
||||
{
|
||||
return splitOrderType;
|
||||
}
|
||||
public void setWechatBalance(BigDecimal wechatBalance)
|
||||
{
|
||||
this.wechatBalance = wechatBalance;
|
||||
}
|
||||
|
||||
public BigDecimal getWechatBalance()
|
||||
{
|
||||
return wechatBalance;
|
||||
}
|
||||
public void setAlipayBalance(BigDecimal alipayBalance)
|
||||
{
|
||||
this.alipayBalance = alipayBalance;
|
||||
}
|
||||
|
||||
public BigDecimal getAlipayBalance()
|
||||
{
|
||||
return alipayBalance;
|
||||
}
|
||||
public void setInviteRewardMode(Long inviteRewardMode)
|
||||
{
|
||||
this.inviteRewardMode = inviteRewardMode;
|
||||
}
|
||||
|
||||
public Long getInviteRewardMode()
|
||||
{
|
||||
return inviteRewardMode;
|
||||
}
|
||||
public void setInviteRewardParam(BigDecimal inviteRewardParam)
|
||||
{
|
||||
this.inviteRewardParam = inviteRewardParam;
|
||||
}
|
||||
|
||||
public BigDecimal getInviteRewardParam()
|
||||
{
|
||||
return inviteRewardParam;
|
||||
}
|
||||
public void setRewardType(Long rewardType)
|
||||
{
|
||||
this.rewardType = rewardType;
|
||||
}
|
||||
|
||||
public Long getRewardType()
|
||||
{
|
||||
return rewardType;
|
||||
}
|
||||
public void setRewardParam(BigDecimal rewardParam)
|
||||
{
|
||||
this.rewardParam = rewardParam;
|
||||
}
|
||||
|
||||
public BigDecimal getRewardParam()
|
||||
{
|
||||
return rewardParam;
|
||||
}
|
||||
public void setIsReservation(Integer isReservation)
|
||||
{
|
||||
this.isReservation = isReservation;
|
||||
}
|
||||
|
||||
public Integer getIsReservation()
|
||||
{
|
||||
return isReservation;
|
||||
}
|
||||
public void setReservationDuration(Long reservationDuration)
|
||||
{
|
||||
this.reservationDuration = reservationDuration;
|
||||
}
|
||||
|
||||
public Long getReservationDuration()
|
||||
{
|
||||
return reservationDuration;
|
||||
}
|
||||
public void setReservationNumber(Long reservationNumber)
|
||||
{
|
||||
this.reservationNumber = reservationNumber;
|
||||
}
|
||||
|
||||
public Long getReservationNumber()
|
||||
{
|
||||
return reservationNumber;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("companyName", getCompanyName())
|
||||
.append("contactName", getContactName())
|
||||
.append("phone", getPhone())
|
||||
.append("address", getAddress())
|
||||
.append("balance", getBalance())
|
||||
.append("deposit", getDeposit())
|
||||
.append("type", getType())
|
||||
.append("isDelete", getIsDelete())
|
||||
.append("allowSplitBill", getAllowSplitBill())
|
||||
.append("maxPercentage", getMaxPercentage())
|
||||
.append("isAddRules", getIsAddRules())
|
||||
.append("sharingRatio", getSharingRatio())
|
||||
.append("wechatPayModel", getWechatPayModel())
|
||||
.append("wechatReceivingAccount", getWechatReceivingAccount())
|
||||
.append("wechatKey", getWechatKey())
|
||||
.append("chargeMode", getChargeMode())
|
||||
.append("chargeParam", getChargeParam())
|
||||
.append("allowChange", getAllowChange())
|
||||
.append("channelId", getChannelId())
|
||||
.append("citys", getCitys())
|
||||
.append("aliPayModel", getAliPayModel())
|
||||
.append("aliReceivingAccount", getAliReceivingAccount())
|
||||
.append("aliKey", getAliKey())
|
||||
.append("serviceOrderType", getServiceOrderType())
|
||||
.append("splitOrderType", getSplitOrderType())
|
||||
.append("wechatBalance", getWechatBalance())
|
||||
.append("alipayBalance", getAlipayBalance())
|
||||
.append("inviteRewardMode", getInviteRewardMode())
|
||||
.append("inviteRewardParam", getInviteRewardParam())
|
||||
.append("rewardType", getRewardType())
|
||||
.append("rewardParam", getRewardParam())
|
||||
.append("isReservation", getIsReservation())
|
||||
.append("reservationDuration", getReservationDuration())
|
||||
.append("reservationNumber", getReservationNumber())
|
||||
.append("status", getStatus())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("extend1", getExtend1())
|
||||
.append("extend2", getExtend2())
|
||||
.append("extend3", getExtend3())
|
||||
.append("extend4", getExtend4())
|
||||
.append("extend5", getExtend5())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.operation.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.operation.domain.Company;
|
||||
|
||||
/**
|
||||
* 运营商Mapper接口
|
||||
*
|
||||
* @author majian
|
||||
* @date 2025-06-30
|
||||
*/
|
||||
public interface CompanyMapper
|
||||
{
|
||||
/**
|
||||
* 查询运营商
|
||||
*
|
||||
* @param id 运营商主键
|
||||
* @return 运营商
|
||||
*/
|
||||
public Company selectCompanyById(Long id);
|
||||
|
||||
/**
|
||||
* 查询运营商列表
|
||||
*
|
||||
* @param company 运营商
|
||||
* @return 运营商集合
|
||||
*/
|
||||
public List<Company> selectCompanyList(Company company);
|
||||
|
||||
/**
|
||||
* 新增运营商
|
||||
*
|
||||
* @param company 运营商
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompany(Company company);
|
||||
|
||||
/**
|
||||
* 修改运营商
|
||||
*
|
||||
* @param company 运营商
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompany(Company company);
|
||||
|
||||
/**
|
||||
* 删除运营商
|
||||
*
|
||||
* @param id 运营商主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanyById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除运营商
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanyByIds(String[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.ruoyi.operation.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.operation.domain.Company;
|
||||
|
||||
/**
|
||||
* 运营商Service接口
|
||||
*
|
||||
* @author majian
|
||||
* @date 2025-06-30
|
||||
*/
|
||||
public interface ICompanyService
|
||||
{
|
||||
/**
|
||||
* 查询运营商
|
||||
*
|
||||
* @param id 运营商主键
|
||||
* @return 运营商
|
||||
*/
|
||||
public Company selectCompanyById(Long id);
|
||||
|
||||
/**
|
||||
* 查询运营商列表
|
||||
*
|
||||
* @param company 运营商
|
||||
* @return 运营商集合
|
||||
*/
|
||||
public List<Company> selectCompanyList(Company company);
|
||||
|
||||
/**
|
||||
* 新增运营商
|
||||
*
|
||||
* @param company 运营商
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCompany(Company company);
|
||||
|
||||
/**
|
||||
* 修改运营商
|
||||
*
|
||||
* @param company 运营商
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCompany(Company company);
|
||||
|
||||
/**
|
||||
* 批量删除运营商
|
||||
*
|
||||
* @param ids 需要删除的运营商主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanyByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除运营商信息
|
||||
*
|
||||
* @param id 运营商主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCompanyById(Long 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.CompanyMapper;
|
||||
import com.ruoyi.operation.domain.Company;
|
||||
import com.ruoyi.operation.service.ICompanyService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 运营商Service业务层处理
|
||||
*
|
||||
* @author majian
|
||||
* @date 2025-06-30
|
||||
*/
|
||||
@Service
|
||||
public class CompanyServiceImpl implements ICompanyService
|
||||
{
|
||||
@Autowired
|
||||
private CompanyMapper companyMapper;
|
||||
|
||||
/**
|
||||
* 查询运营商
|
||||
*
|
||||
* @param id 运营商主键
|
||||
* @return 运营商
|
||||
*/
|
||||
@Override
|
||||
public Company selectCompanyById(Long id)
|
||||
{
|
||||
return companyMapper.selectCompanyById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询运营商列表
|
||||
*
|
||||
* @param company 运营商
|
||||
* @return 运营商
|
||||
*/
|
||||
@Override
|
||||
public List<Company> selectCompanyList(Company company)
|
||||
{
|
||||
return companyMapper.selectCompanyList(company);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增运营商
|
||||
*
|
||||
* @param company 运营商
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCompany(Company company)
|
||||
{
|
||||
company.setCreateTime(DateUtils.getNowDate());
|
||||
return companyMapper.insertCompany(company);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改运营商
|
||||
*
|
||||
* @param company 运营商
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCompany(Company company)
|
||||
{
|
||||
company.setUpdateTime(DateUtils.getNowDate());
|
||||
return companyMapper.updateCompany(company);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除运营商
|
||||
*
|
||||
* @param ids 需要删除的运营商主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompanyByIds(String ids)
|
||||
{
|
||||
return companyMapper.deleteCompanyByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除运营商信息
|
||||
*
|
||||
* @param id 运营商主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCompanyById(Long id)
|
||||
{
|
||||
return companyMapper.deleteCompanyById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,267 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.operation.mapper.CompanyMapper">
|
||||
|
||||
<resultMap type="Company" id="CompanyResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="companyName" column="company_name" />
|
||||
<result property="contactName" column="contact_name" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="address" column="address" />
|
||||
<result property="balance" column="balance" />
|
||||
<result property="deposit" column="deposit" />
|
||||
<result property="type" column="type" />
|
||||
<result property="isDelete" column="is_delete" />
|
||||
<result property="allowSplitBill" column="allow_split_bill" />
|
||||
<result property="maxPercentage" column="max_percentage" />
|
||||
<result property="isAddRules" column="is_add_rules" />
|
||||
<result property="sharingRatio" column="sharing_ratio" />
|
||||
<result property="wechatPayModel" column="wechat_pay_model" />
|
||||
<result property="wechatReceivingAccount" column="wechat_receiving_account" />
|
||||
<result property="wechatKey" column="wechat_key" />
|
||||
<result property="chargeMode" column="charge_mode" />
|
||||
<result property="chargeParam" column="charge_param" />
|
||||
<result property="allowChange" column="allow_change" />
|
||||
<result property="channelId" column="channel_id" />
|
||||
<result property="citys" column="citys" />
|
||||
<result property="aliPayModel" column="ali_pay_model" />
|
||||
<result property="aliReceivingAccount" column="ali_receiving_account" />
|
||||
<result property="aliKey" column="ali_key" />
|
||||
<result property="serviceOrderType" column="service_order_type" />
|
||||
<result property="splitOrderType" column="split_order_type" />
|
||||
<result property="wechatBalance" column="wechat_balance" />
|
||||
<result property="alipayBalance" column="alipay_balance" />
|
||||
<result property="inviteRewardMode" column="invite_reward_mode" />
|
||||
<result property="inviteRewardParam" column="invite_reward_param" />
|
||||
<result property="rewardType" column="reward_type" />
|
||||
<result property="rewardParam" column="reward_param" />
|
||||
<result property="isReservation" column="is_reservation" />
|
||||
<result property="reservationDuration" column="reservation_duration" />
|
||||
<result property="reservationNumber" column="reservation_number" />
|
||||
<result property="status" column="status" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="extend1" column="extend1" />
|
||||
<result property="extend2" column="extend2" />
|
||||
<result property="extend3" column="extend3" />
|
||||
<result property="extend4" column="extend4" />
|
||||
<result property="extend5" column="extend5" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCompanyVo">
|
||||
select id, company_name, contact_name, phone, address, balance, deposit, type, is_delete, allow_split_bill, max_percentage, is_add_rules, sharing_ratio, wechat_pay_model, wechat_receiving_account, wechat_key, charge_mode, charge_param, allow_change, channel_id, citys, ali_pay_model, ali_receiving_account, ali_key, service_order_type, split_order_type, wechat_balance, alipay_balance, invite_reward_mode, invite_reward_param, reward_type, reward_param, is_reservation, reservation_duration, reservation_number, status, del_flag, create_by, create_time, update_by, update_time, extend1, extend2, extend3, extend4, extend5 from company
|
||||
</sql>
|
||||
|
||||
<select id="selectCompanyList" parameterType="Company" resultMap="CompanyResult">
|
||||
<include refid="selectCompanyVo"/>
|
||||
<where>
|
||||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
||||
<if test="contactName != null and contactName != ''"> and contact_name like concat('%', #{contactName}, '%')</if>
|
||||
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
||||
<if test="address != null and address != ''"> and address = #{address}</if>
|
||||
<if test="balance != null "> and balance = #{balance}</if>
|
||||
<if test="deposit != null "> and deposit = #{deposit}</if>
|
||||
<if test="type != null "> and type = #{type}</if>
|
||||
<if test="isDelete != null "> and is_delete = #{isDelete}</if>
|
||||
<if test="allowSplitBill != null "> and allow_split_bill = #{allowSplitBill}</if>
|
||||
<if test="maxPercentage != null "> and max_percentage = #{maxPercentage}</if>
|
||||
<if test="isAddRules != null and isAddRules != ''"> and is_add_rules = #{isAddRules}</if>
|
||||
<if test="sharingRatio != null "> and sharing_ratio = #{sharingRatio}</if>
|
||||
<if test="wechatPayModel != null and wechatPayModel != ''"> and wechat_pay_model = #{wechatPayModel}</if>
|
||||
<if test="wechatReceivingAccount != null and wechatReceivingAccount != ''"> and wechat_receiving_account = #{wechatReceivingAccount}</if>
|
||||
<if test="wechatKey != null and wechatKey != ''"> and wechat_key = #{wechatKey}</if>
|
||||
<if test="chargeMode != null "> and charge_mode = #{chargeMode}</if>
|
||||
<if test="chargeParam != null "> and charge_param = #{chargeParam}</if>
|
||||
<if test="allowChange != null "> and allow_change = #{allowChange}</if>
|
||||
<if test="channelId != null "> and channel_id = #{channelId}</if>
|
||||
<if test="citys != null and citys != ''"> and citys = #{citys}</if>
|
||||
<if test="aliPayModel != null "> and ali_pay_model = #{aliPayModel}</if>
|
||||
<if test="aliReceivingAccount != null and aliReceivingAccount != ''"> and ali_receiving_account = #{aliReceivingAccount}</if>
|
||||
<if test="aliKey != null and aliKey != ''"> and ali_key = #{aliKey}</if>
|
||||
<if test="serviceOrderType != null and serviceOrderType != ''"> and service_order_type = #{serviceOrderType}</if>
|
||||
<if test="splitOrderType != null and splitOrderType != ''"> and split_order_type = #{splitOrderType}</if>
|
||||
<if test="wechatBalance != null "> and wechat_balance = #{wechatBalance}</if>
|
||||
<if test="alipayBalance != null "> and alipay_balance = #{alipayBalance}</if>
|
||||
<if test="inviteRewardMode != null "> and invite_reward_mode = #{inviteRewardMode}</if>
|
||||
<if test="inviteRewardParam != null "> and invite_reward_param = #{inviteRewardParam}</if>
|
||||
<if test="rewardType != null "> and reward_type = #{rewardType}</if>
|
||||
<if test="rewardParam != null "> and reward_param = #{rewardParam}</if>
|
||||
<if test="isReservation != null "> and is_reservation = #{isReservation}</if>
|
||||
<if test="reservationDuration != null "> and reservation_duration = #{reservationDuration}</if>
|
||||
<if test="reservationNumber != null "> and reservation_number = #{reservationNumber}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCompanyById" parameterType="Long" resultMap="CompanyResult">
|
||||
<include refid="selectCompanyVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCompany" parameterType="Company" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into company
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="companyName != null and companyName != ''">company_name,</if>
|
||||
<if test="contactName != null">contact_name,</if>
|
||||
<if test="phone != null">phone,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="balance != null">balance,</if>
|
||||
<if test="deposit != null">deposit,</if>
|
||||
<if test="type != null">type,</if>
|
||||
<if test="isDelete != null">is_delete,</if>
|
||||
<if test="allowSplitBill != null">allow_split_bill,</if>
|
||||
<if test="maxPercentage != null">max_percentage,</if>
|
||||
<if test="isAddRules != null and isAddRules != ''">is_add_rules,</if>
|
||||
<if test="sharingRatio != null">sharing_ratio,</if>
|
||||
<if test="wechatPayModel != null and wechatPayModel != ''">wechat_pay_model,</if>
|
||||
<if test="wechatReceivingAccount != null and wechatReceivingAccount != ''">wechat_receiving_account,</if>
|
||||
<if test="wechatKey != null and wechatKey != ''">wechat_key,</if>
|
||||
<if test="chargeMode != null">charge_mode,</if>
|
||||
<if test="chargeParam != null">charge_param,</if>
|
||||
<if test="allowChange != null">allow_change,</if>
|
||||
<if test="channelId != null">channel_id,</if>
|
||||
<if test="citys != null">citys,</if>
|
||||
<if test="aliPayModel != null">ali_pay_model,</if>
|
||||
<if test="aliReceivingAccount != null and aliReceivingAccount != ''">ali_receiving_account,</if>
|
||||
<if test="aliKey != null and aliKey != ''">ali_key,</if>
|
||||
<if test="serviceOrderType != null">service_order_type,</if>
|
||||
<if test="splitOrderType != null">split_order_type,</if>
|
||||
<if test="wechatBalance != null">wechat_balance,</if>
|
||||
<if test="alipayBalance != null">alipay_balance,</if>
|
||||
<if test="inviteRewardMode != null">invite_reward_mode,</if>
|
||||
<if test="inviteRewardParam != null">invite_reward_param,</if>
|
||||
<if test="rewardType != null">reward_type,</if>
|
||||
<if test="rewardParam != null">reward_param,</if>
|
||||
<if test="isReservation != null">is_reservation,</if>
|
||||
<if test="reservationDuration != null">reservation_duration,</if>
|
||||
<if test="reservationNumber != null">reservation_number,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="extend1 != null">extend1,</if>
|
||||
<if test="extend2 != null">extend2,</if>
|
||||
<if test="extend3 != null">extend3,</if>
|
||||
<if test="extend4 != null">extend4,</if>
|
||||
<if test="extend5 != null">extend5,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="companyName != null and companyName != ''">#{companyName},</if>
|
||||
<if test="contactName != null">#{contactName},</if>
|
||||
<if test="phone != null">#{phone},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="balance != null">#{balance},</if>
|
||||
<if test="deposit != null">#{deposit},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="isDelete != null">#{isDelete},</if>
|
||||
<if test="allowSplitBill != null">#{allowSplitBill},</if>
|
||||
<if test="maxPercentage != null">#{maxPercentage},</if>
|
||||
<if test="isAddRules != null and isAddRules != ''">#{isAddRules},</if>
|
||||
<if test="sharingRatio != null">#{sharingRatio},</if>
|
||||
<if test="wechatPayModel != null and wechatPayModel != ''">#{wechatPayModel},</if>
|
||||
<if test="wechatReceivingAccount != null and wechatReceivingAccount != ''">#{wechatReceivingAccount},</if>
|
||||
<if test="wechatKey != null and wechatKey != ''">#{wechatKey},</if>
|
||||
<if test="chargeMode != null">#{chargeMode},</if>
|
||||
<if test="chargeParam != null">#{chargeParam},</if>
|
||||
<if test="allowChange != null">#{allowChange},</if>
|
||||
<if test="channelId != null">#{channelId},</if>
|
||||
<if test="citys != null">#{citys},</if>
|
||||
<if test="aliPayModel != null">#{aliPayModel},</if>
|
||||
<if test="aliReceivingAccount != null and aliReceivingAccount != ''">#{aliReceivingAccount},</if>
|
||||
<if test="aliKey != null and aliKey != ''">#{aliKey},</if>
|
||||
<if test="serviceOrderType != null">#{serviceOrderType},</if>
|
||||
<if test="splitOrderType != null">#{splitOrderType},</if>
|
||||
<if test="wechatBalance != null">#{wechatBalance},</if>
|
||||
<if test="alipayBalance != null">#{alipayBalance},</if>
|
||||
<if test="inviteRewardMode != null">#{inviteRewardMode},</if>
|
||||
<if test="inviteRewardParam != null">#{inviteRewardParam},</if>
|
||||
<if test="rewardType != null">#{rewardType},</if>
|
||||
<if test="rewardParam != null">#{rewardParam},</if>
|
||||
<if test="isReservation != null">#{isReservation},</if>
|
||||
<if test="reservationDuration != null">#{reservationDuration},</if>
|
||||
<if test="reservationNumber != null">#{reservationNumber},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="extend1 != null">#{extend1},</if>
|
||||
<if test="extend2 != null">#{extend2},</if>
|
||||
<if test="extend3 != null">#{extend3},</if>
|
||||
<if test="extend4 != null">#{extend4},</if>
|
||||
<if test="extend5 != null">#{extend5},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCompany" parameterType="Company">
|
||||
update company
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="companyName != null and companyName != ''">company_name = #{companyName},</if>
|
||||
<if test="contactName != null">contact_name = #{contactName},</if>
|
||||
<if test="phone != null">phone = #{phone},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="balance != null">balance = #{balance},</if>
|
||||
<if test="deposit != null">deposit = #{deposit},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
||||
<if test="allowSplitBill != null">allow_split_bill = #{allowSplitBill},</if>
|
||||
<if test="maxPercentage != null">max_percentage = #{maxPercentage},</if>
|
||||
<if test="isAddRules != null and isAddRules != ''">is_add_rules = #{isAddRules},</if>
|
||||
<if test="sharingRatio != null">sharing_ratio = #{sharingRatio},</if>
|
||||
<if test="wechatPayModel != null and wechatPayModel != ''">wechat_pay_model = #{wechatPayModel},</if>
|
||||
<if test="wechatReceivingAccount != null and wechatReceivingAccount != ''">wechat_receiving_account = #{wechatReceivingAccount},</if>
|
||||
<if test="wechatKey != null and wechatKey != ''">wechat_key = #{wechatKey},</if>
|
||||
<if test="chargeMode != null">charge_mode = #{chargeMode},</if>
|
||||
<if test="chargeParam != null">charge_param = #{chargeParam},</if>
|
||||
<if test="allowChange != null">allow_change = #{allowChange},</if>
|
||||
<if test="channelId != null">channel_id = #{channelId},</if>
|
||||
<if test="citys != null">citys = #{citys},</if>
|
||||
<if test="aliPayModel != null">ali_pay_model = #{aliPayModel},</if>
|
||||
<if test="aliReceivingAccount != null and aliReceivingAccount != ''">ali_receiving_account = #{aliReceivingAccount},</if>
|
||||
<if test="aliKey != null and aliKey != ''">ali_key = #{aliKey},</if>
|
||||
<if test="serviceOrderType != null">service_order_type = #{serviceOrderType},</if>
|
||||
<if test="splitOrderType != null">split_order_type = #{splitOrderType},</if>
|
||||
<if test="wechatBalance != null">wechat_balance = #{wechatBalance},</if>
|
||||
<if test="alipayBalance != null">alipay_balance = #{alipayBalance},</if>
|
||||
<if test="inviteRewardMode != null">invite_reward_mode = #{inviteRewardMode},</if>
|
||||
<if test="inviteRewardParam != null">invite_reward_param = #{inviteRewardParam},</if>
|
||||
<if test="rewardType != null">reward_type = #{rewardType},</if>
|
||||
<if test="rewardParam != null">reward_param = #{rewardParam},</if>
|
||||
<if test="isReservation != null">is_reservation = #{isReservation},</if>
|
||||
<if test="reservationDuration != null">reservation_duration = #{reservationDuration},</if>
|
||||
<if test="reservationNumber != null">reservation_number = #{reservationNumber},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="extend1 != null">extend1 = #{extend1},</if>
|
||||
<if test="extend2 != null">extend2 = #{extend2},</if>
|
||||
<if test="extend3 != null">extend3 = #{extend3},</if>
|
||||
<if test="extend4 != null">extend4 = #{extend4},</if>
|
||||
<if test="extend5 != null">extend5 = #{extend5},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCompanyById" parameterType="Long">
|
||||
delete from company where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCompanyByIds" parameterType="String">
|
||||
delete from company where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,241 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('新增运营商')" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-company-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">公司名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="companyName" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">联系人姓名:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="contactName" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">联系电话:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="phone" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">公司地址:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="address" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">账户余额:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="balance" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">押金/保证金金额:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="deposit" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">是否已删除:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isDelete" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否允许拆分账单:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="allowSplitBill" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">最大百分比:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="maxPercentage" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">是否可新增套餐:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isAddRules" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">租车平台分成比例:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="sharingRatio" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">微信支付模式:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="wechatPayModel" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">微信收款商户号:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="wechatReceivingAccount" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">微信收款密钥:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="wechatKey" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">计费模式:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="chargeMode" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">计费参数:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="chargeParam" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">是否允许修改:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="allowChange" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">渠道/通路ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="channelId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">运营商管理城市:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="citys" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">支付宝支付模式:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="aliPayModel" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">支付宝收款商户号:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="aliReceivingAccount" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">支付宝收款密钥:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="aliKey" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">微信公共平台余额:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="wechatBalance" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">支付宝公共平台余额:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="alipayBalance" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">邀请奖励模式:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="inviteRewardMode" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">邀请奖励参数:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="inviteRewardParam" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">奖励参数:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="rewardParam" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">是否预约:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isReservation" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">预约时长:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="reservationDuration" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">预约次数:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="reservationNumber" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标志:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="delFlag" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="extend1" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="extend2" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="extend3" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="extend4" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="extend5" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "operation/company"
|
||||
$("#form-company-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-company-add').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,338 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<head>
|
||||
<th:block th:include="include :: header('运营商列表')" />
|
||||
</head>
|
||||
<body class="gray-bg">
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
<label>公司名称:</label>
|
||||
<input type="text" name="companyName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>联系人姓名:</label>
|
||||
<input type="text" name="contactName"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>联系电话:</label>
|
||||
<input type="text" name="phone"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>公司地址:</label>
|
||||
<input type="text" name="address"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>账户余额:</label>
|
||||
<input type="text" name="balance"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>押金/保证金金额:</label>
|
||||
<input type="text" name="deposit"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>是否已删除:</label>
|
||||
<input type="text" name="isDelete"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>是否允许拆分账单:</label>
|
||||
<input type="text" name="allowSplitBill"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>最大百分比:</label>
|
||||
<input type="text" name="maxPercentage"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>是否可新增套餐:</label>
|
||||
<input type="text" name="isAddRules"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>租车平台分成比例:</label>
|
||||
<input type="text" name="sharingRatio"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>微信支付模式:</label>
|
||||
<input type="text" name="wechatPayModel"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>微信收款商户号:</label>
|
||||
<input type="text" name="wechatReceivingAccount"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>微信收款密钥:</label>
|
||||
<input type="text" name="wechatKey"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>计费模式:</label>
|
||||
<input type="text" name="chargeMode"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>计费参数:</label>
|
||||
<input type="text" name="chargeParam"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>是否允许修改:</label>
|
||||
<input type="text" name="allowChange"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>渠道/通路ID:</label>
|
||||
<input type="text" name="channelId"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>运营商管理城市:</label>
|
||||
<input type="text" name="citys"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>支付宝支付模式:</label>
|
||||
<input type="text" name="aliPayModel"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>支付宝收款商户号:</label>
|
||||
<input type="text" name="aliReceivingAccount"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>支付宝收款密钥:</label>
|
||||
<input type="text" name="aliKey"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>微信公共平台余额:</label>
|
||||
<input type="text" name="wechatBalance"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>支付宝公共平台余额:</label>
|
||||
<input type="text" name="alipayBalance"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>邀请奖励模式:</label>
|
||||
<input type="text" name="inviteRewardMode"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>邀请奖励参数:</label>
|
||||
<input type="text" name="inviteRewardParam"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>奖励参数:</label>
|
||||
<input type="text" name="rewardParam"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>是否预约:</label>
|
||||
<input type="text" name="isReservation"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>预约时长:</label>
|
||||
<input type="text" name="reservationDuration"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>预约次数:</label>
|
||||
<input type="text" name="reservationNumber"/>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="operation:company:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="operation:company:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="operation:company:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="operation:company:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('operation:company:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('operation:company:remove')}]];
|
||||
var prefix = ctx + "operation/company";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "运营商",
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field: 'id',
|
||||
title: '公司ID',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'companyName',
|
||||
title: '公司名称'
|
||||
},
|
||||
{
|
||||
field: 'contactName',
|
||||
title: '联系人姓名'
|
||||
},
|
||||
{
|
||||
field: 'phone',
|
||||
title: '联系电话'
|
||||
},
|
||||
{
|
||||
field: 'address',
|
||||
title: '公司地址'
|
||||
},
|
||||
{
|
||||
field: 'balance',
|
||||
title: '账户余额'
|
||||
},
|
||||
{
|
||||
field: 'deposit',
|
||||
title: '押金/保证金金额'
|
||||
},
|
||||
{
|
||||
field: 'type',
|
||||
title: '公司类型'
|
||||
},
|
||||
{
|
||||
field: 'isDelete',
|
||||
title: '是否已删除'
|
||||
},
|
||||
{
|
||||
field: 'allowSplitBill',
|
||||
title: '是否允许拆分账单'
|
||||
},
|
||||
{
|
||||
field: 'maxPercentage',
|
||||
title: '最大百分比'
|
||||
},
|
||||
{
|
||||
field: 'isAddRules',
|
||||
title: '是否可新增套餐'
|
||||
},
|
||||
{
|
||||
field: 'sharingRatio',
|
||||
title: '租车平台分成比例'
|
||||
},
|
||||
{
|
||||
field: 'wechatPayModel',
|
||||
title: '微信支付模式'
|
||||
},
|
||||
{
|
||||
field: 'wechatReceivingAccount',
|
||||
title: '微信收款商户号'
|
||||
},
|
||||
{
|
||||
field: 'wechatKey',
|
||||
title: '微信收款密钥'
|
||||
},
|
||||
{
|
||||
field: 'chargeMode',
|
||||
title: '计费模式'
|
||||
},
|
||||
{
|
||||
field: 'chargeParam',
|
||||
title: '计费参数'
|
||||
},
|
||||
{
|
||||
field: 'allowChange',
|
||||
title: '是否允许修改'
|
||||
},
|
||||
{
|
||||
field: 'channelId',
|
||||
title: '渠道/通路ID'
|
||||
},
|
||||
{
|
||||
field: 'citys',
|
||||
title: '运营商管理城市'
|
||||
},
|
||||
{
|
||||
field: 'aliPayModel',
|
||||
title: '支付宝支付模式'
|
||||
},
|
||||
{
|
||||
field: 'aliReceivingAccount',
|
||||
title: '支付宝收款商户号'
|
||||
},
|
||||
{
|
||||
field: 'aliKey',
|
||||
title: '支付宝收款密钥'
|
||||
},
|
||||
{
|
||||
field: 'serviceOrderType',
|
||||
title: '服务费收费订单类型'
|
||||
},
|
||||
{
|
||||
field: 'splitOrderType',
|
||||
title: '分账订单类型'
|
||||
},
|
||||
{
|
||||
field: 'wechatBalance',
|
||||
title: '微信公共平台余额'
|
||||
},
|
||||
{
|
||||
field: 'alipayBalance',
|
||||
title: '支付宝公共平台余额'
|
||||
},
|
||||
{
|
||||
field: 'inviteRewardMode',
|
||||
title: '邀请奖励模式'
|
||||
},
|
||||
{
|
||||
field: 'inviteRewardParam',
|
||||
title: '邀请奖励参数'
|
||||
},
|
||||
{
|
||||
field: 'rewardType',
|
||||
title: '奖励方式'
|
||||
},
|
||||
{
|
||||
field: 'rewardParam',
|
||||
title: '奖励参数'
|
||||
},
|
||||
{
|
||||
field: 'isReservation',
|
||||
title: '是否预约'
|
||||
},
|
||||
{
|
||||
field: 'reservationDuration',
|
||||
title: '预约时长'
|
||||
},
|
||||
{
|
||||
field: 'reservationNumber',
|
||||
title: '预约次数'
|
||||
},
|
||||
{
|
||||
field: 'status',
|
||||
title: '部门状态'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,206 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('修改运营商')" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-company-edit" th:object="${company}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">公司名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="companyName" th:field="*{companyName}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">联系人姓名:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="contactName" th:field="*{contactName}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">联系电话:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="phone" th:field="*{phone}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">公司地址:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="address" th:field="*{address}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">账户余额:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="balance" th:field="*{balance}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">押金/保证金金额:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="deposit" th:field="*{deposit}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">是否已删除:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isDelete" th:field="*{isDelete}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否允许拆分账单:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="allowSplitBill" th:field="*{allowSplitBill}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">最大百分比:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="maxPercentage" th:field="*{maxPercentage}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">是否可新增套餐:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isAddRules" th:field="*{isAddRules}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">租车平台分成比例:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="sharingRatio" th:field="*{sharingRatio}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">微信支付模式:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="wechatPayModel" th:field="*{wechatPayModel}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">微信收款商户号:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="wechatReceivingAccount" th:field="*{wechatReceivingAccount}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">微信收款密钥:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="wechatKey" th:field="*{wechatKey}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">计费模式:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="chargeMode" th:field="*{chargeMode}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">计费参数:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="chargeParam" th:field="*{chargeParam}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">是否允许修改:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="allowChange" th:field="*{allowChange}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">渠道/通路ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="channelId" th:field="*{channelId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">运营商管理城市:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="citys" th:field="*{citys}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">支付宝支付模式:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="aliPayModel" th:field="*{aliPayModel}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">支付宝收款商户号:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="aliReceivingAccount" th:field="*{aliReceivingAccount}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">支付宝收款密钥:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="aliKey" th:field="*{aliKey}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">微信公共平台余额:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="wechatBalance" th:field="*{wechatBalance}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">支付宝公共平台余额:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="alipayBalance" th:field="*{alipayBalance}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">邀请奖励模式:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="inviteRewardMode" th:field="*{inviteRewardMode}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">邀请奖励参数:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="inviteRewardParam" th:field="*{inviteRewardParam}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">奖励参数:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="rewardParam" th:field="*{rewardParam}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label is-required">是否预约:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="isReservation" th:field="*{isReservation}" class="form-control" type="text" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">预约时长:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="reservationDuration" th:field="*{reservationDuration}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">预约次数:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="reservationNumber" th:field="*{reservationNumber}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "operation/company";
|
||||
$("#form-company-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-company-edit').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user