支付的 信息回填 , 角色模板 排序
This commit is contained in:
@@ -44,7 +44,7 @@ public class SysRoleTemplateServiceImpl extends ServiceImpl<SysRoleTemplateMappe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<SysRoleTemplate> listInfo(Long pid) {
|
public List<SysRoleTemplate> listInfo(Long pid) {
|
||||||
QueryWrapper queryWrapper = new QueryWrapper().eq(SysRoleTemplate::getPid, pid);
|
QueryWrapper queryWrapper = new QueryWrapper().eq(SysRoleTemplate::getPid, pid).orderBy(SysRoleTemplate::getSort, false);
|
||||||
List<SysRoleTemplate> list = list(queryWrapper);
|
List<SysRoleTemplate> list = list(queryWrapper);
|
||||||
|
|
||||||
// 转成 map,便于通过 id 找节点
|
// 转成 map,便于通过 id 找节点
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -100,7 +101,16 @@ public class PointsGoodPayServiceImpl implements PointsGoodPayService {
|
|||||||
record.setStatus("待支付");
|
record.setStatus("待支付");
|
||||||
record.setIsDel(1);
|
record.setIsDel(1);
|
||||||
goodsRecordService.save(record);
|
goodsRecordService.save(record);
|
||||||
return payService.ltPayPointsGoods(ip, param, record.getId());
|
CzgResult<Map<String, Object>> result = CzgResult.success();
|
||||||
|
CzgResult<Map<String, Object>> mapCzgResult = payService.ltPayPointsGoods(ip, param, record.getId());
|
||||||
|
if (200 != mapCzgResult.getCode()) {
|
||||||
|
return mapCzgResult;
|
||||||
|
}
|
||||||
|
Map<String, Object> resultMap = new HashMap<>(2);
|
||||||
|
resultMap.put("payInfo", mapCzgResult.getData());
|
||||||
|
resultMap.put("goodsRecord", record);
|
||||||
|
result.setData(resultMap);
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
//正常处理
|
//正常处理
|
||||||
@@ -155,6 +165,7 @@ public class PointsGoodPayServiceImpl implements PointsGoodPayService {
|
|||||||
ShopCoupon coupon = shopCouponService.getById(goods.getCouponId());
|
ShopCoupon coupon = shopCouponService.getById(goods.getCouponId());
|
||||||
if (coupon != null) {
|
if (coupon != null) {
|
||||||
record.setCouponJson(JSONObject.toJSONString(coupon));
|
record.setCouponJson(JSONObject.toJSONString(coupon));
|
||||||
|
record.fillCouponInfo();
|
||||||
}
|
}
|
||||||
record.setStatus("已完成");
|
record.setStatus("已完成");
|
||||||
record.setCheckoutTime(LocalDateTime.now());
|
record.setCheckoutTime(LocalDateTime.now());
|
||||||
|
|||||||
Reference in New Issue
Block a user