Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
5e7b508161
@ -83,6 +83,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
initAMap() {
|
initAMap() {
|
||||||
|
console.log("86",this.pform)
|
||||||
let _this = this;
|
let _this = this;
|
||||||
AMapLoader.load({
|
AMapLoader.load({
|
||||||
key: "b5abec514cab7c71cb0572765131e6fc", // 申请好的Web端开发者Key,首次调用 load 时必填
|
key: "b5abec514cab7c71cb0572765131e6fc", // 申请好的Web端开发者Key,首次调用 load 时必填
|
||||||
@ -115,6 +116,7 @@ export default {
|
|||||||
this.setMapMarker();
|
this.setMapMarker();
|
||||||
});
|
});
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
|
|
||||||
},
|
},
|
||||||
// 标记点
|
// 标记点
|
||||||
setMapMarker() {
|
setMapMarker() {
|
||||||
|
@ -46,13 +46,22 @@
|
|||||||
<span v-if="scope.row.putType==3">积分兑换</span>
|
<span v-if="scope.row.putType==3">积分兑换</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="createTime" label="优惠内容"></el-table-column>
|
<el-table-column prop="createTime" label="优惠内容">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.remark }}</span>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="createTime" label="有效期">
|
<el-table-column prop="createTime" label="有效期">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ scope.row.effectiveDateStart }}~{{ scope.row.effectiveDateEnd }}</span>
|
<span>{{ scope.row.effectiveDateStart }}~{{ scope.row.effectiveDateEnd }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="createTime" label="已领/投放数量"></el-table-column>
|
<el-table-column prop="tfGetNum" label="已领/投放数量">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.tfGetNum || 0 }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="createTime" label="已核销"></el-table-column>
|
<el-table-column prop="createTime" label="已核销"></el-table-column>
|
||||||
<el-table-column prop="status" label="状态">
|
<el-table-column prop="status" label="状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="nbox" :class="pointerClass" @click="updateRedio('积分商城订单')">
|
<div class="nbox" :class="pointerClass" @click="updateRedio('积分商城订单')">
|
||||||
<div class="fount-box" :style="{ color: radio1 === '积分商城订单' ? '#FF770F' : '#999999' }">积分兑换订单</div>
|
<div class="fount-box" :style="{ color: radio1 === '积分商城订单' ? '#FF770F' : '#999999' }">积分商城订单</div>
|
||||||
<div class="heng-box" v-if="radio1 == '积分商城订单'"></div>
|
<div class="heng-box" v-if="radio1 == '积分商城订单'"></div>
|
||||||
<div class="heng-box" style="background-color: #FFFFFF" v-else></div>
|
<div class="heng-box" style="background-color: #FFFFFF" v-else></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,4 +19,8 @@ public class IntegralOrdersDTO extends IntegralOrders {
|
|||||||
private String coverImage;
|
private String coverImage;
|
||||||
private Long deptId;
|
private Long deptId;
|
||||||
private List<Long> storeIds;
|
private List<Long> storeIds;
|
||||||
|
/**
|
||||||
|
* 支付类型
|
||||||
|
*/
|
||||||
|
private String paymentType;
|
||||||
}
|
}
|
||||||
|
@ -181,6 +181,8 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper, All
|
|||||||
}
|
}
|
||||||
|
|
||||||
List<allorderVOo> fenxiByDaili2 = allOrderInfoMapper.getFenxiByDaili2(allOrderInfo);
|
List<allorderVOo> fenxiByDaili2 = allOrderInfoMapper.getFenxiByDaili2(allOrderInfo);
|
||||||
|
record.setPayMoney(convertPayMoneyToWanYuan(record.getPayMoney()));
|
||||||
|
|
||||||
record.setFenxiByDaili2(fenxiByDaili2);
|
record.setFenxiByDaili2(fenxiByDaili2);
|
||||||
}
|
}
|
||||||
return fenxiByDaili;
|
return fenxiByDaili;
|
||||||
@ -1693,4 +1695,17 @@ public class AllOrderInfoServiceImpl extends ServiceImpl<AllOrderInfoMapper, All
|
|||||||
sysDept.setDailyAmount(meanAmountStr);
|
sysDept.setDailyAmount(meanAmountStr);
|
||||||
sysDept.setStrokesPerDay(meanStrokeCountStr);
|
sysDept.setStrokesPerDay(meanStrokeCountStr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 将支付金额转换为万圆
|
||||||
|
* @param payMoney
|
||||||
|
*/
|
||||||
|
public Double convertPayMoneyToWanYuan(Double payMoney) {
|
||||||
|
if (payMoney != null) {
|
||||||
|
BigDecimal payMoneyInYuan = BigDecimal.valueOf(payMoney);
|
||||||
|
BigDecimal payMoneyInWanYuan = payMoneyInYuan.divide(BigDecimal.valueOf(10000), 2, RoundingMode.HALF_UP);
|
||||||
|
return payMoneyInWanYuan.doubleValue();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,8 +42,10 @@ public class SysLogController extends BaseController {
|
|||||||
* @return 所有数据
|
* @return 所有数据
|
||||||
*/
|
*/
|
||||||
@GetMapping
|
@GetMapping
|
||||||
public ResponseObject selectAll(Page<SysLog> page, SysLog sysLog) {
|
public ResponseObject selectAll(@RequestParam(value = "pageNum",defaultValue = "1") Integer pageNo,
|
||||||
|
@RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize, SysLog sysLog) {
|
||||||
LambdaQueryWrapper<SysLog> sysLogLambdaQueryWrapper = new LambdaQueryWrapper();
|
LambdaQueryWrapper<SysLog> sysLogLambdaQueryWrapper = new LambdaQueryWrapper();
|
||||||
|
Page page =new Page(pageNo,pageSize);
|
||||||
if (!StringUtils.isEmpty(sysLog.getCreateName())){
|
if (!StringUtils.isEmpty(sysLog.getCreateName())){
|
||||||
sysLogLambdaQueryWrapper.like(SysLog::getCreateName,sysLog.getCreateName());
|
sysLogLambdaQueryWrapper.like(SysLog::getCreateName,sysLog.getCreateName());
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,7 @@ import org.springframework.stereotype.Service;
|
|||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.math.RoundingMode;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -145,8 +146,8 @@ public class UserBalanceServiceImpl extends ServiceImpl<UserBalanceMapper, UserB
|
|||||||
leiJiInfo.put("tongjMoney","0");
|
leiJiInfo.put("tongjMoney","0");
|
||||||
|
|
||||||
}
|
}
|
||||||
dataByZt.put("tongjMoney",ObjectUtil.isNotEmpty(leiJiInfo.get("tongjMoney"))?leiJiInfo.get("tongjMoney"):"0");
|
dataByZt.put("tongjMoney",ObjectUtil.isNotEmpty(leiJiInfo.get("tongjMoney"))?convertYuanToWanYuan((BigDecimal) leiJiInfo.get("tongjMoney")):"0");
|
||||||
dataByZt.put("tongjXfMoney",ObjectUtil.isNotEmpty(leiJiInfo.get("tongjXfMoney"))?leiJiInfo.get("tongjXfMoney"):"0");
|
dataByZt.put("tongjXfMoney",ObjectUtil.isNotEmpty(leiJiInfo.get("tongjXfMoney"))?convertYuanToWanYuan((BigDecimal) leiJiInfo.get("tongjXfMoney")):"0");
|
||||||
return dataByZt;
|
return dataByZt;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -361,4 +362,16 @@ public class UserBalanceServiceImpl extends ServiceImpl<UserBalanceMapper, UserB
|
|||||||
// 新增会员余额信息
|
// 新增会员余额信息
|
||||||
return insertUserBalance(userBalanceAdd);
|
return insertUserBalance(userBalanceAdd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 将金额从元转换为万元
|
||||||
|
*
|
||||||
|
* @param amountInYuan 以元为单位的金额
|
||||||
|
* @return 以万元为单位的金额
|
||||||
|
*/
|
||||||
|
public static BigDecimal convertYuanToWanYuan(BigDecimal amountInYuan) {
|
||||||
|
// 将元转换为万元,使用 BigDecimal 进行精确的数学运算
|
||||||
|
BigDecimal divisor = new BigDecimal("10000");
|
||||||
|
return amountInYuan.divide(divisor, 2, RoundingMode.HALF_UP);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user