服务次数等等接口
This commit is contained in:
parent
20879c29c4
commit
85d39c12a7
|
|
@ -1,6 +1,9 @@
|
||||||
package com.ruoyi.web.controller.system;
|
package com.ruoyi.web.controller.system;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.ruoyi.system.domain.TbUser;
|
||||||
|
import com.ruoyi.system.service.ITbUserService;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
|
@ -34,6 +37,9 @@ public class TbUserMatchController extends BaseController
|
||||||
@Autowired
|
@Autowired
|
||||||
private ITbUserMatchService tbUserMatchService;
|
private ITbUserMatchService tbUserMatchService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ITbUserService tbUserService;
|
||||||
|
|
||||||
@RequiresPermissions("system:match:view")
|
@RequiresPermissions("system:match:view")
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
public String match()
|
public String match()
|
||||||
|
|
@ -51,6 +57,12 @@ public class TbUserMatchController extends BaseController
|
||||||
{
|
{
|
||||||
startPage();
|
startPage();
|
||||||
List<TbUserMatch> list = tbUserMatchService.selectTbUserMatchList(tbUserMatch);
|
List<TbUserMatch> list = tbUserMatchService.selectTbUserMatchList(tbUserMatch);
|
||||||
|
list.forEach(model->{
|
||||||
|
TbUser user = tbUserService.getById(model.getUserId());
|
||||||
|
if(user != null){
|
||||||
|
model.setMobile(user.getMobile());
|
||||||
|
}
|
||||||
|
});
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@ import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import com.ruoyi.system.domain.TbUser;
|
||||||
|
import com.ruoyi.system.service.ITbUserService;
|
||||||
import org.apache.commons.lang3.exception.ExceptionUtils;
|
import org.apache.commons.lang3.exception.ExceptionUtils;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
@ -38,6 +40,9 @@ public class TbUserSingleController extends BaseController
|
||||||
@Autowired
|
@Autowired
|
||||||
private ITbUserSingleService tbUserSingleService;
|
private ITbUserSingleService tbUserSingleService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ITbUserService tbUserService;
|
||||||
|
|
||||||
@RequiresPermissions("system:single:view")
|
@RequiresPermissions("system:single:view")
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
public String single()
|
public String single()
|
||||||
|
|
@ -55,6 +60,12 @@ public class TbUserSingleController extends BaseController
|
||||||
{
|
{
|
||||||
startPage();
|
startPage();
|
||||||
List<TbUserSingle> list = tbUserSingleService.selectTbUserSingleList(tbUserSingle);
|
List<TbUserSingle> list = tbUserSingleService.selectTbUserSingleList(tbUserSingle);
|
||||||
|
list.forEach(model->{
|
||||||
|
TbUser user = tbUserService.getById(model.getUserId());
|
||||||
|
if(user != null){
|
||||||
|
model.setMobile(user.getMobile());
|
||||||
|
}
|
||||||
|
});
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,7 @@ public class AdapayServiceImpl implements AdapayService {
|
||||||
tbUserMatchOrder.setOrderMoney(BigDecimal.valueOf(199));
|
tbUserMatchOrder.setOrderMoney(BigDecimal.valueOf(199));
|
||||||
}else if(adapayReq.getOrderType() == 9L){
|
}else if(adapayReq.getOrderType() == 9L){
|
||||||
tbUserMatchOrder.setOrderMoney(BigDecimal.valueOf(699));
|
tbUserMatchOrder.setOrderMoney(BigDecimal.valueOf(699));
|
||||||
|
tbUserMatchOrder.setServTime(3);
|
||||||
}
|
}
|
||||||
tbUserMatchOrderService.insertTbUserMatchOrder(tbUserMatchOrder);
|
tbUserMatchOrderService.insertTbUserMatchOrder(tbUserMatchOrder);
|
||||||
return resp;
|
return resp;
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,7 @@ aliyun:
|
||||||
access-key-secret: qlpXG6usf0zPgQQECDAlrfYoMRHxgM
|
access-key-secret: qlpXG6usf0zPgQQECDAlrfYoMRHxgM
|
||||||
bucket-name: youban2023
|
bucket-name: youban2023
|
||||||
endpoint: http://oss-cn-shenzhen.aliyuncs.com
|
endpoint: http://oss-cn-shenzhen.aliyuncs.com
|
||||||
url-prefix: http://youban2023.oss-cn-shenzhen.aliyuncs.com/
|
url-prefix: http://quanmingtuodan.xyz/
|
||||||
|
|
||||||
#Adapay第三方支付
|
#Adapay第三方支付
|
||||||
adapay:
|
adapay:
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">真是姓名:</label>
|
<label class="col-sm-3 control-label">真实姓名:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="realName" class="form-control" type="text">
|
<input name="realName" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">真是姓名:</label>
|
<label class="col-sm-3 control-label">真实姓名:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="realName" th:field="*{realName}" class="form-control" type="text">
|
<input name="realName" th:field="*{realName}" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -96,13 +96,17 @@
|
||||||
field: 'phone',
|
field: 'phone',
|
||||||
title: '绑定手机号'
|
title: '绑定手机号'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'mobile',
|
||||||
|
title: '注册手机号'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'nickName',
|
field: 'nickName',
|
||||||
title: '平台昵称'
|
title: '平台昵称'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'realName',
|
field: 'realName',
|
||||||
title: '真是姓名'
|
title: '真实姓名'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'matchJob',
|
field: 'matchJob',
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,12 @@
|
||||||
<label>轿车:</label>
|
<label>轿车:</label>
|
||||||
<input type="text" name="carProperty"/>
|
<input type="text" name="carProperty"/>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="select-time">
|
||||||
|
<label>创建时间: </label>
|
||||||
|
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
|
||||||
|
<span>-</span>
|
||||||
|
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
|
||||||
|
</li>
|
||||||
<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-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>
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||||
|
|
@ -112,6 +118,10 @@
|
||||||
field: 'nickName',
|
field: 'nickName',
|
||||||
title: '昵称'
|
title: '昵称'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'mobile',
|
||||||
|
title: '手机号'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'realName',
|
field: 'realName',
|
||||||
title: '真实姓名'
|
title: '真实姓名'
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,9 @@ public class TbUserMatch extends BaseEntity
|
||||||
@ApiModelProperty(value = "平台昵称")
|
@ApiModelProperty(value = "平台昵称")
|
||||||
private String nickName;
|
private String nickName;
|
||||||
|
|
||||||
/** 真是姓名 */
|
/** 真实姓名 */
|
||||||
@Excel(name = "真是姓名")
|
@Excel(name = "真实姓名")
|
||||||
@ApiModelProperty(value = "真是姓名")
|
@ApiModelProperty(value = "真实姓名")
|
||||||
private String realName;
|
private String realName;
|
||||||
|
|
||||||
/** 职业 */
|
/** 职业 */
|
||||||
|
|
@ -73,4 +73,6 @@ public class TbUserMatch extends BaseEntity
|
||||||
@ApiModelProperty(value = "合伙人图片资料")
|
@ApiModelProperty(value = "合伙人图片资料")
|
||||||
private List<TbUserImg> tbUserImgList;
|
private List<TbUserImg> tbUserImgList;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String mobile;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,9 @@ public class TbUserMatchOrder extends BaseEntity
|
||||||
@Excel(name = "支付金额")
|
@Excel(name = "支付金额")
|
||||||
private BigDecimal orderMoney;
|
private BigDecimal orderMoney;
|
||||||
|
|
||||||
|
@Excel(name = "剩余服务次数")
|
||||||
|
private Integer servTime;
|
||||||
|
|
||||||
/** 订单号 */
|
/** 订单号 */
|
||||||
@Excel(name = "订单号")
|
@Excel(name = "订单号")
|
||||||
private String orderNo;
|
private String orderNo;
|
||||||
|
|
|
||||||
|
|
@ -156,4 +156,7 @@ public class TbUserSingle extends BaseEntity
|
||||||
@ApiModelProperty(value = "是否是已关注用户,单身推荐专用")
|
@ApiModelProperty(value = "是否是已关注用户,单身推荐专用")
|
||||||
private Boolean isLike = false;
|
private Boolean isLike = false;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String mobile;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package com.ruoyi.system.service.impl;
|
package com.ruoyi.system.service.impl;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
@ -54,6 +55,7 @@ public class TbUserSingleServiceImpl extends ServiceImpl<TbUserSingleMapper, TbU
|
||||||
@Override
|
@Override
|
||||||
public int insertTbUserSingle(TbUserSingle tbUserSingle)
|
public int insertTbUserSingle(TbUserSingle tbUserSingle)
|
||||||
{
|
{
|
||||||
|
tbUserSingle.setCreateTime(new Date());
|
||||||
return tbUserSingleMapper.insertTbUserSingle(tbUserSingle);
|
return tbUserSingleMapper.insertTbUserSingle(tbUserSingle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,12 @@
|
||||||
<if test="familyBackground != null and familyBackground != ''"> and family_background = #{familyBackground}</if>
|
<if test="familyBackground != null and familyBackground != ''"> and family_background = #{familyBackground}</if>
|
||||||
<if test="hobby != null and hobby != ''"> and hobby = #{hobby}</if>
|
<if test="hobby != null and hobby != ''"> and hobby = #{hobby}</if>
|
||||||
<if test="choosingStandard != null and choosingStandard != ''"> and choosing_standard = #{choosingStandard}</if>
|
<if test="choosingStandard != null and choosingStandard != ''"> and choosing_standard = #{choosingStandard}</if>
|
||||||
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
|
AND date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
|
AND date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
order by id desc
|
order by id desc
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue