Compare commits
No commits in common. "a329df620dd56f8da9f484e8ae7c477b54a1ca57" and "739976b1f97bb4d48ef1bf2bf37c72d85fe5155a" have entirely different histories.
a329df620d
...
739976b1f9
|
|
@ -140,9 +140,6 @@ public class PayCallbackService implements CallBackService {
|
||||||
financialMasterService.updateFinancialMaster(financialMaster2Update);
|
financialMasterService.updateFinancialMaster(financialMaster2Update);
|
||||||
log.info("订单追加[{}]支付成功", relationId);
|
log.info("订单追加[{}]支付成功", relationId);
|
||||||
|
|
||||||
} else if (PaymentRelation.CONSULT_ADD.equals(relation.getRelationIdType())) {
|
|
||||||
// 更新加价单的支付信息
|
|
||||||
financialChangeRecordService.updatePay(relationId, paymentId, PayStatus.PAID.getCode());
|
|
||||||
} else {
|
} else {
|
||||||
log.error("未知的订单类型: relationIdType={}, relationId={}", relation.getRelationIdType(), relationId);
|
log.error("未知的订单类型: relationIdType={}, relationId={}", relation.getRelationIdType(), relationId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -265,7 +265,6 @@ public class OrderController extends BaseController {
|
||||||
orderMaster.setConsultMode(request.getConsultMode());
|
orderMaster.setConsultMode(request.getConsultMode());
|
||||||
if("01".equalsIgnoreCase(orderMaster.getConsultMode())){
|
if("01".equalsIgnoreCase(orderMaster.getConsultMode())){
|
||||||
orderMaster.setOrderMode("02");
|
orderMaster.setOrderMode("02");
|
||||||
orderMaster.setPayMode("01");
|
|
||||||
}
|
}
|
||||||
// 存在登陆用户的情况下
|
// 存在登陆用户的情况下
|
||||||
if(getSysUser() != null){
|
if(getSysUser() != null){
|
||||||
|
|
@ -1394,7 +1393,7 @@ public class OrderController extends BaseController {
|
||||||
if(goods.getDeptGoodsCategoryId() != null){
|
if(goods.getDeptGoodsCategoryId() != null){
|
||||||
Long categoryId = null;
|
Long categoryId = null;
|
||||||
// 前端发单和后台派单
|
// 前端发单和后台派单
|
||||||
if(com.ghy.common.utils.StringUtils.isEmpty(orderMaster.getOrderMode())||"01".equals(orderMaster.getConsultMode())){
|
if(com.ghy.common.utils.StringUtils.isEmpty(orderMaster.getOrderMode())){
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.selectOneByGoodsCategoryId(goods.getDeptGoodsCategoryId());
|
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.selectOneByGoodsCategoryId(goods.getDeptGoodsCategoryId());
|
||||||
if(deptGoodsCategory != null){
|
if(deptGoodsCategory != null){
|
||||||
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
categoryId = deptGoodsCategory.getGoodsCategoryId();
|
||||||
|
|
|
||||||
|
|
@ -561,6 +561,9 @@ public class OrderDetailController extends BaseController {
|
||||||
// 商品规格及信息
|
// 商品规格及信息
|
||||||
List<OrderGoods> orderStandardList = orderGoodsService.selectByOrderDetailId(detail.getId());
|
List<OrderGoods> orderStandardList = orderGoodsService.selectByOrderDetailId(detail.getId());
|
||||||
|
|
||||||
|
// 商品信息
|
||||||
|
GoodsStandard goodsStandard = goodsStandardService.selectById(orderStandardList.get(0).getGoodsStandardId());
|
||||||
|
|
||||||
Goods goods = goodsService.selectById(orderMaster.getGoodsId());
|
Goods goods = goodsService.selectById(orderMaster.getGoodsId());
|
||||||
// 填充商品三级类目
|
// 填充商品三级类目
|
||||||
if(goods.getDeptGoodsCategoryId() != null){
|
if(goods.getDeptGoodsCategoryId() != null){
|
||||||
|
|
@ -991,8 +994,8 @@ public class OrderDetailController extends BaseController {
|
||||||
if (orderDetail.getOrderStatus().equals(OrderStatus.FINISH_CHECK.code())) {
|
if (orderDetail.getOrderStatus().equals(OrderStatus.FINISH_CHECK.code())) {
|
||||||
return AjaxResult.success("发起成功");
|
return AjaxResult.success("发起成功");
|
||||||
}
|
}
|
||||||
if (!"01".equals(orderMaster.getConsultMode()) && (orderDetail.getOrderStatus() != OrderStatus.SERVER.code()
|
if (orderDetail.getOrderStatus() != OrderStatus.SERVER.code()
|
||||||
|| !orderMaster.getPayStatus().equals(PayStatus.PAID.getCode()))) {
|
|| !orderMaster.getPayStatus().equals(PayStatus.PAID.getCode())) {
|
||||||
return AjaxResult.error("未支付订单或非服务中订单,发起完单失败");
|
return AjaxResult.error("未支付订单或非服务中订单,发起完单失败");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,14 +44,6 @@ public class OrderGoodsController extends BaseController {
|
||||||
return prefix;
|
return prefix;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping(value = "/master")
|
|
||||||
public String orderMasterGoods(Long orderId, ModelMap mmap) {
|
|
||||||
OrderMaster orderMaster = orderMasterService.selectById(orderId);
|
|
||||||
mmap.put("orderId", orderId);
|
|
||||||
mmap.put("orderMaster", orderMaster);
|
|
||||||
return "order/masterGoods";
|
|
||||||
}
|
|
||||||
|
|
||||||
// @RequiresPermissions("order:goods:list")
|
// @RequiresPermissions("order:goods:list")
|
||||||
@PostMapping("/list")
|
@PostMapping("/list")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ import com.ghy.customer.service.CustomerService;
|
||||||
import com.ghy.goods.domain.*;
|
import com.ghy.goods.domain.*;
|
||||||
import com.ghy.goods.service.*;
|
import com.ghy.goods.service.*;
|
||||||
import com.ghy.order.domain.*;
|
import com.ghy.order.domain.*;
|
||||||
import com.ghy.order.request.OrderChangePriceReq;
|
|
||||||
import com.ghy.order.request.SysOrderAssignRequest;
|
import com.ghy.order.request.SysOrderAssignRequest;
|
||||||
import com.ghy.order.request.SysOrderGoodsStandards;
|
import com.ghy.order.request.SysOrderGoodsStandards;
|
||||||
import com.ghy.order.service.*;
|
import com.ghy.order.service.*;
|
||||||
|
|
@ -122,19 +121,6 @@ public class OrderMasterController extends BaseController {
|
||||||
@Resource
|
@Resource
|
||||||
private CustomerAddressService customerAddressService;
|
private CustomerAddressService customerAddressService;
|
||||||
|
|
||||||
@GetMapping("/changePrice/{orderIds}")
|
|
||||||
public String changePrice(@PathVariable("orderIds") String orderIds, ModelMap mmap)
|
|
||||||
{
|
|
||||||
mmap.put("orderIds", orderIds);
|
|
||||||
return "order/batchChangePrice";
|
|
||||||
}
|
|
||||||
|
|
||||||
@PostMapping(value = "batchChangePrice")
|
|
||||||
@ResponseBody
|
|
||||||
public AjaxResult batchChangePrice(@Validated OrderChangePriceReq changePriceReq){
|
|
||||||
return orderMasterService.batchChangePrice(changePriceReq);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// @RequiresPermissions("order:master:view")
|
// @RequiresPermissions("order:master:view")
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
|
|
|
||||||
|
|
@ -178,18 +178,15 @@ public class AlipayController extends BaseController {
|
||||||
ArrayList<PaymentRelation> relations = new ArrayList<>();
|
ArrayList<PaymentRelation> relations = new ArrayList<>();
|
||||||
// 主单是否付款 没付款的话一起付
|
// 主单是否付款 没付款的话一起付
|
||||||
boolean fmPaid = Objects.equals(PayStatus.WAIT_PAY.getCode(), fm.getPayStatus());
|
boolean fmPaid = Objects.equals(PayStatus.WAIT_PAY.getCode(), fm.getPayStatus());
|
||||||
if (fmPaid && !"01".equals(orderMaster.getConsultMode())) {
|
if (fmPaid) {
|
||||||
payMoney = payMoney.add(fm.getPayMoney());
|
payMoney = payMoney.add(fm.getPayMoney());
|
||||||
relations.add(new PaymentRelation(null, fm.getId(), PaymentRelation.FINANCIAL_MASTER, fm.getPayMoney()));
|
relations.add(new PaymentRelation(null, fm.getId(), PaymentRelation.FINANCIAL_MASTER, fm.getPayMoney()));
|
||||||
}
|
}
|
||||||
// 查询关联的加价单
|
// 查询关联的加价单
|
||||||
FinancialChangeRecord fcr = financialChangeRecordService.selectNotPayRecordByDetailId(orderDetailId);
|
FinancialChangeRecord fcr = financialChangeRecordService.selectNotPayRecordByDetailId(orderDetailId);
|
||||||
if (fcr != null && !"01".equals(orderMaster.getConsultMode())) {
|
if (fcr != null) {
|
||||||
payMoney = payMoney.add(fcr.getChangeMoney());
|
payMoney = payMoney.add(fcr.getChangeMoney());
|
||||||
relations.add(new PaymentRelation(null, fcr.getId(), PaymentRelation.FINANCIAL_CHANGE, fcr.getChangeMoney()));
|
relations.add(new PaymentRelation(null, fcr.getId(), PaymentRelation.FINANCIAL_CHANGE, fcr.getChangeMoney()));
|
||||||
}else if(fcr != null){
|
|
||||||
payMoney = payMoney.add(fcr.getChangeMoney());
|
|
||||||
relations.add(new PaymentRelation(null, fcr.getId(), PaymentRelation.CONSULT_ADD, fcr.getChangeMoney()));
|
|
||||||
}
|
}
|
||||||
OrderAttachmentRecord param = new OrderAttachmentRecord();
|
OrderAttachmentRecord param = new OrderAttachmentRecord();
|
||||||
param.setOrderDetailId(orderDetailId);
|
param.setOrderDetailId(orderDetailId);
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ import com.ghy.common.enums.WorkerStatus;
|
||||||
import com.ghy.common.enums.WorkerType;
|
import com.ghy.common.enums.WorkerType;
|
||||||
import com.ghy.common.utils.CacheUtils;
|
import com.ghy.common.utils.CacheUtils;
|
||||||
import com.ghy.common.utils.ExceptionUtil;
|
import com.ghy.common.utils.ExceptionUtil;
|
||||||
import com.ghy.common.utils.StringUtils;
|
|
||||||
import com.ghy.goods.domain.Goods;
|
import com.ghy.goods.domain.Goods;
|
||||||
import com.ghy.goods.domain.GoodsCategory;
|
import com.ghy.goods.domain.GoodsCategory;
|
||||||
import com.ghy.goods.service.GoodsCategoryService;
|
import com.ghy.goods.service.GoodsCategoryService;
|
||||||
|
|
@ -152,9 +151,6 @@ public class WorkerController extends BaseController {
|
||||||
Worker worker = new Worker();
|
Worker worker = new Worker();
|
||||||
worker.setWorkerIds(CollectionUtils.isNotEmpty(resWorkerIds) ? resWorkerIds : null);
|
worker.setWorkerIds(CollectionUtils.isNotEmpty(resWorkerIds) ? resWorkerIds : null);
|
||||||
worker.setKeyWords(workerListRequest.getWorkerName());
|
worker.setKeyWords(workerListRequest.getWorkerName());
|
||||||
if(StringUtils.isNotEmpty(workerListRequest.getWorkerPhone())){
|
|
||||||
worker.setPhone(workerListRequest.getWorkerPhone());
|
|
||||||
}
|
|
||||||
if(this.getSysUser().getDept().getParentId() != 101){
|
if(this.getSysUser().getDept().getParentId() != 101){
|
||||||
worker.setDeptId(this.getSysUser().getDept().getParentId());
|
worker.setDeptId(this.getSysUser().getDept().getParentId());
|
||||||
}
|
}
|
||||||
|
|
@ -266,12 +262,7 @@ public class WorkerController extends BaseController {
|
||||||
setDistrictIds(worker.getDistrictIds());
|
setDistrictIds(worker.getDistrictIds());
|
||||||
}}));
|
}}));
|
||||||
} else {
|
} else {
|
||||||
List<WorkerArea> workerAreas = workerAreaService.getByWorker(w.getWorkerId());
|
workerListResponse.setWorkerAreas(workerAreaService.getByWorker(w.getWorkerId()));
|
||||||
if(workerAreas.size() > 10){
|
|
||||||
workerListResponse.setWorkerAreas(workerAreas.subList(0,10));
|
|
||||||
}else {
|
|
||||||
workerListResponse.setWorkerAreas(workerAreas);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
workerListResponse.setGoodsCategories(workerGoodsCategoryService.getByWorker(w.getWorkerId()));
|
workerListResponse.setGoodsCategories(workerGoodsCategoryService.getByWorker(w.getWorkerId()));
|
||||||
workerListResponse.setSpecialSkills(specialSkillService.getByWorker(w.getWorkerId()));
|
workerListResponse.setSpecialSkills(specialSkillService.getByWorker(w.getWorkerId()));
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
package com.ghy.web.pojo.vo;
|
package com.ghy.web.pojo.vo;
|
||||||
|
|
||||||
import com.ghy.common.core.domain.BaseEntity;
|
|
||||||
import com.ghy.worker.domain.Worker;
|
import com.ghy.worker.domain.Worker;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
|
@ -11,7 +10,7 @@ import java.util.List;
|
||||||
* @date : 2022-06-24 17:38
|
* @date : 2022-06-24 17:38
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class WorkerListRequest extends BaseEntity {
|
public class WorkerListRequest {
|
||||||
private Long areaId;
|
private Long areaId;
|
||||||
|
|
||||||
private List<Long> areaIds;
|
private List<Long> areaIds;
|
||||||
|
|
@ -20,8 +19,6 @@ public class WorkerListRequest extends BaseEntity {
|
||||||
|
|
||||||
private String workerName;
|
private String workerName;
|
||||||
|
|
||||||
private String workerPhone;
|
|
||||||
|
|
||||||
private Long workerId;
|
private Long workerId;
|
||||||
|
|
||||||
private Long exceptParentAreaId;
|
private Long exceptParentAreaId;
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ spring:
|
||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
master:
|
||||||
url: jdbc:mysql://121.62.23.77:3306/gqz?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
|
url: jdbc:mysql://121.62.23.77:3306/gqz?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
username: gqz
|
username: gqz
|
||||||
password: Clunt@12345
|
password: Clunt@12345
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
|
|
|
||||||
|
|
@ -19,33 +19,22 @@ body {
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
.cascader-wrap:after {
|
.cascader-wrap:after {
|
||||||
/*opacity: 1;*/
|
opacity: 1;
|
||||||
content: "展开";
|
content: "";
|
||||||
padding: 5px 10px;
|
border-color: transparent transparent #888 transparent;
|
||||||
background-color: #1d85c6;
|
border-style: solid;
|
||||||
color: #feffff;
|
height: 0;
|
||||||
border-radius: 4px;
|
margin-top: -2px;
|
||||||
text-align: center;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 12%;
|
top: 50%;
|
||||||
right: 5px;
|
right: 10px;
|
||||||
/*border-color: transparent transparent #888 transparent;*/
|
width: 0;
|
||||||
/*border-style: solid;*/
|
border-width: 0 4px 5px 4px;
|
||||||
/*height: 0;*/
|
transform: rotate(180deg);
|
||||||
/*margin-top: -2px;*/
|
|
||||||
/*position: absolute;*/
|
|
||||||
/*top: 50%;*/
|
|
||||||
/*right: 10px;*/
|
|
||||||
/*width: 0;*/
|
|
||||||
/*border-width: 0 4px 5px 4px;*/
|
|
||||||
/*transform: rotate(180deg);*/
|
|
||||||
transition: all 0.1s;
|
transition: all 0.1s;
|
||||||
}
|
}
|
||||||
.cascader-wrap.is-show:after {
|
.cascader-wrap.is-show:after {
|
||||||
/*transform: rotate(0deg);*/
|
transform: rotate(0deg);
|
||||||
content: "收起";
|
|
||||||
background-color: #e82d2d;
|
|
||||||
color: #feffff;
|
|
||||||
}
|
}
|
||||||
.cascader-wrap.is-show .eo-cascader-panel {
|
.cascader-wrap.is-show .eo-cascader-panel {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
@ -73,7 +62,7 @@ body {
|
||||||
z-index: 9;
|
z-index: 9;
|
||||||
}
|
}
|
||||||
.cascader-wrap.is-clear:after {
|
.cascader-wrap.is-clear:after {
|
||||||
/*opacity: 0;*/
|
opacity: 0;
|
||||||
}
|
}
|
||||||
.eo-cascader-panel {
|
.eo-cascader-panel {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
|
||||||
<head>
|
|
||||||
<th:block th:include="include :: header('批量改价')" />
|
|
||||||
</head>
|
|
||||||
<body class="white-bg">
|
|
||||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
||||||
<form class="form-horizontal m" id="form-change-price">
|
|
||||||
<input name="orderIds" type="hidden" th:value="${orderIds}" />
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="col-sm-3 control-label">输入修改后价格:</label>
|
|
||||||
<div class="col-sm-8">
|
|
||||||
<input class="form-control" type="text" name="changePrice" id="changePrice">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<th:block th:include="include :: footer" />
|
|
||||||
<script type="text/javascript">
|
|
||||||
$("#changePrice").validate({
|
|
||||||
rules:{
|
|
||||||
changePrice:{
|
|
||||||
required:true
|
|
||||||
},
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
function submitHandler() {
|
|
||||||
if ($.validate.form()) {
|
|
||||||
$.operate.save(ctx + "order/master/batchChangePrice", $('#form-change-price').serialize());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
|
|
@ -630,14 +630,14 @@
|
||||||
return '<div style="display:flex;justify-content: center;align-items: center;">'
|
return '<div style="display:flex;justify-content: center;align-items: center;">'
|
||||||
+ '<img decoding="async" src="' + value.goodsImgUrl + '" width="100" height="100" />'
|
+ '<img decoding="async" src="' + value.goodsImgUrl + '" width="100" height="100" />'
|
||||||
+ '<div>'
|
+ '<div>'
|
||||||
+ '<p> ' + row.code + '<p/>'
|
+ '<small> ' + row.code + '<small/> <br>'
|
||||||
+ '<p> ' + row.consoleGoodsName + '<p/>'
|
+ '<small> ' + row.consoleGoodsName+ '<small/> <br>'
|
||||||
+ '<p> 联系人:' + row.addressName + '</p>'
|
+ '<small> 联系人:' + row.addressName + '</small> <br>'
|
||||||
+ '<p> 联系电话:' + row.addressPhone + '</p>'
|
+ '<small> 联系电话:' + row.addressPhone + '</small> <br>'
|
||||||
+ '<p> 联系地址:' + row.address + '</p>'
|
+ '<small> 联系地址:' + row.address + '</small> <br>'
|
||||||
+ '<p> 下单时间:' + row.createTime + '</p>'
|
+ '<small> 下单时间:' + row.createTime + '</small> <br>'
|
||||||
+ '<p> 预约时间:' + row.mixExpectTime + '</p>'
|
+ '<small> 预约时间:' + row.mixExpectTime + '</small> <br>'
|
||||||
+ '<p> 总金额:' + row.financialMasterMoney + '元 应得金额:' + row.financialDetailMoney + '元</p>'
|
+ '<small> 总金额:' + row.financialMasterMoney + '元 应得金额:' + row.financialDetailMoney + '元</small> <br>'
|
||||||
+ '</div>'
|
+ '</div>'
|
||||||
+ '</div>';
|
+ '</div>';
|
||||||
}
|
}
|
||||||
|
|
@ -656,21 +656,21 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'goodsWorker',
|
field: 'goodsWorker',
|
||||||
title: '师傅接单信息',
|
title: '接单师傅',
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
if(value){
|
if(value){
|
||||||
return '<p>' + value.name + '</p>'
|
return '<small>' + value.name + '</small><br>'
|
||||||
+ '<p>' + value.phone + '</p>';
|
+ '<small>' + value.phone + '</small>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'worker',
|
field: 'worker',
|
||||||
title: '师傅做单信息',
|
title: '做单信息',
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
if(value){
|
if(value){
|
||||||
return '<p>' + value.name + value.phone + '</p>'
|
return '<small>' + value.name + value.phone + '</small><br>'
|
||||||
+ '<p>接单时间:' + value.createTime + '</p>';
|
+ '<small>接单时间:' + value.createTime + '</small>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,91 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<th:block th:include="include :: header('订单商品列表')"/>
|
|
||||||
<th:block th:include="include :: layout-latest-css"/>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="gray-bg">
|
|
||||||
|
|
||||||
<div class="ui-layout-center">
|
|
||||||
<div class="container-div">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-12 search-collapse">
|
|
||||||
<form id="order-goods-form">
|
|
||||||
<!-- <input type="hidden" id="orderId" name="orderId" th:value="${orderMaster.id}">-->
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-12 select-table table-striped">
|
|
||||||
<table id="bootstrap-table"></table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<th:block th:include="include :: footer"/>
|
|
||||||
<th:block th:include="include :: layout-latest-js"/>
|
|
||||||
|
|
||||||
<script th:inline="javascript">
|
|
||||||
|
|
||||||
var prefix = ctx + "order/goods";
|
|
||||||
var orderId = '[[${orderId}]]';
|
|
||||||
|
|
||||||
$(function () {
|
|
||||||
var panehHidden = false;
|
|
||||||
if ($(this).width() < 769) {
|
|
||||||
panehHidden = true;
|
|
||||||
}
|
|
||||||
$('body').layout({initClosed: panehHidden, west__size: 185});
|
|
||||||
// 回到顶部绑定
|
|
||||||
if ($.fn.toTop !== undefined) {
|
|
||||||
var opt = {
|
|
||||||
win: $('.ui-layout-center'),
|
|
||||||
doc: $('.ui-layout-center')
|
|
||||||
};
|
|
||||||
$('#scroll-up').toTop(opt);
|
|
||||||
}
|
|
||||||
queryOrderGoodsList();
|
|
||||||
});
|
|
||||||
|
|
||||||
function queryOrderGoodsList() {
|
|
||||||
var options = {
|
|
||||||
url: prefix + "/list?orderId=" + orderId,
|
|
||||||
modalName: "订单商品",
|
|
||||||
search: false,
|
|
||||||
showSearch: false,
|
|
||||||
showToggle: false,
|
|
||||||
showColumns: false,
|
|
||||||
showRefresh: false,
|
|
||||||
columns: [
|
|
||||||
{
|
|
||||||
field: 'orderGoodsId',
|
|
||||||
title: '订单商品id',
|
|
||||||
visible: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'orderId',
|
|
||||||
title: '订单id',
|
|
||||||
visible: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'goodsName',
|
|
||||||
title: '商品名称'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'goodsNum',
|
|
||||||
title: '商品数量'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'serverGoodsNum',
|
|
||||||
title: '已服务数量'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
|
||||||
$.table.init(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
|
|
@ -322,9 +322,6 @@
|
||||||
<a class="btn btn-default" onclick="showPcOrderWorker()">
|
<a class="btn btn-default" onclick="showPcOrderWorker()">
|
||||||
<i class="fa fa-money"></i> 指派
|
<i class="fa fa-money"></i> 指派
|
||||||
</a>
|
</a>
|
||||||
<a class="btn btn-default" onclick="batchChangePrice()">
|
|
||||||
<i class="fa fa-money"></i> 批量改价
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -643,14 +640,14 @@
|
||||||
return '<div style="display:flex;justify-content: center;align-items: center;">'
|
return '<div style="display:flex;justify-content: center;align-items: center;">'
|
||||||
+ '<img decoding="async" src="' + value.goodsImgUrl + '" width="100" height="100" />'
|
+ '<img decoding="async" src="' + value.goodsImgUrl + '" width="100" height="100" />'
|
||||||
+ '<div>'
|
+ '<div>'
|
||||||
+ '<p>' + row.code + ' + <p/>'
|
+ '<small>' + row.code + '<small/> <br>'
|
||||||
+ '<p> ' + row.consoleGoodsName + '<p/>'
|
+ '<small> ' + row.consoleGoodsName + '<small/> <br>'
|
||||||
+ '<p> 联系人:' + row.addressName + '</p>'
|
+ '<small> 联系人:' + row.addressName + '</small> <br>'
|
||||||
+ '<p> 联系电话:' + row.addressPhone + '</p>'
|
+ '<small> 联系电话:' + row.addressPhone + '</small> <br>'
|
||||||
+ '<p> 联系地址:' + row.address + '</p>'
|
+ '<small> 联系地址:' + row.address + '</small> <br>'
|
||||||
+ '<p> 下单时间:' + row.createTime + '</p>'
|
+ '<small> 下单时间:' + row.createTime + '</small> <br>'
|
||||||
+ '<p> 预约时间:' + row.mixExpectTime + '</p>'
|
+ '<small> 预约时间:' + row.mixExpectTime + '</small> <br>'
|
||||||
+ '<p> 下单总金额:' + row.financialMasterMoney + '元,师傅实收金额: '+ row.financialMasterPayMoney + ' </p>'
|
+ '<small> 下单总金额:' + row.financialMasterMoney + '元,师傅实收金额: '+ row.financialMasterPayMoney + ' </small> <br>'
|
||||||
+ '</div>'
|
+ '</div>'
|
||||||
+ '</div>';
|
+ '</div>';
|
||||||
}
|
}
|
||||||
|
|
@ -683,11 +680,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'worker',
|
field: 'worker',
|
||||||
title: '师傅接单信息',
|
title: '接单信息',
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
if(value){
|
if(value){
|
||||||
return '<p>' + value.name + value.phone + '</p>'
|
return '<small>' + value.name + value.phone + '</small><br>'
|
||||||
+ '<p>接单时间:' + row.createTime + '</p>';
|
+ '<small>接单时间:' + row.createTime + '</small>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -831,7 +828,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function detail(id) {
|
function detail(id) {
|
||||||
var url = "order/goods/master?orderId=" + id;
|
var url = "order/goods?orderId=" + id;
|
||||||
$.modal.open("商品信息", url);
|
$.modal.open("商品信息", url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -981,17 +978,6 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function batchChangePrice() {
|
|
||||||
table.set();
|
|
||||||
var rows = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId);
|
|
||||||
if (rows.length === 0) {
|
|
||||||
$.modal.alertWarning("请至少选择一条记录");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
var url = prefix + "/changePrice/" + rows.join(",");
|
|
||||||
$.modal.open("批量改价", url, '800', '300');
|
|
||||||
}
|
|
||||||
|
|
||||||
function mergePay() {
|
function mergePay() {
|
||||||
table.set();
|
table.set();
|
||||||
var rows = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId);
|
var rows = $.common.isEmpty(table.options.uniqueId) ? $.table.selectFirstColumns() : $.table.selectColumns(table.options.uniqueId);
|
||||||
|
|
|
||||||
|
|
@ -92,10 +92,6 @@
|
||||||
<label class="form-control-label">人员名称:</label>
|
<label class="form-control-label">人员名称:</label>
|
||||||
<input name="workerName" type="text" class="form-control normal-input m-r">
|
<input name="workerName" type="text" class="form-control normal-input m-r">
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-board input-content m-t">
|
|
||||||
<label class="form-control-label">手机号:</label>
|
|
||||||
<input name="workerPhone" type="text" class="form-control normal-input m-r">
|
|
||||||
</div>
|
|
||||||
<div class="m-t">
|
<div class="m-t">
|
||||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search('workerForm')"><i
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search('workerForm')"><i
|
||||||
class="fa fa-search"></i> 搜索</a>
|
class="fa fa-search"></i> 搜索</a>
|
||||||
|
|
@ -219,12 +215,7 @@
|
||||||
checkbox: true
|
checkbox: true
|
||||||
}, {
|
}, {
|
||||||
field: 'name',
|
field: 'name',
|
||||||
title: '昵称',
|
title: '人员名称',
|
||||||
align: "left"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'realName',
|
|
||||||
title: '真实姓名',
|
|
||||||
align: "left"
|
align: "left"
|
||||||
}, {
|
}, {
|
||||||
field: 'phone',
|
field: 'phone',
|
||||||
|
|
|
||||||
|
|
@ -421,16 +421,16 @@
|
||||||
return '<div style="display:flex;justify-content: center;align-items: center;">'
|
return '<div style="display:flex;justify-content: center;align-items: center;">'
|
||||||
+ '<img decoding="async" src="' + value.goodsImgUrl + '" width="100" height="100" />'
|
+ '<img decoding="async" src="' + value.goodsImgUrl + '" width="100" height="100" />'
|
||||||
+ '<div>'
|
+ '<div>'
|
||||||
+ '<p>' + row.code + '<p/>'
|
+ '<small>' + row.code + '<small/> <br>'
|
||||||
+ '<p> ' + row.consoleGoodsName + '<p/> '
|
+ '<small> ' + row.consoleGoodsName + '<small/> <br>'
|
||||||
+ '<p> 联系人:' + row.addressName + '</p> '
|
+ '<small> 联系人:' + row.addressName + '</small> <br>'
|
||||||
+ '<p> 联系电话:' + row.addressPhone + '</p> '
|
+ '<small> 联系电话:' + row.addressPhone + '</small> <br>'
|
||||||
+ '<p> 联系地址:' + row.address + '</p> '
|
+ '<small> 联系地址:' + row.address + '</small> <br>'
|
||||||
+ '<p> 下单时间:' + row.createTime + '</p> '
|
+ '<small> 下单时间:' + row.createTime + '</small> <br>'
|
||||||
+ '<p> 预约时间:' + row.mixExpectTime + '</p> '
|
+ '<small> 预约时间:' + row.mixExpectTime + '</small> <br>'
|
||||||
+ '<p> 下单总金额:' + row.financialMasterMoney + '元,师傅实收金额: '+ row.financialMasterPayMoney + ' </p> '
|
+ '<small> 下单总金额:' + row.financialMasterMoney + '元,师傅实收金额: '+ row.financialMasterPayMoney + ' </small> <br>'
|
||||||
+ '</p>'
|
+ '</div>'
|
||||||
+ '</p>';
|
+ '</div>';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -443,11 +443,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'worker',
|
field: 'worker',
|
||||||
title: '师傅接单信息',
|
title: '接单信息',
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
if(value){
|
if(value){
|
||||||
return '<p>' + value.name + '</p>'
|
return '<small>' + value.name + '</small><br>'
|
||||||
+ '<p>接单时间:' + row.createTime + '</p>';
|
+ '<small>接单时间:' + row.createTime + '</small>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
package com.ghy.order.request;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import javax.validation.constraints.Max;
|
|
||||||
import javax.validation.constraints.Min;
|
|
||||||
import javax.validation.constraints.NotBlank;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class OrderChangePriceReq {
|
|
||||||
|
|
||||||
@NotBlank
|
|
||||||
private String orderIds;
|
|
||||||
|
|
||||||
@Min(value = 1L)
|
|
||||||
@Max(value = 9999L)
|
|
||||||
private String changePrice;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -4,7 +4,6 @@ import com.ghy.common.core.domain.AjaxResult;
|
||||||
import com.ghy.order.domain.OrderMaster;
|
import com.ghy.order.domain.OrderMaster;
|
||||||
import com.ghy.order.domain.OrderMasterCount;
|
import com.ghy.order.domain.OrderMasterCount;
|
||||||
import com.ghy.order.request.AppOrderRequest;
|
import com.ghy.order.request.AppOrderRequest;
|
||||||
import com.ghy.order.request.OrderChangePriceReq;
|
|
||||||
import com.huifu.adapay.core.exception.BaseAdaPayException;
|
import com.huifu.adapay.core.exception.BaseAdaPayException;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
@ -169,10 +168,4 @@ public interface OrderMasterService {
|
||||||
int reject(OrderMaster orderMaster);
|
int reject(OrderMaster orderMaster);
|
||||||
|
|
||||||
OrderMasterCount differentStatusOrderCount(OrderMaster orderMaster);
|
OrderMasterCount differentStatusOrderCount(OrderMaster orderMaster);
|
||||||
|
|
||||||
/**
|
|
||||||
* @param changePriceReq 批量改价
|
|
||||||
*/
|
|
||||||
AjaxResult batchChangePrice(OrderChangePriceReq changePriceReq);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
package com.ghy.order.service.impl;
|
package com.ghy.order.service.impl;
|
||||||
|
|
||||||
import cn.hutool.core.util.NumberUtil;
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.ghy.common.adapay.model.AdapayStatusEnum;
|
import com.ghy.common.adapay.model.AdapayStatusEnum;
|
||||||
import com.ghy.common.adapay.model.AdpCode;
|
import com.ghy.common.adapay.model.AdpCode;
|
||||||
import com.ghy.common.adapay.model.DivMember;
|
import com.ghy.common.adapay.model.DivMember;
|
||||||
import com.ghy.common.adapay.model.PaymentDTO;
|
import com.ghy.common.adapay.model.PaymentDTO;
|
||||||
import com.ghy.common.constant.UserConstants;
|
import com.ghy.common.constant.UserConstants;
|
||||||
import com.ghy.common.core.domain.AjaxResult;
|
|
||||||
import com.ghy.common.core.text.Convert;
|
import com.ghy.common.core.text.Convert;
|
||||||
import com.ghy.common.enums.AdapayOrderType;
|
import com.ghy.common.enums.AdapayOrderType;
|
||||||
import com.ghy.common.enums.OrderStatus;
|
import com.ghy.common.enums.OrderStatus;
|
||||||
|
|
@ -20,7 +18,6 @@ import com.ghy.order.domain.OrderMaster;
|
||||||
import com.ghy.order.domain.OrderMasterCount;
|
import com.ghy.order.domain.OrderMasterCount;
|
||||||
import com.ghy.order.mapper.OrderMasterMapper;
|
import com.ghy.order.mapper.OrderMasterMapper;
|
||||||
import com.ghy.order.request.AppOrderRequest;
|
import com.ghy.order.request.AppOrderRequest;
|
||||||
import com.ghy.order.request.OrderChangePriceReq;
|
|
||||||
import com.ghy.order.service.OrderDetailService;
|
import com.ghy.order.service.OrderDetailService;
|
||||||
import com.ghy.order.service.OrderGoodsService;
|
import com.ghy.order.service.OrderGoodsService;
|
||||||
import com.ghy.order.service.OrderMasterService;
|
import com.ghy.order.service.OrderMasterService;
|
||||||
|
|
@ -578,30 +575,4 @@ public class OrderMasterServiceImpl implements OrderMasterService {
|
||||||
public OrderMasterCount differentStatusOrderCount(OrderMaster orderMaster) {
|
public OrderMasterCount differentStatusOrderCount(OrderMaster orderMaster) {
|
||||||
return orderMasterMapper.differentStatusOrderCount(orderMaster);
|
return orderMasterMapper.differentStatusOrderCount(orderMaster);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public AjaxResult batchChangePrice(OrderChangePriceReq changePriceReq) {
|
|
||||||
BigDecimal changePrice = new BigDecimal(changePriceReq.getChangePrice());
|
|
||||||
String [] idStr = changePriceReq.getOrderIds().split(",");
|
|
||||||
List<Long> idsList = new ArrayList<>();
|
|
||||||
for (String id : idStr){
|
|
||||||
idsList.add(Long.parseLong(id));
|
|
||||||
}
|
|
||||||
List<OrderMaster> orderMasters = orderMasterMapper.selectByIds(idsList);
|
|
||||||
long statusCount = orderMasters.stream().filter(x->x.getOrderStatus() != 1 && x.getOrderStatus() != 2).count();
|
|
||||||
if(statusCount > 0){
|
|
||||||
return AjaxResult.error("请不要选择不符合状态的订单!");
|
|
||||||
}
|
|
||||||
for (OrderMaster model : orderMasters) {
|
|
||||||
FinancialMaster financialMaster = financialMasterService.selectByOrderMasterId(model.getId());
|
|
||||||
if (NumberUtil.isGreater(changePrice, financialMaster.getServerMoney())) {
|
|
||||||
// 补充付款 todo 插入改价表数据
|
|
||||||
}else {
|
|
||||||
// 减少大师傅所得 todo 插入改价表数据
|
|
||||||
}
|
|
||||||
financialMaster.setServerMoney(changePrice);
|
|
||||||
financialMasterService.updateFinancialMaster(financialMaster);
|
|
||||||
}
|
|
||||||
return AjaxResult.success();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -102,14 +102,6 @@
|
||||||
<select id="selectOrderDetailList" parameterType="com.ghy.order.domain.OrderDetail" resultMap="OrderDetailResult">
|
<select id="selectOrderDetailList" parameterType="com.ghy.order.domain.OrderDetail" resultMap="OrderDetailResult">
|
||||||
<include refid="selectOrderDetailMoreInfo"/>
|
<include refid="selectOrderDetailMoreInfo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="keyWords != null and keyWords != ''">
|
|
||||||
AND
|
|
||||||
(
|
|
||||||
om.code LIKE concat('%', #{keyWords}, '%')
|
|
||||||
or ca.name LIKE concat('%', #{keyWords}, '%')
|
|
||||||
or ca.phone LIKE concat('%', #{keyWords}, '%')
|
|
||||||
)
|
|
||||||
</if>
|
|
||||||
<if test="deptId != null and deptId != ''">
|
<if test="deptId != null and deptId != ''">
|
||||||
AND w.dept_id = #{deptId}
|
AND w.dept_id = #{deptId}
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -200,9 +192,9 @@
|
||||||
#{drawCashStatus}
|
#{drawCashStatus}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<!-- <if test="workFinishTimeExisted">-->
|
<if test="workFinishTimeExisted">
|
||||||
<!-- AND od.work_finish_time is not null-->
|
AND od.work_finish_time is not null
|
||||||
<!-- </if>-->
|
</if>
|
||||||
<if test="timeout != null">
|
<if test="timeout != null">
|
||||||
AND od.timeout_ = #{timeout}
|
AND od.timeout_ = #{timeout}
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -268,9 +260,9 @@
|
||||||
<if test="shelveStatus != null">
|
<if test="shelveStatus != null">
|
||||||
AND od.shelve_status = ${shelveStatus}
|
AND od.shelve_status = ${shelveStatus}
|
||||||
</if>
|
</if>
|
||||||
<!-- <if test="workFinishTimeExisted">-->
|
<if test="workFinishTimeExisted">
|
||||||
<!-- AND od.work_finish_time is not null-->
|
AND od.work_finish_time is not null
|
||||||
<!-- </if>-->
|
</if>
|
||||||
<if test="drawCashStatusList != null and drawCashStatusList.size() > 0">
|
<if test="drawCashStatusList != null and drawCashStatusList.size() > 0">
|
||||||
AND od.draw_cash_status in
|
AND od.draw_cash_status in
|
||||||
<foreach collection="drawCashStatusList" item="drawCashStatus" open="(" separator="," close=")">
|
<foreach collection="drawCashStatusList" item="drawCashStatus" open="(" separator="," close=")">
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,4 @@ public class PaymentRelation {
|
||||||
public static final String FINANCIAL_CHANGE = "financial_change";
|
public static final String FINANCIAL_CHANGE = "financial_change";
|
||||||
public static final String ORDER_ATTACHMENT = "order_attachment";
|
public static final String ORDER_ATTACHMENT = "order_attachment";
|
||||||
public static final String ORDER_ADD = "order_add";
|
public static final String ORDER_ADD = "order_add";
|
||||||
/** 合约订单加价 */
|
|
||||||
public static final String CONSULT_ADD = "consult_add";
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -76,11 +76,11 @@ public class OrderServiceImpl implements OrderService {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询符合超时的子单
|
// 查询符合超时的子单
|
||||||
List<OrderDetail> orders = orderDetailService.selectByStatus(timeoutOrderStatus);
|
// List<OrderDetail> orders = orderDetailService.selectByStatus(timeoutOrderStatus);
|
||||||
log.info("扫描到{}条未完成的子订单", orders.size());
|
// log.info("扫描到{}条未完成的子订单", orders.size());
|
||||||
for (OrderDetail order : orders) {
|
// for (OrderDetail order : orders) {
|
||||||
executor.execute(() -> checkTimeout(order));
|
// executor.execute(() -> checkTimeout(order));
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
|
|
@ -181,7 +181,7 @@ public class OrderServiceImpl implements OrderService {
|
||||||
OrderTimeoutRecord record = new OrderTimeoutRecord(order.getId(), order.getWorkerId(), order.getDeptId(), order.getOrderStatus());
|
OrderTimeoutRecord record = new OrderTimeoutRecord(order.getId(), order.getWorkerId(), order.getDeptId(), order.getOrderStatus());
|
||||||
record.setPayMoney(getFineMoney(order));
|
record.setPayMoney(getFineMoney(order));
|
||||||
record.setFineStatus(0);
|
record.setFineStatus(0);
|
||||||
// orderFineRecordMapper.insert(record);
|
orderFineRecordMapper.insert(record);
|
||||||
orderDetailService.updateTimeout(order.getId(), 1, 1);
|
orderDetailService.updateTimeout(order.getId(), 1, 1);
|
||||||
}
|
}
|
||||||
} else if (timeoutOrderStatus.contains(order.getOrderStatus())) {
|
} else if (timeoutOrderStatus.contains(order.getOrderStatus())) {
|
||||||
|
|
@ -210,7 +210,7 @@ public class OrderServiceImpl implements OrderService {
|
||||||
OrderTimeoutRecord record = new OrderTimeoutRecord(order.getId(), order.getWorkerId(), order.getDeptId(), order.getOrderStatus());
|
OrderTimeoutRecord record = new OrderTimeoutRecord(order.getId(), order.getWorkerId(), order.getDeptId(), order.getOrderStatus());
|
||||||
record.setPayMoney(getFineMoney(order));
|
record.setPayMoney(getFineMoney(order));
|
||||||
record.setFineStatus(0);
|
record.setFineStatus(0);
|
||||||
// orderFineRecordMapper.insert(record);
|
orderFineRecordMapper.insert(record);
|
||||||
orderDetailService.updateTimeout(order.getId(), 1, 1);
|
orderDetailService.updateTimeout(order.getId(), 1, 1);
|
||||||
}
|
}
|
||||||
} else if (times == 1) {
|
} else if (times == 1) {
|
||||||
|
|
@ -223,7 +223,7 @@ public class OrderServiceImpl implements OrderService {
|
||||||
OrderTimeoutRecord record = new OrderTimeoutRecord(order.getId(), order.getWorkerId(), order.getDeptId(), order.getOrderStatus());
|
OrderTimeoutRecord record = new OrderTimeoutRecord(order.getId(), order.getWorkerId(), order.getDeptId(), order.getOrderStatus());
|
||||||
record.setPayMoney(getFineMoney(order));
|
record.setPayMoney(getFineMoney(order));
|
||||||
record.setFineStatus(0);
|
record.setFineStatus(0);
|
||||||
// orderFineRecordMapper.insert(record);
|
orderFineRecordMapper.insert(record);
|
||||||
orderDetailService.updateTimeout(order.getId(), 1, 2);
|
orderDetailService.updateTimeout(order.getId(), 1, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,4 @@ public class Worker extends BaseEntity {
|
||||||
private Long exceptParentAreaId;
|
private Long exceptParentAreaId;
|
||||||
|
|
||||||
private String keyWords;
|
private String keyWords;
|
||||||
|
|
||||||
private String realName;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,16 +49,7 @@
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="getWorkerList" parameterType="com.ghy.worker.domain.Worker" resultMap="WorkerResult">
|
<select id="getWorkerList" parameterType="com.ghy.worker.domain.Worker" resultMap="WorkerResult">
|
||||||
SELECT
|
<include refid="selectWorker" /> where w.worker_id in (
|
||||||
w.worker_id, w.name, w.account, w.phone, w.password, w.open_id, w.wx_open_id, w.dept_id, w.status, w.worker_logo_url,
|
|
||||||
w.leader_team_rate, w.leader_team_money, w.create_by, w.create_time, w.update_by, w.update_time,
|
|
||||||
w.remark, w.type, w.store_status, w.alipay_account, w.alipay_name,concat(wc.surname, wc.name) as realName,
|
|
||||||
sd.dept_name, sdc.banner_url
|
|
||||||
FROM worker w
|
|
||||||
LEFT JOIN sys_dept sd ON w.dept_id = sd.dept_id
|
|
||||||
LEFT JOIN sys_dept_config sdc ON w.dept_id = sdc.dept_id
|
|
||||||
LEFT JOIN worker_certification wc on w.worker_id = wc.worker_id
|
|
||||||
where w.worker_id in (
|
|
||||||
SELECT w.worker_id FROM worker w
|
SELECT w.worker_id FROM worker w
|
||||||
LEFT JOIN worker_area wa ON wa.worker_id = w.worker_id
|
LEFT JOIN worker_area wa ON wa.worker_id = w.worker_id
|
||||||
LEFT JOIN worker_goods_category wgc ON wgc.worker_id = w.worker_id
|
LEFT JOIN worker_goods_category wgc ON wgc.worker_id = w.worker_id
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue