记得上下班打卡 | git大法好,push需谨慎

Commit 78a26b88 authored by jiangxiulong's avatar jiangxiulong

Merge remote-tracking branch 'origin/dev_20111115' into dev_20111115

parents e937b544 bf8dc9ea
...@@ -272,7 +272,7 @@ public class CandyMgtCouponAdminController extends BaseController { ...@@ -272,7 +272,7 @@ public class CandyMgtCouponAdminController extends BaseController {
} }
} }
break; break;
case 2:// TODO: 2021/11/9 PM上线前临时加的发放类型(2-积分兑换) case 2:// TODO: 2021/11/9 PM上线前临时加的券领取类型(2-积分兑换)
buildParam.setEventType(0); buildParam.setEventType(0);
buildParam.setEventLimit(null); buildParam.setEventLimit(null);
break; break;
......
...@@ -218,6 +218,7 @@ ...@@ -218,6 +218,7 @@
function memberOrderRefund () { function memberOrderRefund () {
if ($.validate.form("form-member-order-refund")) { if ($.validate.form("form-member-order-refund")) {
$.operate.saveModal(ctx + "adam/order/orderList/refund", $('#form-member-order-refund').serialize(), memberOrderRefundCallback); $.operate.saveModal(ctx + "adam/order/orderList/refund", $('#form-member-order-refund').serialize(), memberOrderRefundCallback);
$('#member-refund-form').hide();
} }
} }
...@@ -230,8 +231,10 @@ ...@@ -230,8 +231,10 @@
setTimeout("refreshTab()", 1500); setTimeout("refreshTab()", 1500);
} else if (result.code == web_status.WARNING) { } else if (result.code == web_status.WARNING) {
$.modal.alertWarning(result.msg); $.modal.alertWarning(result.msg);
$('#member-refund-form').show();
} else { } else {
$.modal.alertError(result.msg); $.modal.alertError(result.msg);
$('#member-refund-form').show();
} }
} }
</script> </script>
......
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.value.length>0) { if (res.value.length>0) {
let filterData = []; let filterData = [];
searchData = res.value; searchData = [...res.value];
let obj = {}; let obj = {};
searchData.reduce((cur,next) => { searchData.reduce((cur,next) => {
if (!obj[next.performancesId]) { if (!obj[next.performancesId]) {
...@@ -294,7 +294,7 @@ ...@@ -294,7 +294,7 @@
let str = ''; let str = '';
promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.data.length>0) { if (res.data.length>0) {
searchData = res.data; searchData = [...res.data];
searchData.forEach((item,index)=>{ searchData.forEach((item,index)=>{
str+= `<li class="selectData" onclick="selectOne('${item.id}','${item.title}')">${item.title}</li>` str+= `<li class="selectData" onclick="selectOne('${item.id}','${item.title}')">${item.title}</li>`
}) })
......
...@@ -267,7 +267,7 @@ ...@@ -267,7 +267,7 @@
let str = ''; let str = '';
promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.value.length>0) { if (res.value.length>0) {
searchData = res.value; searchData = [...res.value];
let obj = {}; let obj = {};
searchData.reduce((cur,next) => { searchData.reduce((cur,next) => {
if (!obj[next.performancesId]) { if (!obj[next.performancesId]) {
...@@ -288,7 +288,7 @@ ...@@ -288,7 +288,7 @@
let str = ''; let str = '';
promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.data.length>0) { if (res.data.length>0) {
searchData = res.data; searchData = [...res.data];
searchData.forEach((item,index)=>{ searchData.forEach((item,index)=>{
str+= `<li class="selectData" onclick="selectOne('${item.id}','id')">${item.title}</li>` str+= `<li class="selectData" onclick="selectOne('${item.id}','id')">${item.title}</li>`
}) })
......
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
let str = ''; let str = '';
promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.value.length>0) { if (res.value.length>0) {
searchData = res.value; searchData = [...res.value];
let obj = {}; let obj = {};
searchData.reduce((cur,next) => { searchData.reduce((cur,next) => {
if (!obj[next.performancesId]) { if (!obj[next.performancesId]) {
...@@ -296,7 +296,7 @@ ...@@ -296,7 +296,7 @@
let str = ''; let str = '';
promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.data.length>0) { if (res.data.length>0) {
searchData = res.data; searchData = [...res.data];
searchData.forEach((item,index)=>{ searchData.forEach((item,index)=>{
str+= `<li class="selectData" onclick="selectOne('${item.id}','${item.title}')">${item.title}</li>` str+= `<li class="selectData" onclick="selectOne('${item.id}','${item.title}')">${item.title}</li>`
}) })
......
...@@ -218,7 +218,7 @@ ...@@ -218,7 +218,7 @@
let str = ''; let str = '';
promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(ctx+'kylin/base/performance/status','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.value.length>0) { if (res.value.length>0) {
searchData = res.value; searchData = [...res.value];
let obj = {}; let obj = {};
searchData.reduce((cur,next) => { searchData.reduce((cur,next) => {
if (!obj[next.performancesId]) { if (!obj[next.performancesId]) {
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
let str = ''; let str = '';
promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(phpMallUrl + '/admin/goodListForQuick','get',data,'application/x-www-form-urlencoded').then(res=>{
if (res.data.length>0) { if (res.data.length>0) {
searchData = res.data; searchData = [...res.data];
searchData.forEach((item,index)=>{ searchData.forEach((item,index)=>{
str+= `<li class="selectData" onclick="selectOne('${item.id}','id')">${item.title}</li>` str+= `<li class="selectData" onclick="selectOne('${item.id}','id')">${item.title}</li>`
}) })
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
[[${mgtCouponInfoDto?.validity}]] 天 [[${mgtCouponInfoDto?.validity}]] 天
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group" id="show_detail_redeemValidity">
<label class="col-sm-3 control-label">兑换有效期:</label> <label class="col-sm-3 control-label">兑换有效期:</label>
<div class="form-control-static col-sm-9"> <div class="form-control-static col-sm-9">
[[${mgtCouponInfoDto?.redeemValidity}]] 天 [[${mgtCouponInfoDto?.redeemValidity}]] 天
...@@ -90,7 +90,12 @@ ...@@ -90,7 +90,12 @@
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<script th:inline="javascript"> <script th:inline="javascript">
const detailVo = /*[[${mgtCouponInfoDto}]]*/{};
if (!$.isEmptyObject(detailVo) && detailVo.bindType === 0) {
$("#show_detail_redeemValidity").show();
} else {
$("#show_detail_redeemValidity").hide();
}
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
[[${mgtCouponInfoDto?.validity}]] 天 [[${mgtCouponInfoDto?.validity}]] 天
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group" id="show_detail_redeemValidity">
<label class="col-sm-3 control-label">兑换有效期:</label> <label class="col-sm-3 control-label">兑换有效期:</label>
<div class="form-control-static col-sm-9"> <div class="form-control-static col-sm-9">
[[${mgtCouponInfoDto?.redeemValidity}]] 天 [[${mgtCouponInfoDto?.redeemValidity}]] 天
...@@ -90,7 +90,12 @@ ...@@ -90,7 +90,12 @@
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<script th:inline="javascript"> <script th:inline="javascript">
const detailVo = /*[[${mgtCouponInfoDto}]]*/{};
if (!$.isEmptyObject(detailVo) && detailVo.bindType === 0) {
$("#show_detail_redeemValidity").show();
} else {
$("#show_detail_redeemValidity").hide();
}
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
[[${mgtCouponInfoDto?.validity}]] 天 [[${mgtCouponInfoDto?.validity}]] 天
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group" id="show_detail_redeemValidity">
<label class="col-sm-3 control-label">兑换有效期:</label> <label class="col-sm-3 control-label">兑换有效期:</label>
<div class="form-control-static col-sm-9"> <div class="form-control-static col-sm-9">
[[${mgtCouponInfoDto?.redeemValidity}]] 天 [[${mgtCouponInfoDto?.redeemValidity}]] 天
...@@ -90,7 +90,12 @@ ...@@ -90,7 +90,12 @@
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<script th:inline="javascript"> <script th:inline="javascript">
const detailVo = /*[[${mgtCouponInfoDto}]]*/{};
if (!$.isEmptyObject(detailVo) && detailVo.bindType === 0) {
$("#show_detail_redeemValidity").show();
} else {
$("#show_detail_redeemValidity").hide();
}
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -126,10 +126,16 @@ ...@@ -126,10 +126,16 @@
// align: 'center', // align: 'center',
formatter: function (value, row, index) { formatter: function (value, row, index) {
let dataArr = []; let dataArr = [];
if (row.status == 7) {
return `<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="$.operate.editTab('${row.itemId}')">编辑</span>
<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="openShelvesModal('${row.itemId}', 1, '确定下架此商品吗?')">上架</span>
<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="openShelvesModal('${row.itemId}', '-1', '确定删除此商品吗?')">删除</span>`
} else {
return `<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="$.operate.editTab('${row.itemId}')">编辑</span> return `<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="$.operate.editTab('${row.itemId}')">编辑</span>
<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="openShelvesModal('${row.itemId}', 7, '确定下架此商品吗?')">下架</span> <span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="openShelvesModal('${row.itemId}', 7, '确定下架此商品吗?')">下架</span>
<span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="openShelvesModal('${row.itemId}', '-1', '确定删除此商品吗?')">删除</span>` <span class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="openShelvesModal('${row.itemId}', '-1', '确定删除此商品吗?')">删除</span>`
} }
}
}] }]
}; };
$.table.init(options); $.table.init(options);
......
...@@ -512,7 +512,7 @@ ...@@ -512,7 +512,7 @@
delete data.startTime delete data.startTime
delete data.endTime delete data.endTime
} }
promiseMethods(ctx+'stone/item','post',data).then(res=>{ promiseMethods(ctx+'stone/item','put',data).then(res=>{
layer.msg('' + res); layer.msg('' + res);
if (res.code != undefined && res.code != web_status.SUCCESS) { if (res.code != undefined && res.code != web_status.SUCCESS) {
$.modal.alertWarning(res.msg); $.modal.alertWarning(res.msg);
......
...@@ -286,10 +286,11 @@ ...@@ -286,10 +286,11 @@
let arr = ['谢谢惠顾', '积分', '代金券', '满减券', '优先购买', '实物']; let arr = ['谢谢惠顾', '积分', '代金券', '满减券', '优先购买', '实物'];
let str = ''; let str = '';
arr.forEach((item,i)=> { arr.forEach((item,i)=> {
i++
if (i == data[index].prizeType) { if (i == data[index].prizeType) {
str += `<option value="${i+1}" selected>${item}</option>` str += `<option value="${i}" selected>${item}</option>`
} else { } else {
str += `<option value="${i+1}">${item}</option>` str += `<option value="${i}">${item}</option>`
} }
}) })
let dom = `<select id='prizeType${index}' class='form-control' name=''> let dom = `<select id='prizeType${index}' class='form-control' name=''>
...@@ -361,7 +362,7 @@ ...@@ -361,7 +362,7 @@
title: '奖品剩余', title: '奖品剩余',
formatter: function(value, row, index) { formatter: function(value, row, index) {
if (itemId) { if (itemId) {
return row.prizeNum - row.WinPrizeNum return (row.prizeNum - row.WinPrizeNum) || '-'
} else { } else {
return '-' return '-'
} }
......
...@@ -254,7 +254,7 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa ...@@ -254,7 +254,7 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa
initMgtCoupon.setMcouponId(IDGenerator.nextMilliId()); initMgtCoupon.setMcouponId(IDGenerator.nextMilliId());
initMgtCoupon.setCouponId(initCoupon.getCouponId()); initMgtCoupon.setCouponId(initCoupon.getCouponId());
// initMgtCoupon.setState(0); // initMgtCoupon.setState(0);
initMgtCoupon.setState(initCoupon.getBindType() == 2 ? 1 : 0);// TODO: 2021/11/9 PM上线前临时加的发放类型(2-积分兑换),这里根据发放类型设置该记录不执行发放 initMgtCoupon.setState(initCoupon.getBindType() == 2 ? 1 : 0);// TODO: 2021/11/9 PM上线前临时加的券领取类型(2-积分兑换),这里根据发放类型设置该记录不执行发放
initMgtCoupon.setEventAmt(parameter.getEventAmt()); initMgtCoupon.setEventAmt(parameter.getEventAmt());
initMgtCoupon.setEventType(parameter.getEventType()); initMgtCoupon.setEventType(parameter.getEventType());
initMgtCoupon.setEventLimit(parameter.getEventLimit()); initMgtCoupon.setEventLimit(parameter.getEventLimit());
......
...@@ -60,6 +60,22 @@ public class PlatformCandyCouponService extends ServiceImpl<CandyCouponMapper, C ...@@ -60,6 +60,22 @@ public class PlatformCandyCouponService extends ServiceImpl<CandyCouponMapper, C
this.processingCouponCode(mgtCoupon, coupon); this.processingCouponCode(mgtCoupon, coupon);
break; break;
case 1: case 1:
// switch (mgtCoupon.getEventType()) {// 发放类型[1-会员|2-手机号|10-全体用户]
// case 1:
// this.processForAllMember(mgtCoupon, coupon, couponRuleDtoList);
// break;
// case 2:
// this.processForUserCoupon(mgtCoupon, coupon, couponRuleDtoList);
// break;
// case 10:
// this.processForCommonCoupon(mgtCoupon, coupon, couponRuleDtoList);
// break;
// default:
// log.warn("发放券任务:无法处理,无效的发放类型[mcouponId:{},eventType:{}]", mgtCoupon.getMcouponId(), mgtCoupon.getEventType());
// break;
// }
// break;
case 2:// TODO: 2021/11/9 PM上线前临时加的券领取类型(2-积分兑换),这里`1-发放至用户|2-积分兑换`做同逻辑处理
switch (mgtCoupon.getEventType()) {// 发放类型[1-会员|2-手机号|10-全体用户] switch (mgtCoupon.getEventType()) {// 发放类型[1-会员|2-手机号|10-全体用户]
case 1: case 1:
this.processForAllMember(mgtCoupon, coupon, couponRuleDtoList); this.processForAllMember(mgtCoupon, coupon, couponRuleDtoList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment