变更 增加自己的模块
This commit is contained in:
parent
7c3425ee9b
commit
3f03e309da
Binary file not shown.
|
|
@ -0,0 +1,2 @@
|
|||
@Echo Off
|
||||
start D:\tools_2022\work\nacos-server-2.0.4\nacos\bin\startup.cmd -m standalone
|
||||
|
|
@ -13,6 +13,7 @@
|
|||
<module>ruoyi-gen</module>
|
||||
<module>ruoyi-job</module>
|
||||
<module>ruoyi-file</module>
|
||||
<module>ruoyi-xjt</module>
|
||||
</modules>
|
||||
|
||||
<artifactId>ruoyi-modules</artifactId>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,99 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>ruoyi</artifactId>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<version>3.4.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>ruoyi-modules-xjt</artifactId>
|
||||
<description>
|
||||
ruoyi-modules-xjt系统模块
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Nacos Config -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Alibaba Sentinel -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringBoot Actuator -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Swagger UI -->
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-swagger-ui</artifactId>
|
||||
<version>${swagger.fox.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Mysql Connector -->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Common DataSource -->
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common-datasource</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Common DataScope -->
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common-datascope</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Common Log -->
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common-log</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- RuoYi Common Swagger -->
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common-swagger</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.ruoyi.xjt;
|
||||
|
||||
import com.ruoyi.common.security.annotation.EnableCustomConfig;
|
||||
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
|
||||
import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* 系统模块
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@EnableCustomConfig
|
||||
@EnableCustomSwagger2
|
||||
@EnableRyFeignClients
|
||||
@SpringBootApplication
|
||||
public class RuoYiXjtApplication
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
SpringApplication.run(RuoYiXjtApplication.class, args);
|
||||
System.out.println("(♥◠‿◠)ノ゙ 系统模块启动成功 ლ(´ڡ`ლ)゙ \n" +
|
||||
" .-------. ____ __ \n" +
|
||||
" | _ _ \\ \\ \\ / / \n" +
|
||||
" | ( ' ) | \\ _. / ' \n" +
|
||||
" |(_ o _) / _( )_ .' \n" +
|
||||
" | (_,_).' __ ___(_ o _)' \n" +
|
||||
" | |\\ \\ | || |(_,_)' \n" +
|
||||
" | | \\ `' /| `-' / \n" +
|
||||
" | | \\ / \\ / \n" +
|
||||
" ''-' `'-' `-..-' ");
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
package com.ruoyi.xjt.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.log.annotation.Log;
|
||||
import com.ruoyi.common.log.enums.BusinessType;
|
||||
import com.ruoyi.common.security.annotation.RequiresPermissions;
|
||||
import com.ruoyi.xjt.domain.TMoney;
|
||||
import com.ruoyi.xjt.service.ITMoneyService;
|
||||
import com.ruoyi.common.core.web.controller.BaseController;
|
||||
import com.ruoyi.common.core.web.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 支出或收入详情Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-04-01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/money")
|
||||
public class TMoneyController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ITMoneyService tMoneyService;
|
||||
|
||||
/**
|
||||
* 查询支出或收入详情列表
|
||||
*/
|
||||
@RequiresPermissions("xjt:money:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(TMoney tMoney)
|
||||
{
|
||||
startPage();
|
||||
List<TMoney> list = tMoneyService.selectTMoneyList(tMoney);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出支出或收入详情列表
|
||||
*/
|
||||
@RequiresPermissions("xjt:money:export")
|
||||
@Log(title = "支出或收入详情", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, TMoney tMoney)
|
||||
{
|
||||
List<TMoney> list = tMoneyService.selectTMoneyList(tMoney);
|
||||
ExcelUtil<TMoney> util = new ExcelUtil<TMoney>(TMoney.class);
|
||||
util.exportExcel(response, list, "支出或收入详情数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取支出或收入详情详细信息
|
||||
*/
|
||||
@RequiresPermissions("xjt:money:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(tMoneyService.selectTMoneyById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增支出或收入详情
|
||||
*/
|
||||
@RequiresPermissions("xjt:money:add")
|
||||
@Log(title = "支出或收入详情", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody TMoney tMoney)
|
||||
{
|
||||
return toAjax(tMoneyService.insertTMoney(tMoney));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改支出或收入详情
|
||||
*/
|
||||
@RequiresPermissions("xjt:money:edit")
|
||||
@Log(title = "支出或收入详情", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody TMoney tMoney)
|
||||
{
|
||||
return toAjax(tMoneyService.updateTMoney(tMoney));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除支出或收入详情
|
||||
*/
|
||||
@RequiresPermissions("xjt:money:remove")
|
||||
@Log(title = "支出或收入详情", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(tMoneyService.deleteTMoneyByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
package com.ruoyi.xjt.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.log.annotation.Log;
|
||||
import com.ruoyi.common.log.enums.BusinessType;
|
||||
import com.ruoyi.common.security.annotation.RequiresPermissions;
|
||||
import com.ruoyi.xjt.domain.TOrder;
|
||||
import com.ruoyi.xjt.service.ITOrderService;
|
||||
import com.ruoyi.common.core.web.controller.BaseController;
|
||||
import com.ruoyi.common.core.web.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 缴费订单Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-04-01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/order")
|
||||
public class TOrderController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ITOrderService tOrderService;
|
||||
|
||||
/**
|
||||
* 查询缴费订单列表
|
||||
*/
|
||||
@RequiresPermissions("xjt:order:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(TOrder tOrder)
|
||||
{
|
||||
startPage();
|
||||
List<TOrder> list = tOrderService.selectTOrderList(tOrder);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出缴费订单列表
|
||||
*/
|
||||
@RequiresPermissions("xjt:order:export")
|
||||
@Log(title = "缴费订单", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, TOrder tOrder)
|
||||
{
|
||||
List<TOrder> list = tOrderService.selectTOrderList(tOrder);
|
||||
ExcelUtil<TOrder> util = new ExcelUtil<TOrder>(TOrder.class);
|
||||
util.exportExcel(response, list, "缴费订单数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取缴费订单详细信息
|
||||
*/
|
||||
@RequiresPermissions("xjt:order:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(tOrderService.selectTOrderById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增缴费订单
|
||||
*/
|
||||
@RequiresPermissions("xjt:order:add")
|
||||
@Log(title = "缴费订单", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody TOrder tOrder)
|
||||
{
|
||||
return toAjax(tOrderService.insertTOrder(tOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改缴费订单
|
||||
*/
|
||||
@RequiresPermissions("xjt:order:edit")
|
||||
@Log(title = "缴费订单", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody TOrder tOrder)
|
||||
{
|
||||
return toAjax(tOrderService.updateTOrder(tOrder));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除缴费订单
|
||||
*/
|
||||
@RequiresPermissions("xjt:order:remove")
|
||||
@Log(title = "缴费订单", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(tOrderService.deleteTOrderByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
package com.ruoyi.xjt.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.ruoyi.common.core.constant.SecurityConstants;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.core.web.domain.AjaxResult;
|
||||
import com.ruoyi.common.security.annotation.RequiresPermissions;
|
||||
import com.ruoyi.common.security.utils.SecurityUtils;
|
||||
import com.ruoyi.system.api.model.LoginUser;
|
||||
import com.ruoyi.xjt.service.XjtUserService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/user")
|
||||
public class XjtUserController {
|
||||
@Autowired
|
||||
private XjtUserService xjtUserService;
|
||||
/**
|
||||
* 根据角色编号获取详细信息
|
||||
*/
|
||||
@RequiresPermissions("system:role:query")
|
||||
@GetMapping(value = "/{username}")
|
||||
public AjaxResult getInfo(@PathVariable String username)
|
||||
{
|
||||
System.out.println("用户username:"+username);
|
||||
R<Map<String,Object>> userinfo= xjtUserService.getUserInfo(username, SecurityConstants.INNER);
|
||||
System.out.println("用户信息:"+JSON.toJSONString(userinfo));
|
||||
LoginUser loginuser = SecurityUtils.getLoginUser();
|
||||
System.out.println("登录用户信息"+JSON.toJSONString(loginuser));
|
||||
return AjaxResult.success(userinfo);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,181 @@
|
|||
package com.ruoyi.xjt.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.core.annotation.Excel;
|
||||
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 支出或收入详情对象 t_money
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-04-01
|
||||
*/
|
||||
public class TMoney extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 对应用户 */
|
||||
@Excel(name = "对应用户")
|
||||
private Long userid;
|
||||
|
||||
/** 金额 */
|
||||
@Excel(name = "金额")
|
||||
private BigDecimal money;
|
||||
|
||||
/** 交易类型 2:保养 4:进货 7:救援 10:维修厂营销卡 40:后台操作 50:提现 60:牛牛币返利 70:商城服务单 80:聚乐贝兑换 0:充值 */
|
||||
@Excel(name = "交易类型 2:保养 4:进货 7:救援 10:维修厂营销卡 40:后台操作 50:提现 60:牛牛币返利 70:商城服务单 80:聚乐贝兑换 0:充值")
|
||||
private Long tradetype;
|
||||
|
||||
/** 交易时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date tradedate;
|
||||
|
||||
/** 获取与扣除1=获取,2=扣除 */
|
||||
@Excel(name = "获取与扣除1=获取,2=扣除 ")
|
||||
private Long type;
|
||||
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String note;
|
||||
|
||||
/** 处理后剩余金额 */
|
||||
@Excel(name = "处理后剩余金额")
|
||||
private BigDecimal leftmoney;
|
||||
|
||||
/** 订单id */
|
||||
@Excel(name = "订单id")
|
||||
private Long orderid;
|
||||
|
||||
/** 状态1=正常,2=删除 */
|
||||
@Excel(name = "状态1=正常,2=删除")
|
||||
private Long state;
|
||||
|
||||
/** bbsmall t_orderid表 id */
|
||||
@Excel(name = "bbsmall t_orderid表 id")
|
||||
private Long bbsmallorderid;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setUserid(Long userid)
|
||||
{
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
public Long getUserid()
|
||||
{
|
||||
return userid;
|
||||
}
|
||||
public void setMoney(BigDecimal money)
|
||||
{
|
||||
this.money = money;
|
||||
}
|
||||
|
||||
public BigDecimal getMoney()
|
||||
{
|
||||
return money;
|
||||
}
|
||||
public void setTradetype(Long tradetype)
|
||||
{
|
||||
this.tradetype = tradetype;
|
||||
}
|
||||
|
||||
public Long getTradetype()
|
||||
{
|
||||
return tradetype;
|
||||
}
|
||||
public void setTradedate(Date tradedate)
|
||||
{
|
||||
this.tradedate = tradedate;
|
||||
}
|
||||
|
||||
public Date getTradedate()
|
||||
{
|
||||
return tradedate;
|
||||
}
|
||||
public void setType(Long type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Long getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
public void setNote(String note)
|
||||
{
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
public String getNote()
|
||||
{
|
||||
return note;
|
||||
}
|
||||
public void setLeftmoney(BigDecimal leftmoney)
|
||||
{
|
||||
this.leftmoney = leftmoney;
|
||||
}
|
||||
|
||||
public BigDecimal getLeftmoney()
|
||||
{
|
||||
return leftmoney;
|
||||
}
|
||||
public void setOrderid(Long orderid)
|
||||
{
|
||||
this.orderid = orderid;
|
||||
}
|
||||
|
||||
public Long getOrderid()
|
||||
{
|
||||
return orderid;
|
||||
}
|
||||
public void setState(Long state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Long getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
public void setBbsmallorderid(Long bbsmallorderid)
|
||||
{
|
||||
this.bbsmallorderid = bbsmallorderid;
|
||||
}
|
||||
|
||||
public Long getBbsmallorderid()
|
||||
{
|
||||
return bbsmallorderid;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("userid", getUserid())
|
||||
.append("money", getMoney())
|
||||
.append("tradetype", getTradetype())
|
||||
.append("tradedate", getTradedate())
|
||||
.append("type", getType())
|
||||
.append("note", getNote())
|
||||
.append("leftmoney", getLeftmoney())
|
||||
.append("orderid", getOrderid())
|
||||
.append("state", getState())
|
||||
.append("bbsmallorderid", getBbsmallorderid())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,394 @@
|
|||
package com.ruoyi.xjt.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.core.annotation.Excel;
|
||||
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 缴费订单对象 t_order
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-04-01
|
||||
*/
|
||||
public class TOrder extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 业务发生所属公司 */
|
||||
@Excel(name = "业务发生所属公司")
|
||||
private Long companyid;
|
||||
|
||||
/** 对应用户 */
|
||||
@Excel(name = "对应用户")
|
||||
private Long khuserid;
|
||||
|
||||
/** 服务商用户id(洗车工 或者 维修厂) */
|
||||
@Excel(name = "服务商用户id", readConverterExp = "洗=车工,或=者,维=修厂")
|
||||
private Long fwsuserid;
|
||||
|
||||
/** 订单总额 */
|
||||
@Excel(name = "订单总额")
|
||||
private BigDecimal money;
|
||||
|
||||
/** 其中使用余额支付多少元 */
|
||||
@Excel(name = "其中使用余额支付多少元")
|
||||
private BigDecimal yuepay;
|
||||
|
||||
/** 其中使用保障基金支付多少元 */
|
||||
@Excel(name = "其中使用保障基金支付多少元")
|
||||
private BigDecimal fundpay;
|
||||
|
||||
/** 其中使用微信活支付宝支付多少元 */
|
||||
@Excel(name = "其中使用微信活支付宝支付多少元")
|
||||
private BigDecimal wxorcftpay;
|
||||
|
||||
/** 交易类型( 2:保养 4:进货 6:基金申请 7:救援 8:维修厂充值巴士币 9: 充值 10:购买维修厂卡片) */
|
||||
@Excel(name = "交易类型", readConverterExp = "2=:保养,4=:进货,6=:基金申请,7=:救援,8=:维修厂充值巴士币,9=:,充=值,1=0:购买维修厂卡片")
|
||||
private Long tradetype;
|
||||
|
||||
/** 订单号 */
|
||||
@Excel(name = "订单号")
|
||||
private String ordernum;
|
||||
|
||||
/** 支付时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date paytime;
|
||||
|
||||
/** 订单时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "订单时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdate;
|
||||
|
||||
/** 支付类型 0=余额支付 1=微信支付,2=支付宝支付 ,3=保障金支付 4:现金支付 10:余额+微信 20:余额+支付宝 13:保障金+微信 23=保障金+支付宝 30: 保障金+余额支付 130:保障金+微信+余额支付 230=保障金+支付宝+余额支付 43:保障基金+现金支付 */
|
||||
@Excel(name = "支付类型 0=余额支付 1=微信支付,2=支付宝支付 ,3=保障金支付 4:现金支付 10:余额+微信 20:余额+支付宝 13:保障金+微信 23=保障金+支付宝 30: 保障金+余额支付 130:保障金+微信+余额支付 230=保障金+支付宝+余额支付 43:保障基金+现金支付")
|
||||
private Long paytype;
|
||||
|
||||
/** 支付状态 0未支付 1已支付 */
|
||||
@Excel(name = "支付状态 0未支付 1已支付")
|
||||
private Long paystate;
|
||||
|
||||
/** 微信或支付宝返回的交易号 */
|
||||
@Excel(name = "微信或支付宝返回的交易号")
|
||||
private String tradeNo;
|
||||
|
||||
/** 商户号 */
|
||||
@Excel(name = "商户号")
|
||||
private String mchId;
|
||||
|
||||
/** 微信或支付宝返回的交易状态 */
|
||||
@Excel(name = "微信或支付宝返回的交易状态")
|
||||
private String tradeStatus;
|
||||
|
||||
/** 优惠价 用户关联表id */
|
||||
@Excel(name = "优惠价 用户关联表id")
|
||||
private Long cuid;
|
||||
|
||||
/** 使用优惠价额度 */
|
||||
@Excel(name = "使用优惠价额度")
|
||||
private BigDecimal cumoney;
|
||||
|
||||
/** 退款审核人id */
|
||||
@Excel(name = "退款审核人id")
|
||||
private Long refundAuditUserid;
|
||||
|
||||
/** 退款金额 */
|
||||
@Excel(name = "退款金额")
|
||||
private BigDecimal refundMoney;
|
||||
|
||||
/** 退款备注 */
|
||||
@Excel(name = "退款备注")
|
||||
private String refundNote;
|
||||
|
||||
/** 退款单号 */
|
||||
@Excel(name = "退款单号")
|
||||
private String refundNo;
|
||||
|
||||
/** 退款状态 1:已成功提交退款申请 2:退款成功 3:退款失败 */
|
||||
@Excel(name = "退款状态 1:已成功提交退款申请 2:退款成功 3:退款失败")
|
||||
private Integer refundState;
|
||||
|
||||
/** 退款时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "退款时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date refundTime;
|
||||
|
||||
/** 退款微信返回时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "退款微信返回时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date refundSuccesstime;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCompanyid(Long companyid)
|
||||
{
|
||||
this.companyid = companyid;
|
||||
}
|
||||
|
||||
public Long getCompanyid()
|
||||
{
|
||||
return companyid;
|
||||
}
|
||||
public void setKhuserid(Long khuserid)
|
||||
{
|
||||
this.khuserid = khuserid;
|
||||
}
|
||||
|
||||
public Long getKhuserid()
|
||||
{
|
||||
return khuserid;
|
||||
}
|
||||
public void setFwsuserid(Long fwsuserid)
|
||||
{
|
||||
this.fwsuserid = fwsuserid;
|
||||
}
|
||||
|
||||
public Long getFwsuserid()
|
||||
{
|
||||
return fwsuserid;
|
||||
}
|
||||
public void setMoney(BigDecimal money)
|
||||
{
|
||||
this.money = money;
|
||||
}
|
||||
|
||||
public BigDecimal getMoney()
|
||||
{
|
||||
return money;
|
||||
}
|
||||
public void setYuepay(BigDecimal yuepay)
|
||||
{
|
||||
this.yuepay = yuepay;
|
||||
}
|
||||
|
||||
public BigDecimal getYuepay()
|
||||
{
|
||||
return yuepay;
|
||||
}
|
||||
public void setFundpay(BigDecimal fundpay)
|
||||
{
|
||||
this.fundpay = fundpay;
|
||||
}
|
||||
|
||||
public BigDecimal getFundpay()
|
||||
{
|
||||
return fundpay;
|
||||
}
|
||||
public void setWxorcftpay(BigDecimal wxorcftpay)
|
||||
{
|
||||
this.wxorcftpay = wxorcftpay;
|
||||
}
|
||||
|
||||
public BigDecimal getWxorcftpay()
|
||||
{
|
||||
return wxorcftpay;
|
||||
}
|
||||
public void setTradetype(Long tradetype)
|
||||
{
|
||||
this.tradetype = tradetype;
|
||||
}
|
||||
|
||||
public Long getTradetype()
|
||||
{
|
||||
return tradetype;
|
||||
}
|
||||
public void setOrdernum(String ordernum)
|
||||
{
|
||||
this.ordernum = ordernum;
|
||||
}
|
||||
|
||||
public String getOrdernum()
|
||||
{
|
||||
return ordernum;
|
||||
}
|
||||
public void setPaytime(Date paytime)
|
||||
{
|
||||
this.paytime = paytime;
|
||||
}
|
||||
|
||||
public Date getPaytime()
|
||||
{
|
||||
return paytime;
|
||||
}
|
||||
public void setCreatedate(Date createdate)
|
||||
{
|
||||
this.createdate = createdate;
|
||||
}
|
||||
|
||||
public Date getCreatedate()
|
||||
{
|
||||
return createdate;
|
||||
}
|
||||
public void setPaytype(Long paytype)
|
||||
{
|
||||
this.paytype = paytype;
|
||||
}
|
||||
|
||||
public Long getPaytype()
|
||||
{
|
||||
return paytype;
|
||||
}
|
||||
public void setPaystate(Long paystate)
|
||||
{
|
||||
this.paystate = paystate;
|
||||
}
|
||||
|
||||
public Long getPaystate()
|
||||
{
|
||||
return paystate;
|
||||
}
|
||||
public void setTradeNo(String tradeNo)
|
||||
{
|
||||
this.tradeNo = tradeNo;
|
||||
}
|
||||
|
||||
public String getTradeNo()
|
||||
{
|
||||
return tradeNo;
|
||||
}
|
||||
public void setMchId(String mchId)
|
||||
{
|
||||
this.mchId = mchId;
|
||||
}
|
||||
|
||||
public String getMchId()
|
||||
{
|
||||
return mchId;
|
||||
}
|
||||
public void setTradeStatus(String tradeStatus)
|
||||
{
|
||||
this.tradeStatus = tradeStatus;
|
||||
}
|
||||
|
||||
public String getTradeStatus()
|
||||
{
|
||||
return tradeStatus;
|
||||
}
|
||||
public void setCuid(Long cuid)
|
||||
{
|
||||
this.cuid = cuid;
|
||||
}
|
||||
|
||||
public Long getCuid()
|
||||
{
|
||||
return cuid;
|
||||
}
|
||||
public void setCumoney(BigDecimal cumoney)
|
||||
{
|
||||
this.cumoney = cumoney;
|
||||
}
|
||||
|
||||
public BigDecimal getCumoney()
|
||||
{
|
||||
return cumoney;
|
||||
}
|
||||
public void setRefundAuditUserid(Long refundAuditUserid)
|
||||
{
|
||||
this.refundAuditUserid = refundAuditUserid;
|
||||
}
|
||||
|
||||
public Long getRefundAuditUserid()
|
||||
{
|
||||
return refundAuditUserid;
|
||||
}
|
||||
public void setRefundMoney(BigDecimal refundMoney)
|
||||
{
|
||||
this.refundMoney = refundMoney;
|
||||
}
|
||||
|
||||
public BigDecimal getRefundMoney()
|
||||
{
|
||||
return refundMoney;
|
||||
}
|
||||
public void setRefundNote(String refundNote)
|
||||
{
|
||||
this.refundNote = refundNote;
|
||||
}
|
||||
|
||||
public String getRefundNote()
|
||||
{
|
||||
return refundNote;
|
||||
}
|
||||
public void setRefundNo(String refundNo)
|
||||
{
|
||||
this.refundNo = refundNo;
|
||||
}
|
||||
|
||||
public String getRefundNo()
|
||||
{
|
||||
return refundNo;
|
||||
}
|
||||
public void setRefundState(Integer refundState)
|
||||
{
|
||||
this.refundState = refundState;
|
||||
}
|
||||
|
||||
public Integer getRefundState()
|
||||
{
|
||||
return refundState;
|
||||
}
|
||||
public void setRefundTime(Date refundTime)
|
||||
{
|
||||
this.refundTime = refundTime;
|
||||
}
|
||||
|
||||
public Date getRefundTime()
|
||||
{
|
||||
return refundTime;
|
||||
}
|
||||
public void setRefundSuccesstime(Date refundSuccesstime)
|
||||
{
|
||||
this.refundSuccesstime = refundSuccesstime;
|
||||
}
|
||||
|
||||
public Date getRefundSuccesstime()
|
||||
{
|
||||
return refundSuccesstime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("companyid", getCompanyid())
|
||||
.append("khuserid", getKhuserid())
|
||||
.append("fwsuserid", getFwsuserid())
|
||||
.append("money", getMoney())
|
||||
.append("yuepay", getYuepay())
|
||||
.append("fundpay", getFundpay())
|
||||
.append("wxorcftpay", getWxorcftpay())
|
||||
.append("tradetype", getTradetype())
|
||||
.append("ordernum", getOrdernum())
|
||||
.append("paytime", getPaytime())
|
||||
.append("createdate", getCreatedate())
|
||||
.append("paytype", getPaytype())
|
||||
.append("paystate", getPaystate())
|
||||
.append("tradeNo", getTradeNo())
|
||||
.append("mchId", getMchId())
|
||||
.append("tradeStatus", getTradeStatus())
|
||||
.append("cuid", getCuid())
|
||||
.append("cumoney", getCumoney())
|
||||
.append("refundAuditUserid", getRefundAuditUserid())
|
||||
.append("refundMoney", getRefundMoney())
|
||||
.append("refundNote", getRefundNote())
|
||||
.append("refundNo", getRefundNo())
|
||||
.append("refundState", getRefundState())
|
||||
.append("refundTime", getRefundTime())
|
||||
.append("refundSuccesstime", getRefundSuccesstime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.xjt.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.xjt.domain.TMoney;
|
||||
|
||||
/**
|
||||
* 支出或收入详情Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-04-01
|
||||
*/
|
||||
public interface TMoneyMapper
|
||||
{
|
||||
/**
|
||||
* 查询支出或收入详情
|
||||
*
|
||||
* @param id 支出或收入详情主键
|
||||
* @return 支出或收入详情
|
||||
*/
|
||||
public TMoney selectTMoneyById(Long id);
|
||||
|
||||
/**
|
||||
* 查询支出或收入详情列表
|
||||
*
|
||||
* @param tMoney 支出或收入详情
|
||||
* @return 支出或收入详情集合
|
||||
*/
|
||||
public List<TMoney> selectTMoneyList(TMoney tMoney);
|
||||
|
||||
/**
|
||||
* 新增支出或收入详情
|
||||
*
|
||||
* @param tMoney 支出或收入详情
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTMoney(TMoney tMoney);
|
||||
|
||||
/**
|
||||
* 修改支出或收入详情
|
||||
*
|
||||
* @param tMoney 支出或收入详情
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTMoney(TMoney tMoney);
|
||||
|
||||
/**
|
||||
* 删除支出或收入详情
|
||||
*
|
||||
* @param id 支出或收入详情主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTMoneyById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除支出或收入详情
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTMoneyByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.xjt.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.xjt.domain.TOrder;
|
||||
|
||||
/**
|
||||
* 缴费订单Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-04-01
|
||||
*/
|
||||
public interface TOrderMapper
|
||||
{
|
||||
/**
|
||||
* 查询缴费订单
|
||||
*
|
||||
* @param id 缴费订单主键
|
||||
* @return 缴费订单
|
||||
*/
|
||||
public TOrder selectTOrderById(Long id);
|
||||
|
||||
/**
|
||||
* 查询缴费订单列表
|
||||
*
|
||||
* @param tOrder 缴费订单
|
||||
* @return 缴费订单集合
|
||||
*/
|
||||
public List<TOrder> selectTOrderList(TOrder tOrder);
|
||||
|
||||
/**
|
||||
* 新增缴费订单
|
||||
*
|
||||
* @param tOrder 缴费订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTOrder(TOrder tOrder);
|
||||
|
||||
/**
|
||||
* 修改缴费订单
|
||||
*
|
||||
* @param tOrder 缴费订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTOrder(TOrder tOrder);
|
||||
|
||||
/**
|
||||
* 删除缴费订单
|
||||
*
|
||||
* @param id 缴费订单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTOrderById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除缴费订单
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTOrderByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.xjt.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.xjt.domain.TMoney;
|
||||
|
||||
/**
|
||||
* 支出或收入详情Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-04-01
|
||||
*/
|
||||
public interface ITMoneyService
|
||||
{
|
||||
/**
|
||||
* 查询支出或收入详情
|
||||
*
|
||||
* @param id 支出或收入详情主键
|
||||
* @return 支出或收入详情
|
||||
*/
|
||||
public TMoney selectTMoneyById(Long id);
|
||||
|
||||
/**
|
||||
* 查询支出或收入详情列表
|
||||
*
|
||||
* @param tMoney 支出或收入详情
|
||||
* @return 支出或收入详情集合
|
||||
*/
|
||||
public List<TMoney> selectTMoneyList(TMoney tMoney);
|
||||
|
||||
/**
|
||||
* 新增支出或收入详情
|
||||
*
|
||||
* @param tMoney 支出或收入详情
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTMoney(TMoney tMoney);
|
||||
|
||||
/**
|
||||
* 修改支出或收入详情
|
||||
*
|
||||
* @param tMoney 支出或收入详情
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTMoney(TMoney tMoney);
|
||||
|
||||
/**
|
||||
* 批量删除支出或收入详情
|
||||
*
|
||||
* @param ids 需要删除的支出或收入详情主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTMoneyByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除支出或收入详情信息
|
||||
*
|
||||
* @param id 支出或收入详情主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTMoneyById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.ruoyi.xjt.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.xjt.domain.TOrder;
|
||||
|
||||
/**
|
||||
* 缴费订单Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-04-01
|
||||
*/
|
||||
public interface ITOrderService
|
||||
{
|
||||
/**
|
||||
* 查询缴费订单
|
||||
*
|
||||
* @param id 缴费订单主键
|
||||
* @return 缴费订单
|
||||
*/
|
||||
public TOrder selectTOrderById(Long id);
|
||||
|
||||
/**
|
||||
* 查询缴费订单列表
|
||||
*
|
||||
* @param tOrder 缴费订单
|
||||
* @return 缴费订单集合
|
||||
*/
|
||||
public List<TOrder> selectTOrderList(TOrder tOrder);
|
||||
|
||||
/**
|
||||
* 新增缴费订单
|
||||
*
|
||||
* @param tOrder 缴费订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTOrder(TOrder tOrder);
|
||||
|
||||
/**
|
||||
* 修改缴费订单
|
||||
*
|
||||
* @param tOrder 缴费订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTOrder(TOrder tOrder);
|
||||
|
||||
/**
|
||||
* 批量删除缴费订单
|
||||
*
|
||||
* @param ids 需要删除的缴费订单主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTOrderByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除缴费订单信息
|
||||
*
|
||||
* @param id 缴费订单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTOrderById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package com.ruoyi.xjt.service;
|
||||
|
||||
import com.ruoyi.common.core.constant.SecurityConstants;
|
||||
import com.ruoyi.common.core.constant.ServiceNameConstants;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.xjt.service.factory.XjtUserServiceFallbackFactory;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 用户服务
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@Service
|
||||
@FeignClient(contextId = "xjtUserService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = XjtUserServiceFallbackFactory.class)
|
||||
public interface XjtUserService
|
||||
{
|
||||
/**
|
||||
* 通过用户名查询用户信息
|
||||
*
|
||||
* @param username 用户名
|
||||
* @param source 请求来源
|
||||
* @return 结果
|
||||
*/
|
||||
@GetMapping("/user/info/{username}")
|
||||
public R<Map<String,Object>> getUserInfo(@PathVariable("username") String username, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
||||
|
||||
/**
|
||||
* 注册用户信息
|
||||
*
|
||||
* @param sysUser 用户信息
|
||||
* @param source 请求来源
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("/user/register")
|
||||
public R<Boolean> registerUserInfo(@RequestBody Map<String,Object> sysUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
package com.ruoyi.xjt.service.factory;
|
||||
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.xjt.service.XjtUserService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Map;
|
||||
@Component
|
||||
public class XjtUserServiceFallbackFactory implements FallbackFactory<XjtUserService> {
|
||||
private static final Logger log = LoggerFactory.getLogger(XjtUserServiceFallbackFactory.class);
|
||||
@Override
|
||||
public XjtUserService create(Throwable throwable) {
|
||||
log.error("用户服务调用失败:{}", throwable.getMessage());
|
||||
return new XjtUserService()
|
||||
{
|
||||
@Override
|
||||
public R<Map<String,Object>> getUserInfo(String username, String source)
|
||||
{
|
||||
return R.fail("获取用户失败:" + throwable.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<Boolean> registerUserInfo(Map<String,Object> sysUser, String source)
|
||||
{
|
||||
return R.fail("注册用户失败:" + throwable.getMessage());
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
package com.ruoyi.xjt.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.xjt.mapper.TMoneyMapper;
|
||||
import com.ruoyi.xjt.domain.TMoney;
|
||||
import com.ruoyi.xjt.service.ITMoneyService;
|
||||
|
||||
/**
|
||||
* 支出或收入详情Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-04-01
|
||||
*/
|
||||
@Service
|
||||
public class TMoneyServiceImpl implements ITMoneyService
|
||||
{
|
||||
@Autowired
|
||||
private TMoneyMapper tMoneyMapper;
|
||||
|
||||
/**
|
||||
* 查询支出或收入详情
|
||||
*
|
||||
* @param id 支出或收入详情主键
|
||||
* @return 支出或收入详情
|
||||
*/
|
||||
@Override
|
||||
public TMoney selectTMoneyById(Long id)
|
||||
{
|
||||
return tMoneyMapper.selectTMoneyById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询支出或收入详情列表
|
||||
*
|
||||
* @param tMoney 支出或收入详情
|
||||
* @return 支出或收入详情
|
||||
*/
|
||||
@Override
|
||||
public List<TMoney> selectTMoneyList(TMoney tMoney)
|
||||
{
|
||||
return tMoneyMapper.selectTMoneyList(tMoney);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增支出或收入详情
|
||||
*
|
||||
* @param tMoney 支出或收入详情
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertTMoney(TMoney tMoney)
|
||||
{
|
||||
return tMoneyMapper.insertTMoney(tMoney);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改支出或收入详情
|
||||
*
|
||||
* @param tMoney 支出或收入详情
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateTMoney(TMoney tMoney)
|
||||
{
|
||||
return tMoneyMapper.updateTMoney(tMoney);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除支出或收入详情
|
||||
*
|
||||
* @param ids 需要删除的支出或收入详情主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTMoneyByIds(Long[] ids)
|
||||
{
|
||||
return tMoneyMapper.deleteTMoneyByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除支出或收入详情信息
|
||||
*
|
||||
* @param id 支出或收入详情主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTMoneyById(Long id)
|
||||
{
|
||||
return tMoneyMapper.deleteTMoneyById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
package com.ruoyi.xjt.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.xjt.mapper.TOrderMapper;
|
||||
import com.ruoyi.xjt.domain.TOrder;
|
||||
import com.ruoyi.xjt.service.ITOrderService;
|
||||
|
||||
/**
|
||||
* 缴费订单Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2022-04-01
|
||||
*/
|
||||
@Service
|
||||
public class TOrderServiceImpl implements ITOrderService
|
||||
{
|
||||
@Autowired
|
||||
private TOrderMapper tOrderMapper;
|
||||
|
||||
/**
|
||||
* 查询缴费订单
|
||||
*
|
||||
* @param id 缴费订单主键
|
||||
* @return 缴费订单
|
||||
*/
|
||||
@Override
|
||||
public TOrder selectTOrderById(Long id)
|
||||
{
|
||||
return tOrderMapper.selectTOrderById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询缴费订单列表
|
||||
*
|
||||
* @param tOrder 缴费订单
|
||||
* @return 缴费订单
|
||||
*/
|
||||
@Override
|
||||
public List<TOrder> selectTOrderList(TOrder tOrder)
|
||||
{
|
||||
return tOrderMapper.selectTOrderList(tOrder);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增缴费订单
|
||||
*
|
||||
* @param tOrder 缴费订单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertTOrder(TOrder tOrder)
|
||||
{
|
||||
return tOrderMapper.insertTOrder(tOrder);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改缴费订单
|
||||
*
|
||||
* @param tOrder 缴费订单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateTOrder(TOrder tOrder)
|
||||
{
|
||||
return tOrderMapper.updateTOrder(tOrder);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除缴费订单
|
||||
*
|
||||
* @param ids 需要删除的缴费订单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTOrderByIds(Long[] ids)
|
||||
{
|
||||
return tOrderMapper.deleteTOrderByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除缴费订单信息
|
||||
*
|
||||
* @param id 缴费订单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTOrderById(Long id)
|
||||
{
|
||||
return tOrderMapper.deleteTOrderById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
Spring Boot Version: ${spring-boot.version}
|
||||
Spring Application Name: ${spring.application.name}
|
||||
_ _
|
||||
(_) | |
|
||||
_ __ _ _ ___ _ _ _ ______ ___ _ _ ___ | |_ ___ _ __ ___
|
||||
| '__|| | | | / _ \ | | | || ||______|/ __|| | | |/ __|| __| / _ \| '_ ` _ \
|
||||
| | | |_| || (_) || |_| || | \__ \| |_| |\__ \| |_ | __/| | | | | |
|
||||
|_| \__,_| \___/ \__, ||_| |___/ \__, ||___/ \__| \___||_| |_| |_|
|
||||
__/ | __/ |
|
||||
|___/ |___/
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 9208
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: ruoyi-xjt
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||
<!-- 日志存放路径 -->
|
||||
<property name="log.path" value="logs/ruoyi-xjt" />
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||
|
||||
<!-- 控制台输出 -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 系统日志输出 -->
|
||||
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/info.log</file>
|
||||
<!-- 循环政策:基于时间创建日志文件 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 日志文件名格式 -->
|
||||
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 过滤的级别 -->
|
||||
<level>INFO</level>
|
||||
<!-- 匹配时的操作:接收(记录) -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/error.log</file>
|
||||
<!-- 循环政策:基于时间创建日志文件 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 日志文件名格式 -->
|
||||
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 过滤的级别 -->
|
||||
<level>ERROR</level>
|
||||
<!-- 匹配时的操作:接收(记录) -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<!-- 系统模块日志级别控制 -->
|
||||
<logger name="com.ruoyi" level="info" />
|
||||
<!-- Spring日志级别控制 -->
|
||||
<logger name="org.springframework" level="warn" />
|
||||
|
||||
<root level="info">
|
||||
<appender-ref ref="console" />
|
||||
</root>
|
||||
|
||||
<!--系统操作日志-->
|
||||
<root level="info">
|
||||
<appender-ref ref="file_info" />
|
||||
<appender-ref ref="file_error" />
|
||||
</root>
|
||||
</configuration>
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
<?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.xjt.mapper.TMoneyMapper">
|
||||
|
||||
<resultMap type="TMoney" id="TMoneyResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userid" column="userid" />
|
||||
<result property="money" column="money" />
|
||||
<result property="tradetype" column="tradetype" />
|
||||
<result property="tradedate" column="tradedate" />
|
||||
<result property="type" column="type" />
|
||||
<result property="note" column="note" />
|
||||
<result property="leftmoney" column="leftmoney" />
|
||||
<result property="orderid" column="orderid" />
|
||||
<result property="state" column="state" />
|
||||
<result property="bbsmallorderid" column="bbsmallorderid" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTMoneyVo">
|
||||
select id, userid, money, tradetype, tradedate, type, note, leftmoney, orderid, state, bbsmallorderid from t_money
|
||||
</sql>
|
||||
|
||||
<select id="selectTMoneyList" parameterType="TMoney" resultMap="TMoneyResult">
|
||||
<include refid="selectTMoneyVo"/>
|
||||
<where>
|
||||
<if test="userid != null "> and userid = #{userid}</if>
|
||||
<if test="money != null "> and money = #{money}</if>
|
||||
<if test="tradetype != null "> and tradetype = #{tradetype}</if>
|
||||
<if test="tradedate != null "> and tradedate = #{tradedate}</if>
|
||||
<if test="type != null "> and type = #{type}</if>
|
||||
<if test="note != null and note != ''"> and note = #{note}</if>
|
||||
<if test="leftmoney != null "> and leftmoney = #{leftmoney}</if>
|
||||
<if test="orderid != null "> and orderid = #{orderid}</if>
|
||||
<if test="state != null "> and state = #{state}</if>
|
||||
<if test="bbsmallorderid != null "> and bbsmallorderid = #{bbsmallorderid}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTMoneyById" parameterType="Long" resultMap="TMoneyResult">
|
||||
<include refid="selectTMoneyVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTMoney" parameterType="TMoney" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into t_money
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userid != null">userid,</if>
|
||||
<if test="money != null">money,</if>
|
||||
<if test="tradetype != null">tradetype,</if>
|
||||
<if test="tradedate != null">tradedate,</if>
|
||||
<if test="type != null">type,</if>
|
||||
<if test="note != null">note,</if>
|
||||
<if test="leftmoney != null">leftmoney,</if>
|
||||
<if test="orderid != null">orderid,</if>
|
||||
<if test="state != null">state,</if>
|
||||
<if test="bbsmallorderid != null">bbsmallorderid,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userid != null">#{userid},</if>
|
||||
<if test="money != null">#{money},</if>
|
||||
<if test="tradetype != null">#{tradetype},</if>
|
||||
<if test="tradedate != null">#{tradedate},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="note != null">#{note},</if>
|
||||
<if test="leftmoney != null">#{leftmoney},</if>
|
||||
<if test="orderid != null">#{orderid},</if>
|
||||
<if test="state != null">#{state},</if>
|
||||
<if test="bbsmallorderid != null">#{bbsmallorderid},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTMoney" parameterType="TMoney">
|
||||
update t_money
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userid != null">userid = #{userid},</if>
|
||||
<if test="money != null">money = #{money},</if>
|
||||
<if test="tradetype != null">tradetype = #{tradetype},</if>
|
||||
<if test="tradedate != null">tradedate = #{tradedate},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
<if test="note != null">note = #{note},</if>
|
||||
<if test="leftmoney != null">leftmoney = #{leftmoney},</if>
|
||||
<if test="orderid != null">orderid = #{orderid},</if>
|
||||
<if test="state != null">state = #{state},</if>
|
||||
<if test="bbsmallorderid != null">bbsmallorderid = #{bbsmallorderid},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTMoneyById" parameterType="Long">
|
||||
delete from t_money where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTMoneyByIds" parameterType="String">
|
||||
delete from t_money where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,176 @@
|
|||
<?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.xjt.mapper.TOrderMapper">
|
||||
|
||||
<resultMap type="TOrder" id="TOrderResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="companyid" column="companyid" />
|
||||
<result property="khuserid" column="khuserid" />
|
||||
<result property="fwsuserid" column="fwsuserid" />
|
||||
<result property="money" column="money" />
|
||||
<result property="yuepay" column="yuepay" />
|
||||
<result property="fundpay" column="fundpay" />
|
||||
<result property="wxorcftpay" column="wxorcftpay" />
|
||||
<result property="tradetype" column="tradetype" />
|
||||
<result property="ordernum" column="ordernum" />
|
||||
<result property="paytime" column="paytime" />
|
||||
<result property="createdate" column="createdate" />
|
||||
<result property="paytype" column="paytype" />
|
||||
<result property="paystate" column="paystate" />
|
||||
<result property="tradeNo" column="trade_no" />
|
||||
<result property="mchId" column="mch_id" />
|
||||
<result property="tradeStatus" column="trade_status" />
|
||||
<result property="cuid" column="cuid" />
|
||||
<result property="cumoney" column="cumoney" />
|
||||
<result property="refundAuditUserid" column="refund_audit_userid" />
|
||||
<result property="refundMoney" column="refund_money" />
|
||||
<result property="refundNote" column="refund_note" />
|
||||
<result property="refundNo" column="refund_no" />
|
||||
<result property="refundState" column="refund_state" />
|
||||
<result property="refundTime" column="refund_time" />
|
||||
<result property="refundSuccesstime" column="refund_successtime" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTOrderVo">
|
||||
select id, companyid, khuserid, fwsuserid, money, yuepay, fundpay, wxorcftpay, tradetype, ordernum, paytime, createdate, paytype, paystate, trade_no, mch_id, trade_status, cuid, cumoney, refund_audit_userid, refund_money, refund_note, refund_no, refund_state, refund_time, refund_successtime from t_order
|
||||
</sql>
|
||||
|
||||
<select id="selectTOrderList" parameterType="TOrder" resultMap="TOrderResult">
|
||||
<include refid="selectTOrderVo"/>
|
||||
<where>
|
||||
<if test="companyid != null "> and companyid = #{companyid}</if>
|
||||
<if test="khuserid != null "> and khuserid = #{khuserid}</if>
|
||||
<if test="fwsuserid != null "> and fwsuserid = #{fwsuserid}</if>
|
||||
<if test="money != null "> and money = #{money}</if>
|
||||
<if test="yuepay != null "> and yuepay = #{yuepay}</if>
|
||||
<if test="fundpay != null "> and fundpay = #{fundpay}</if>
|
||||
<if test="wxorcftpay != null "> and wxorcftpay = #{wxorcftpay}</if>
|
||||
<if test="tradetype != null "> and tradetype = #{tradetype}</if>
|
||||
<if test="ordernum != null and ordernum != ''"> and ordernum = #{ordernum}</if>
|
||||
<if test="paytime != null "> and paytime = #{paytime}</if>
|
||||
<if test="createdate != null "> and createdate = #{createdate}</if>
|
||||
<if test="paytype != null "> and paytype = #{paytype}</if>
|
||||
<if test="paystate != null "> and paystate = #{paystate}</if>
|
||||
<if test="tradeNo != null and tradeNo != ''"> and trade_no = #{tradeNo}</if>
|
||||
<if test="mchId != null and mchId != ''"> and mch_id = #{mchId}</if>
|
||||
<if test="tradeStatus != null and tradeStatus != ''"> and trade_status = #{tradeStatus}</if>
|
||||
<if test="cuid != null "> and cuid = #{cuid}</if>
|
||||
<if test="cumoney != null "> and cumoney = #{cumoney}</if>
|
||||
<if test="refundAuditUserid != null "> and refund_audit_userid = #{refundAuditUserid}</if>
|
||||
<if test="refundMoney != null "> and refund_money = #{refundMoney}</if>
|
||||
<if test="refundNote != null and refundNote != ''"> and refund_note = #{refundNote}</if>
|
||||
<if test="refundNo != null and refundNo != ''"> and refund_no = #{refundNo}</if>
|
||||
<if test="refundState != null "> and refund_state = #{refundState}</if>
|
||||
<if test="refundTime != null "> and refund_time = #{refundTime}</if>
|
||||
<if test="refundSuccesstime != null "> and refund_successtime = #{refundSuccesstime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTOrderById" parameterType="Long" resultMap="TOrderResult">
|
||||
<include refid="selectTOrderVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTOrder" parameterType="TOrder" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into t_order
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="companyid != null">companyid,</if>
|
||||
<if test="khuserid != null">khuserid,</if>
|
||||
<if test="fwsuserid != null">fwsuserid,</if>
|
||||
<if test="money != null">money,</if>
|
||||
<if test="yuepay != null">yuepay,</if>
|
||||
<if test="fundpay != null">fundpay,</if>
|
||||
<if test="wxorcftpay != null">wxorcftpay,</if>
|
||||
<if test="tradetype != null">tradetype,</if>
|
||||
<if test="ordernum != null and ordernum != ''">ordernum,</if>
|
||||
<if test="paytime != null">paytime,</if>
|
||||
<if test="createdate != null">createdate,</if>
|
||||
<if test="paytype != null">paytype,</if>
|
||||
<if test="paystate != null">paystate,</if>
|
||||
<if test="tradeNo != null">trade_no,</if>
|
||||
<if test="mchId != null">mch_id,</if>
|
||||
<if test="tradeStatus != null">trade_status,</if>
|
||||
<if test="cuid != null">cuid,</if>
|
||||
<if test="cumoney != null">cumoney,</if>
|
||||
<if test="refundAuditUserid != null">refund_audit_userid,</if>
|
||||
<if test="refundMoney != null">refund_money,</if>
|
||||
<if test="refundNote != null">refund_note,</if>
|
||||
<if test="refundNo != null">refund_no,</if>
|
||||
<if test="refundState != null">refund_state,</if>
|
||||
<if test="refundTime != null">refund_time,</if>
|
||||
<if test="refundSuccesstime != null">refund_successtime,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="companyid != null">#{companyid},</if>
|
||||
<if test="khuserid != null">#{khuserid},</if>
|
||||
<if test="fwsuserid != null">#{fwsuserid},</if>
|
||||
<if test="money != null">#{money},</if>
|
||||
<if test="yuepay != null">#{yuepay},</if>
|
||||
<if test="fundpay != null">#{fundpay},</if>
|
||||
<if test="wxorcftpay != null">#{wxorcftpay},</if>
|
||||
<if test="tradetype != null">#{tradetype},</if>
|
||||
<if test="ordernum != null and ordernum != ''">#{ordernum},</if>
|
||||
<if test="paytime != null">#{paytime},</if>
|
||||
<if test="createdate != null">#{createdate},</if>
|
||||
<if test="paytype != null">#{paytype},</if>
|
||||
<if test="paystate != null">#{paystate},</if>
|
||||
<if test="tradeNo != null">#{tradeNo},</if>
|
||||
<if test="mchId != null">#{mchId},</if>
|
||||
<if test="tradeStatus != null">#{tradeStatus},</if>
|
||||
<if test="cuid != null">#{cuid},</if>
|
||||
<if test="cumoney != null">#{cumoney},</if>
|
||||
<if test="refundAuditUserid != null">#{refundAuditUserid},</if>
|
||||
<if test="refundMoney != null">#{refundMoney},</if>
|
||||
<if test="refundNote != null">#{refundNote},</if>
|
||||
<if test="refundNo != null">#{refundNo},</if>
|
||||
<if test="refundState != null">#{refundState},</if>
|
||||
<if test="refundTime != null">#{refundTime},</if>
|
||||
<if test="refundSuccesstime != null">#{refundSuccesstime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTOrder" parameterType="TOrder">
|
||||
update t_order
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="companyid != null">companyid = #{companyid},</if>
|
||||
<if test="khuserid != null">khuserid = #{khuserid},</if>
|
||||
<if test="fwsuserid != null">fwsuserid = #{fwsuserid},</if>
|
||||
<if test="money != null">money = #{money},</if>
|
||||
<if test="yuepay != null">yuepay = #{yuepay},</if>
|
||||
<if test="fundpay != null">fundpay = #{fundpay},</if>
|
||||
<if test="wxorcftpay != null">wxorcftpay = #{wxorcftpay},</if>
|
||||
<if test="tradetype != null">tradetype = #{tradetype},</if>
|
||||
<if test="ordernum != null and ordernum != ''">ordernum = #{ordernum},</if>
|
||||
<if test="paytime != null">paytime = #{paytime},</if>
|
||||
<if test="createdate != null">createdate = #{createdate},</if>
|
||||
<if test="paytype != null">paytype = #{paytype},</if>
|
||||
<if test="paystate != null">paystate = #{paystate},</if>
|
||||
<if test="tradeNo != null">trade_no = #{tradeNo},</if>
|
||||
<if test="mchId != null">mch_id = #{mchId},</if>
|
||||
<if test="tradeStatus != null">trade_status = #{tradeStatus},</if>
|
||||
<if test="cuid != null">cuid = #{cuid},</if>
|
||||
<if test="cumoney != null">cumoney = #{cumoney},</if>
|
||||
<if test="refundAuditUserid != null">refund_audit_userid = #{refundAuditUserid},</if>
|
||||
<if test="refundMoney != null">refund_money = #{refundMoney},</if>
|
||||
<if test="refundNote != null">refund_note = #{refundNote},</if>
|
||||
<if test="refundNo != null">refund_no = #{refundNo},</if>
|
||||
<if test="refundState != null">refund_state = #{refundState},</if>
|
||||
<if test="refundTime != null">refund_time = #{refundTime},</if>
|
||||
<if test="refundSuccesstime != null">refund_successtime = #{refundSuccesstime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTOrderById" parameterType="Long">
|
||||
delete from t_order where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTOrderByIds" parameterType="String">
|
||||
delete from t_order where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询支出或收入详情列表
|
||||
export function listMoney(query) {
|
||||
return request({
|
||||
url: '/xjt/money/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询支出或收入详情详细
|
||||
export function getMoney(id) {
|
||||
return request({
|
||||
url: '/xjt/money/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增支出或收入详情
|
||||
export function addMoney(data) {
|
||||
return request({
|
||||
url: '/xjt/money',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改支出或收入详情
|
||||
export function updateMoney(data) {
|
||||
return request({
|
||||
url: '/xjt/money',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除支出或收入详情
|
||||
export function delMoney(id) {
|
||||
return request({
|
||||
url: '/xjt/money/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询缴费订单列表
|
||||
export function listOrder(query) {
|
||||
return request({
|
||||
url: '/xjt/order/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询缴费订单详细
|
||||
export function getOrder(id) {
|
||||
return request({
|
||||
url: '/xjt/order/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增缴费订单
|
||||
export function addOrder(data) {
|
||||
return request({
|
||||
url: '/xjt/order',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改缴费订单
|
||||
export function updateOrder(data) {
|
||||
return request({
|
||||
url: '/xjt/order',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除缴费订单
|
||||
export function delOrder(id) {
|
||||
return request({
|
||||
url: '/xjt/order/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,365 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="对应用户" prop="userid">
|
||||
<el-input
|
||||
v-model="queryParams.userid"
|
||||
placeholder="请输入对应用户"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="金额" prop="money">
|
||||
<el-input
|
||||
v-model="queryParams.money"
|
||||
placeholder="请输入金额"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="交易时间" prop="tradedate">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.tradedate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择交易时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="处理后剩余金额" prop="leftmoney">
|
||||
<el-input
|
||||
v-model="queryParams.leftmoney"
|
||||
placeholder="请输入处理后剩余金额"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单id" prop="orderid">
|
||||
<el-input
|
||||
v-model="queryParams.orderid"
|
||||
placeholder="请输入订单id"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="状态1=正常,2=删除" prop="state">
|
||||
<el-input
|
||||
v-model="queryParams.state"
|
||||
placeholder="请输入状态1=正常,2=删除"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="bbsmall t_orderid表 id" prop="bbsmallorderid">
|
||||
<el-input
|
||||
v-model="queryParams.bbsmallorderid"
|
||||
placeholder="请输入bbsmall t_orderid表 id"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['xjt:money:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['xjt:money:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['xjt:money:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['xjt:money:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="moneyList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="${comment}" align="center" prop="id" />
|
||||
<el-table-column label="对应用户" align="center" prop="userid" />
|
||||
<el-table-column label="金额" align="center" prop="money" />
|
||||
<el-table-column label="交易类型 2:保养 4:进货 7:救援 10:维修厂营销卡 40:后台操作 50:提现 60:牛牛币返利 70:商城服务单 80:聚乐贝兑换 0:充值" align="center" prop="tradetype" />
|
||||
<el-table-column label="交易时间" align="center" prop="tradedate" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.tradedate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="获取与扣除1=获取,2=扣除 " align="center" prop="type" />
|
||||
<el-table-column label="备注" align="center" prop="note" />
|
||||
<el-table-column label="处理后剩余金额" align="center" prop="leftmoney" />
|
||||
<el-table-column label="订单id" align="center" prop="orderid" />
|
||||
<el-table-column label="状态1=正常,2=删除" align="center" prop="state" />
|
||||
<el-table-column label="bbsmall t_orderid表 id" align="center" prop="bbsmallorderid" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['xjt:money:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['xjt:money:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改支出或收入详情对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="对应用户" prop="userid">
|
||||
<el-input v-model="form.userid" placeholder="请输入对应用户" />
|
||||
</el-form-item>
|
||||
<el-form-item label="金额" prop="money">
|
||||
<el-input v-model="form.money" placeholder="请输入金额" />
|
||||
</el-form-item>
|
||||
<el-form-item label="交易时间" prop="tradedate">
|
||||
<el-date-picker clearable
|
||||
v-model="form.tradedate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择交易时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="note">
|
||||
<el-input v-model="form.note" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="处理后剩余金额" prop="leftmoney">
|
||||
<el-input v-model="form.leftmoney" placeholder="请输入处理后剩余金额" />
|
||||
</el-form-item>
|
||||
<el-form-item label="订单id" prop="orderid">
|
||||
<el-input v-model="form.orderid" placeholder="请输入订单id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="状态1=正常,2=删除" prop="state">
|
||||
<el-input v-model="form.state" placeholder="请输入状态1=正常,2=删除" />
|
||||
</el-form-item>
|
||||
<el-form-item label="bbsmall t_orderid表 id" prop="bbsmallorderid">
|
||||
<el-input v-model="form.bbsmallorderid" placeholder="请输入bbsmall t_orderid表 id" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listMoney, getMoney, delMoney, addMoney, updateMoney } from "@/api/xjt/money";
|
||||
|
||||
export default {
|
||||
name: "Money",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 支出或收入详情表格数据
|
||||
moneyList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
userid: null,
|
||||
money: null,
|
||||
tradetype: null,
|
||||
tradedate: null,
|
||||
type: null,
|
||||
note: null,
|
||||
leftmoney: null,
|
||||
orderid: null,
|
||||
state: null,
|
||||
bbsmallorderid: null
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
userid: [
|
||||
{ required: true, message: "对应用户不能为空", trigger: "blur" }
|
||||
],
|
||||
money: [
|
||||
{ required: true, message: "金额不能为空", trigger: "blur" }
|
||||
],
|
||||
tradetype: [
|
||||
{ required: true, message: "交易类型 2:保养 4:进货 7:救援 10:维修厂营销卡 40:后台操作 50:提现 60:牛牛币返利 70:商城服务单 80:聚乐贝兑换 0:充值不能为空", trigger: "change" }
|
||||
],
|
||||
tradedate: [
|
||||
{ required: true, message: "交易时间不能为空", trigger: "blur" }
|
||||
],
|
||||
type: [
|
||||
{ required: true, message: "获取与扣除1=获取,2=扣除 不能为空", trigger: "change" }
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询支出或收入详情列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listMoney(this.queryParams).then(response => {
|
||||
this.moneyList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
userid: null,
|
||||
money: null,
|
||||
tradetype: null,
|
||||
tradedate: null,
|
||||
type: null,
|
||||
note: null,
|
||||
leftmoney: null,
|
||||
orderid: null,
|
||||
state: null,
|
||||
bbsmallorderid: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加支出或收入详情";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getMoney(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改支出或收入详情";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateMoney(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addMoney(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除支出或收入详情编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delMoney(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('xjt/money/export', {
|
||||
...this.queryParams
|
||||
}, `money_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
@ -0,0 +1,608 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="业务发生所属公司" prop="companyid">
|
||||
<el-input
|
||||
v-model="queryParams.companyid"
|
||||
placeholder="请输入业务发生所属公司"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="对应用户" prop="khuserid">
|
||||
<el-input
|
||||
v-model="queryParams.khuserid"
|
||||
placeholder="请输入对应用户"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="服务商用户id" prop="fwsuserid">
|
||||
<el-input
|
||||
v-model="queryParams.fwsuserid"
|
||||
placeholder="请输入服务商用户id"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单总额" prop="money">
|
||||
<el-input
|
||||
v-model="queryParams.money"
|
||||
placeholder="请输入订单总额"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="其中使用余额支付多少元" prop="yuepay">
|
||||
<el-input
|
||||
v-model="queryParams.yuepay"
|
||||
placeholder="请输入其中使用余额支付多少元"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="其中使用保障基金支付多少元" prop="fundpay">
|
||||
<el-input
|
||||
v-model="queryParams.fundpay"
|
||||
placeholder="请输入其中使用保障基金支付多少元"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="其中使用微信活支付宝支付多少元" prop="wxorcftpay">
|
||||
<el-input
|
||||
v-model="queryParams.wxorcftpay"
|
||||
placeholder="请输入其中使用微信活支付宝支付多少元"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单号" prop="ordernum">
|
||||
<el-input
|
||||
v-model="queryParams.ordernum"
|
||||
placeholder="请输入订单号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="支付时间" prop="paytime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.paytime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择支付时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单时间" prop="createdate">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.createdate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择订单时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="支付状态 0未支付 1已支付" prop="paystate">
|
||||
<el-input
|
||||
v-model="queryParams.paystate"
|
||||
placeholder="请输入支付状态 0未支付 1已支付"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="微信或支付宝返回的交易号" prop="tradeNo">
|
||||
<el-input
|
||||
v-model="queryParams.tradeNo"
|
||||
placeholder="请输入微信或支付宝返回的交易号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="商户号" prop="mchId">
|
||||
<el-input
|
||||
v-model="queryParams.mchId"
|
||||
placeholder="请输入商户号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="优惠价 用户关联表id" prop="cuid">
|
||||
<el-input
|
||||
v-model="queryParams.cuid"
|
||||
placeholder="请输入优惠价 用户关联表id"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="使用优惠价额度" prop="cumoney">
|
||||
<el-input
|
||||
v-model="queryParams.cumoney"
|
||||
placeholder="请输入使用优惠价额度"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="退款审核人id" prop="refundAuditUserid">
|
||||
<el-input
|
||||
v-model="queryParams.refundAuditUserid"
|
||||
placeholder="请输入退款审核人id"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="退款金额" prop="refundMoney">
|
||||
<el-input
|
||||
v-model="queryParams.refundMoney"
|
||||
placeholder="请输入退款金额"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="退款备注" prop="refundNote">
|
||||
<el-input
|
||||
v-model="queryParams.refundNote"
|
||||
placeholder="请输入退款备注"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="退款单号" prop="refundNo">
|
||||
<el-input
|
||||
v-model="queryParams.refundNo"
|
||||
placeholder="请输入退款单号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="退款状态 1:已成功提交退款申请 2:退款成功 3:退款失败" prop="refundState">
|
||||
<el-input
|
||||
v-model="queryParams.refundState"
|
||||
placeholder="请输入退款状态 1:已成功提交退款申请 2:退款成功 3:退款失败"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="退款时间" prop="refundTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.refundTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择退款时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="退款微信返回时间" prop="refundSuccesstime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.refundSuccesstime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择退款微信返回时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['xjt:order:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['xjt:order:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['xjt:order:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['xjt:order:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="orderList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="${comment}" align="center" prop="id" />
|
||||
<el-table-column label="业务发生所属公司" align="center" prop="companyid" />
|
||||
<el-table-column label="对应用户" align="center" prop="khuserid" />
|
||||
<el-table-column label="服务商用户id" align="center" prop="fwsuserid" />
|
||||
<el-table-column label="订单总额" align="center" prop="money" />
|
||||
<el-table-column label="其中使用余额支付多少元" align="center" prop="yuepay" />
|
||||
<el-table-column label="其中使用保障基金支付多少元" align="center" prop="fundpay" />
|
||||
<el-table-column label="其中使用微信活支付宝支付多少元" align="center" prop="wxorcftpay" />
|
||||
<el-table-column label="交易类型" align="center" prop="tradetype" />
|
||||
<el-table-column label="订单号" align="center" prop="ordernum" />
|
||||
<el-table-column label="支付时间" align="center" prop="paytime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.paytime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="订单时间" align="center" prop="createdate" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.createdate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="支付类型 0=余额支付 1=微信支付,2=支付宝支付 ,3=保障金支付 4:现金支付 10:余额+微信 20:余额+支付宝 13:保障金+微信 23=保障金+支付宝 30: 保障金+余额支付 130:保障金+微信+余额支付 230=保障金+支付宝+余额支付 43:保障基金+现金支付" align="center" prop="paytype" />
|
||||
<el-table-column label="支付状态 0未支付 1已支付" align="center" prop="paystate" />
|
||||
<el-table-column label="微信或支付宝返回的交易号" align="center" prop="tradeNo" />
|
||||
<el-table-column label="商户号" align="center" prop="mchId" />
|
||||
<el-table-column label="微信或支付宝返回的交易状态" align="center" prop="tradeStatus" />
|
||||
<el-table-column label="优惠价 用户关联表id" align="center" prop="cuid" />
|
||||
<el-table-column label="使用优惠价额度" align="center" prop="cumoney" />
|
||||
<el-table-column label="退款审核人id" align="center" prop="refundAuditUserid" />
|
||||
<el-table-column label="退款金额" align="center" prop="refundMoney" />
|
||||
<el-table-column label="退款备注" align="center" prop="refundNote" />
|
||||
<el-table-column label="退款单号" align="center" prop="refundNo" />
|
||||
<el-table-column label="退款状态 1:已成功提交退款申请 2:退款成功 3:退款失败" align="center" prop="refundState" />
|
||||
<el-table-column label="退款时间" align="center" prop="refundTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.refundTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="退款微信返回时间" align="center" prop="refundSuccesstime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.refundSuccesstime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['xjt:order:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['xjt:order:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改缴费订单对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="业务发生所属公司" prop="companyid">
|
||||
<el-input v-model="form.companyid" placeholder="请输入业务发生所属公司" />
|
||||
</el-form-item>
|
||||
<el-form-item label="对应用户" prop="khuserid">
|
||||
<el-input v-model="form.khuserid" placeholder="请输入对应用户" />
|
||||
</el-form-item>
|
||||
<el-form-item label="服务商用户id" prop="fwsuserid">
|
||||
<el-input v-model="form.fwsuserid" placeholder="请输入服务商用户id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="订单总额" prop="money">
|
||||
<el-input v-model="form.money" placeholder="请输入订单总额" />
|
||||
</el-form-item>
|
||||
<el-form-item label="其中使用余额支付多少元" prop="yuepay">
|
||||
<el-input v-model="form.yuepay" placeholder="请输入其中使用余额支付多少元" />
|
||||
</el-form-item>
|
||||
<el-form-item label="其中使用保障基金支付多少元" prop="fundpay">
|
||||
<el-input v-model="form.fundpay" placeholder="请输入其中使用保障基金支付多少元" />
|
||||
</el-form-item>
|
||||
<el-form-item label="其中使用微信活支付宝支付多少元" prop="wxorcftpay">
|
||||
<el-input v-model="form.wxorcftpay" placeholder="请输入其中使用微信活支付宝支付多少元" />
|
||||
</el-form-item>
|
||||
<el-form-item label="订单号" prop="ordernum">
|
||||
<el-input v-model="form.ordernum" placeholder="请输入订单号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="支付时间" prop="paytime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.paytime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择支付时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="订单时间" prop="createdate">
|
||||
<el-date-picker clearable
|
||||
v-model="form.createdate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择订单时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="支付状态 0未支付 1已支付" prop="paystate">
|
||||
<el-input v-model="form.paystate" placeholder="请输入支付状态 0未支付 1已支付" />
|
||||
</el-form-item>
|
||||
<el-form-item label="微信或支付宝返回的交易号" prop="tradeNo">
|
||||
<el-input v-model="form.tradeNo" placeholder="请输入微信或支付宝返回的交易号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="商户号" prop="mchId">
|
||||
<el-input v-model="form.mchId" placeholder="请输入商户号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="优惠价 用户关联表id" prop="cuid">
|
||||
<el-input v-model="form.cuid" placeholder="请输入优惠价 用户关联表id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="使用优惠价额度" prop="cumoney">
|
||||
<el-input v-model="form.cumoney" placeholder="请输入使用优惠价额度" />
|
||||
</el-form-item>
|
||||
<el-form-item label="退款审核人id" prop="refundAuditUserid">
|
||||
<el-input v-model="form.refundAuditUserid" placeholder="请输入退款审核人id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="退款金额" prop="refundMoney">
|
||||
<el-input v-model="form.refundMoney" placeholder="请输入退款金额" />
|
||||
</el-form-item>
|
||||
<el-form-item label="退款备注" prop="refundNote">
|
||||
<el-input v-model="form.refundNote" placeholder="请输入退款备注" />
|
||||
</el-form-item>
|
||||
<el-form-item label="退款单号" prop="refundNo">
|
||||
<el-input v-model="form.refundNo" placeholder="请输入退款单号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="退款状态 1:已成功提交退款申请 2:退款成功 3:退款失败" prop="refundState">
|
||||
<el-input v-model="form.refundState" placeholder="请输入退款状态 1:已成功提交退款申请 2:退款成功 3:退款失败" />
|
||||
</el-form-item>
|
||||
<el-form-item label="退款时间" prop="refundTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.refundTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择退款时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="退款微信返回时间" prop="refundSuccesstime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.refundSuccesstime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择退款微信返回时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listOrder, getOrder, delOrder, addOrder, updateOrder } from "@/api/xjt/order";
|
||||
|
||||
export default {
|
||||
name: "Order",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 缴费订单表格数据
|
||||
orderList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
companyid: null,
|
||||
khuserid: null,
|
||||
fwsuserid: null,
|
||||
money: null,
|
||||
yuepay: null,
|
||||
fundpay: null,
|
||||
wxorcftpay: null,
|
||||
tradetype: null,
|
||||
ordernum: null,
|
||||
paytime: null,
|
||||
createdate: null,
|
||||
paytype: null,
|
||||
paystate: null,
|
||||
tradeNo: null,
|
||||
mchId: null,
|
||||
tradeStatus: null,
|
||||
cuid: null,
|
||||
cumoney: null,
|
||||
refundAuditUserid: null,
|
||||
refundMoney: null,
|
||||
refundNote: null,
|
||||
refundNo: null,
|
||||
refundState: null,
|
||||
refundTime: null,
|
||||
refundSuccesstime: null
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
khuserid: [
|
||||
{ required: true, message: "对应用户不能为空", trigger: "blur" }
|
||||
],
|
||||
fwsuserid: [
|
||||
{ required: true, message: "服务商用户id不能为空", trigger: "blur" }
|
||||
],
|
||||
money: [
|
||||
{ required: true, message: "订单总额不能为空", trigger: "blur" }
|
||||
],
|
||||
tradetype: [
|
||||
{ required: true, message: "交易类型不能为空", trigger: "change" }
|
||||
],
|
||||
ordernum: [
|
||||
{ required: true, message: "订单号不能为空", trigger: "blur" }
|
||||
],
|
||||
createdate: [
|
||||
{ required: true, message: "订单时间不能为空", trigger: "blur" }
|
||||
],
|
||||
paytype: [
|
||||
{ required: true, message: "支付类型 0=余额支付 1=微信支付,2=支付宝支付 ,3=保障金支付 4:现金支付 10:余额+微信 20:余额+支付宝 13:保障金+微信 23=保障金+支付宝 30: 保障金+余额支付 130:保障金+微信+余额支付 230=保障金+支付宝+余额支付 43:保障基金+现金支付不能为空", trigger: "change" }
|
||||
],
|
||||
paystate: [
|
||||
{ required: true, message: "支付状态 0未支付 1已支付不能为空", trigger: "blur" }
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询缴费订单列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listOrder(this.queryParams).then(response => {
|
||||
this.orderList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
companyid: null,
|
||||
khuserid: null,
|
||||
fwsuserid: null,
|
||||
money: null,
|
||||
yuepay: null,
|
||||
fundpay: null,
|
||||
wxorcftpay: null,
|
||||
tradetype: null,
|
||||
ordernum: null,
|
||||
paytime: null,
|
||||
createdate: null,
|
||||
paytype: null,
|
||||
paystate: null,
|
||||
tradeNo: null,
|
||||
mchId: null,
|
||||
tradeStatus: "0",
|
||||
cuid: null,
|
||||
cumoney: null,
|
||||
refundAuditUserid: null,
|
||||
refundMoney: null,
|
||||
refundNote: null,
|
||||
refundNo: null,
|
||||
refundState: null,
|
||||
refundTime: null,
|
||||
refundSuccesstime: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加缴费订单";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getOrder(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改缴费订单";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateOrder(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addOrder(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除缴费订单编号为"' + ids + '"的数据项?').then(function() {
|
||||
return delOrder(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('xjt/order/export', {
|
||||
...this.queryParams
|
||||
}, `order_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Loading…
Reference in New Issue