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

Commit a1efff72 authored by jiangxiulong's avatar jiangxiulong

Merge branch 'dev_20111115' of...

Merge branch 'dev_20111115' of http://gitlab.zhengzai.tv/dongjingwei/liquidnet-bus-v1 into dev_20111115
parents a57e811a 59d50061
...@@ -47,7 +47,7 @@ public class CandyMgtCouponBuildParam { ...@@ -47,7 +47,7 @@ public class CandyMgtCouponBuildParam {
@Min(value = 1, message = "有效期不能小于1") @Min(value = 1, message = "有效期不能小于1")
@ApiModelProperty(required = true, value = "有效期(单位天)", example = "30") @ApiModelProperty(required = true, value = "有效期(单位天)", example = "30")
private Integer validity; private Integer validity;
@Min(value = 1, message = "兑换有效期不能小于1") // @Min(value = 1, message = "兑换有效期不能小于1")
@ApiModelProperty(required = false, value = "兑换有效期(单位天)", example = "30") @ApiModelProperty(required = false, value = "兑换有效期(单位天)", example = "30")
private Integer redeemValidity; private Integer redeemValidity;
//private LocalDateTime redeemStart; //private LocalDateTime redeemStart;
......
...@@ -272,7 +272,7 @@ public class CandyMgtCouponAdminController extends BaseController { ...@@ -272,7 +272,7 @@ public class CandyMgtCouponAdminController extends BaseController {
} }
} }
break; break;
case 2: case 2:// TODO: 2021/11/9 PM上线前临时加的发放类型(2-积分兑换)
buildParam.setEventType(0); buildParam.setEventType(0);
buildParam.setEventLimit(null); buildParam.setEventLimit(null);
break; break;
......
...@@ -162,6 +162,7 @@ ...@@ -162,6 +162,7 @@
<div class="layui-input-block" style="display: flex"> <div class="layui-input-block" style="display: flex">
<input type="radio" value="0" class="typeTwo" name="typeTwo" checked><span>用户输入兑换</span> <input type="radio" value="0" class="typeTwo" name="typeTwo" checked><span>用户输入兑换</span>
<input type="radio" value="1" class="typeTwo" name="typeTwo"><span>发送至“我的券”</span> <input type="radio" value="1" class="typeTwo" name="typeTwo"><span>发送至“我的券”</span>
<input type="radio" value="2" class="typeTwo" name="typeTwo"><span>积分兑换</span>
</div> </div>
</div> </div>
...@@ -180,22 +181,22 @@ ...@@ -180,22 +181,22 @@
</div> </div>
<div class="changeData"> <div class="changeData">
<div id="modalOne"> <div id="modalOne">
<div class="dataOne"> <div id="dataOne1" class="dataOne">
<span class="labelName"><i class="required">*</i>数量:</span> <span class="labelName"><i class="required">*</i>数量:</span>
<input type="text" id="num" required /> <input type="text" id="num" value="1" required />
<span id="unit"></span> <span id="unit"></span>
</div> </div>
<div class="dataOne"> <div class="dataOne">
<span class="labelName"><i class="required">*</i>券的有效期:</span> <span class="labelName"><i class="required">*</i>券的有效期:</span>
<input type="text" id="ticketTime" required /> <input type="text" id="ticketTime" required />
<p class="prompt">*可兑换的时间</p> <p class="prompt">*兑换后的有效时间</p>
</div> </div>
<div class="dataOne" id="exchange"> <div class="dataOne" id="exchange">
<span class="labelName"><i class="required">*</i>兑换有效期:</span> <span class="labelName"><i class="required">*</i>兑换有效期:</span>
<input type="text" id="exchangeTime" required /> <input type="text" id="exchangeTime" required />
<p class="prompt">*兑换后的有效时间</p> <p class="prompt">*可兑换的时间</p>
</div> </div>
</div> </div>
</div> </div>
...@@ -425,11 +426,23 @@ ...@@ -425,11 +426,23 @@
$('.sendType').show(); $('.sendType').show();
$('#exchangeTime').val('') $('#exchangeTime').val('')
$('#exchange').hide(); $('#exchange').hide();
$('#dataOne1').show();
if (sendType == 2) { if (sendType == 2) {
$('.phoneNumber').show(); $('.phoneNumber').show();
} }
} else if (typeTwo == 2) {
$('#unit').text('张')
$('#iptModal').hide();
$('.sendType').hide();
$('.phoneNumber').hide();
$('.test1').val('');
$('.phoneNum').val('');
$('.test1').hide();
$('#exchange').hide();
$('#dataOne1').hide();
} else { } else {
$('#unit').text('张') $('#unit').text('张')
$('#dataOne1').show();
$('#iptModal').hide(); $('#iptModal').hide();
$('#exchange').show(); $('#exchange').show();
$('.sendType').hide(); $('.sendType').hide();
...@@ -474,7 +487,7 @@ ...@@ -474,7 +487,7 @@
function create() { function create() {
if (!$('#valFace').val() || !$('#title').val() || !$('#num').val() || !$('#ticketTime').val() || !$('#describeTxt').val()) { if (!$('#valFace').val() || !$('#title').val() || !$('#num').val() || !$('#ticketTime').val() || !$('#describeTxt').val()) {
return layer.msg('请将必填项输入完整~!'); return layer.msg('请将必填项输入完整~!');
if (typeTwo != 1) { if (typeTwo == 0) {
if (!$('#exchangeTime').val()) { if (!$('#exchangeTime').val()) {
return layer.msg('请将必填项输入完整~!'); return layer.msg('请将必填项输入完整~!');
} }
......
...@@ -158,6 +158,7 @@ ...@@ -158,6 +158,7 @@
<div class="layui-input-block" style="display: flex"> <div class="layui-input-block" style="display: flex">
<input type="radio" value="0" class="typeTwo" name="typeTwo" checked><span>用户输入兑换</span> <input type="radio" value="0" class="typeTwo" name="typeTwo" checked><span>用户输入兑换</span>
<input type="radio" value="1" class="typeTwo" name="typeTwo"><span>发送至“我的券”</span> <input type="radio" value="1" class="typeTwo" name="typeTwo"><span>发送至“我的券”</span>
<input type="radio" value="2" class="typeTwo" name="typeTwo"><span>积分兑换</span>
</div> </div>
</div> </div>
...@@ -176,9 +177,9 @@ ...@@ -176,9 +177,9 @@
</div> </div>
<div class="changeData"> <div class="changeData">
<div id="modalOne"> <div id="modalOne">
<div class="dataOne"> <div id="dataOne1" class="dataOne">
<span class="labelName"><i class="required">*</i>数量:</span> <span class="labelName"><i class="required">*</i>数量:</span>
<input type="text" id="num" required /> <input type="text" value="1" id="num" required />
</div> </div>
<div class="dataOne"> <div class="dataOne">
...@@ -359,9 +360,19 @@ ...@@ -359,9 +360,19 @@
$('.sendType').show(); $('.sendType').show();
$('#exchangeTime').val('') $('#exchangeTime').val('')
$('#exchange').hide(); $('#exchange').hide();
$('#dataOne1').show();
if (sendType == 2) { if (sendType == 2) {
$('.phoneNumber').show(); $('.phoneNumber').show();
} }
} else if (typeTwo == 2) {
$('#iptModal').hide();
$('#exchange').hide();
$('.sendType').hide();
$('.phoneNumber').hide();
$('.test1').val('');
$('.phoneNum').val('');
$('.test1').hide();
$('#dataOne1').hide();
} else { } else {
$('#iptModal').hide(); $('#iptModal').hide();
$('#exchange').show(); $('#exchange').show();
...@@ -370,6 +381,7 @@ ...@@ -370,6 +381,7 @@
$('.test1').val(''); $('.test1').val('');
$('.phoneNum').val(''); $('.phoneNum').val('');
$('.test1').hide(); $('.test1').hide();
$('#dataOne1').show();
} }
}); });
$("input[name=sendType]").change(function(e){ $("input[name=sendType]").change(function(e){
...@@ -407,7 +419,7 @@ ...@@ -407,7 +419,7 @@
function create() { function create() {
if (!$('#title').val() || !$('#num').val() || !$('#ticketTime').val() || !$('#describeTxt').val()) { if (!$('#title').val() || !$('#num').val() || !$('#ticketTime').val() || !$('#describeTxt').val()) {
return layer.msg('请将必填项输入完整~!'); return layer.msg('请将必填项输入完整~!');
if (typeTwo != 1) { if (typeTwo == 0) {
if (!$('#exchangeTime').val()) { if (!$('#exchangeTime').val()) {
return layer.msg('请将必填项输入完整~!'); return layer.msg('请将必填项输入完整~!');
} }
......
...@@ -165,6 +165,7 @@ ...@@ -165,6 +165,7 @@
<div class="layui-input-block" style="display: flex"> <div class="layui-input-block" style="display: flex">
<input type="radio" value="0" class="typeTwo" name="typeTwo" checked><span>用户输入兑换</span> <input type="radio" value="0" class="typeTwo" name="typeTwo" checked><span>用户输入兑换</span>
<input type="radio" value="1" class="typeTwo" name="typeTwo"><span>发送至“我的券”</span> <input type="radio" value="1" class="typeTwo" name="typeTwo"><span>发送至“我的券”</span>
<input type="radio" value="2" class="typeTwo" name="typeTwo"><span>积分兑换</span>
</div> </div>
</div> </div>
...@@ -183,9 +184,9 @@ ...@@ -183,9 +184,9 @@
</div> </div>
<div class="changeData"> <div class="changeData">
<div id="modalOne"> <div id="modalOne">
<div class="dataOne"> <div id="dataOne1" class="dataOne">
<span class="labelName"><i class="required">*</i>数量:</span> <span class="labelName"><i class="required">*</i>数量:</span>
<input type="text" id="num" required /> <input type="text" id="num" value="1" required />
<span id="unit"></span> <span id="unit"></span>
</div> </div>
<div class="dataOne"> <div class="dataOne">
...@@ -427,9 +428,20 @@ ...@@ -427,9 +428,20 @@
$('.sendType').show(); $('.sendType').show();
$('#exchangeTime').val('') $('#exchangeTime').val('')
$('#exchange').hide(); $('#exchange').hide();
$('#dataOne1').show();
if (sendType == 2) { if (sendType == 2) {
$('.phoneNumber').show(); $('.phoneNumber').show();
} }
} else if (typeTwo == 2) {
$('#unit').text('张')
$('#iptModal').hide();
$('#exchange').hide();
$('.sendType').hide();
$('.phoneNumber').hide();
$('.test1').val('');
$('.phoneNum').val('');
$('.test1').hide();
$('#dataOne1').hide();
} else { } else {
$('#unit').text('张') $('#unit').text('张')
$('#iptModal').hide(); $('#iptModal').hide();
...@@ -439,6 +451,7 @@ ...@@ -439,6 +451,7 @@
$('.test1').val(''); $('.test1').val('');
$('.phoneNum').val(''); $('.phoneNum').val('');
$('.test1').hide(); $('.test1').hide();
$('#dataOne1').show();
} }
}); });
$("input[name=sendType]").change(function(e){ $("input[name=sendType]").change(function(e){
...@@ -476,7 +489,7 @@ ...@@ -476,7 +489,7 @@
function create() { function create() {
if (!$('#title').val() || !$('#num').val() || !$('#ticketTime').val() || !$('#valOver').val() || !$('#valMinus').val() || !$('#describeTxt').val()) { if (!$('#title').val() || !$('#num').val() || !$('#ticketTime').val() || !$('#valOver').val() || !$('#valMinus').val() || !$('#describeTxt').val()) {
return layer.msg('请将必填项输入完整~!'); return layer.msg('请将必填项输入完整~!');
if (typeTwo != 1) { if (typeTwo == 0) {
if (!$('#exchangeTime').val()) { if (!$('#exchangeTime').val()) {
return layer.msg('请将必填项输入完整~!'); return layer.msg('请将必填项输入完整~!');
} }
......
...@@ -156,6 +156,7 @@ ...@@ -156,6 +156,7 @@
<div class="layui-input-block" style="display: flex"> <div class="layui-input-block" style="display: flex">
<input type="radio" value="0" class="typeTwo" name="typeTwo" checked><span>用户输入兑换</span> <input type="radio" value="0" class="typeTwo" name="typeTwo" checked><span>用户输入兑换</span>
<input type="radio" value="1" class="typeTwo" name="typeTwo"><span>发送至“我的券”</span> <input type="radio" value="1" class="typeTwo" name="typeTwo"><span>发送至“我的券”</span>
<input type="radio" value="2" class="typeTwo" name="typeTwo"><span>积分兑换</span>
</div> </div>
</div> </div>
<div class="scope_application" id="scope_application"> <div class="scope_application" id="scope_application">
...@@ -173,9 +174,9 @@ ...@@ -173,9 +174,9 @@
</div> </div>
<div class="changeData"> <div class="changeData">
<div id="modalOne"> <div id="modalOne">
<div class="dataOne"> <div id="dataOne1" class="dataOne">
<span class="labelName"><i class="required">*</i>数量:</span> <span class="labelName"><i class="required">*</i>数量:</span>
<input type="text" id="num" /> <input type="text" value="1" id="num" />
</div> </div>
<div class="dataOne"> <div class="dataOne">
...@@ -266,15 +267,24 @@ ...@@ -266,15 +267,24 @@
$('.sendType').show(); $('.sendType').show();
$('#exchangeTime').val('') $('#exchangeTime').val('')
$('#exchange').hide(); $('#exchange').hide();
$('#dataOne1').show();
if (sendType == 2) { if (sendType == 2) {
$('.phoneNumber').show(); $('.phoneNumber').show();
} }
} else if (typeTwo == 2) {
$('#unit').text('张')
$('#exchange').hide();
$('.sendType').hide();
$('.phoneNumber').hide();
$('.phoneNum').val('');
$('#dataOne1').hide();
} else { } else {
$('#unit').text('张') $('#unit').text('张')
$('#exchange').show(); $('#exchange').show();
$('.sendType').hide(); $('.sendType').hide();
$('.phoneNumber').hide(); $('.phoneNumber').hide();
$('.phoneNum').val(''); $('.phoneNum').val('');
$('#dataOne1').show();
} }
}); });
$("#searchIpt").focus(function(){ $("#searchIpt").focus(function(){
...@@ -301,7 +311,7 @@ ...@@ -301,7 +311,7 @@
function create() { function create() {
if (!$('#title').val() || !$('#num').val() || !$('#ticketTime').val() || !$('#discount').val() || !$('#describeTxt').val()) { if (!$('#title').val() || !$('#num').val() || !$('#ticketTime').val() || !$('#discount').val() || !$('#describeTxt').val()) {
return layer.msg('请将必填项输入完整~!'); return layer.msg('请将必填项输入完整~!');
if (typeTwo != 1) { if (typeTwo == 0) {
if (!$('#exchangeTime').val()) { if (!$('#exchangeTime').val()) {
return layer.msg('请将必填项输入完整~!'); return layer.msg('请将必填项输入完整~!');
} }
......
...@@ -388,7 +388,8 @@ ...@@ -388,7 +388,8 @@
keyword: searchVal, keyword: searchVal,
busiType: typeOne, busiType: typeOne,
pageSize: 20, pageSize: 20,
pageNum: 1 pageNum: 1,
bindType: 2
} }
let str = ''; let str = '';
promiseMethods(prefix + "/list",'post',data,'application/x-www-form-urlencoded').then(res=>{ promiseMethods(prefix + "/list",'post',data,'application/x-www-form-urlencoded').then(res=>{
......
...@@ -253,7 +253,8 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa ...@@ -253,7 +253,8 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa
CandyMgtCoupon initMgtCoupon = new CandyMgtCoupon(); CandyMgtCoupon initMgtCoupon = new CandyMgtCoupon();
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.setEventAmt(parameter.getEventAmt()); initMgtCoupon.setEventAmt(parameter.getEventAmt());
initMgtCoupon.setEventType(parameter.getEventType()); initMgtCoupon.setEventType(parameter.getEventType());
initMgtCoupon.setEventLimit(parameter.getEventLimit()); initMgtCoupon.setEventLimit(parameter.getEventLimit());
...@@ -274,9 +275,7 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa ...@@ -274,9 +275,7 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa
@Transactional @Transactional
public boolean saveMgtCouponInfo(CandyCoupon initCoupon, CandyMgtCoupon initMgtCoupon, List<CandyCouponRule> initCouponRuleList) { public boolean saveMgtCouponInfo(CandyCoupon initCoupon, CandyMgtCoupon initMgtCoupon, List<CandyCouponRule> initCouponRuleList) {
int insertCt = candyCouponMapper.insert(initCoupon); int insertCt = candyCouponMapper.insert(initCoupon);
if (initCoupon.getBindType() != 2) {// TODO: 2021/11/9 PM上线前临时加的发放类型(2-积分兑换),这里根据发放类型不创建发放任务 insertCt += candyMgtCouponMapper.insert(initMgtCoupon);
insertCt += candyMgtCouponMapper.insert(initMgtCoupon);
}
boolean saveBatch = true; boolean saveBatch = true;
if (!CollectionUtils.isEmpty(initCouponRuleList)) { if (!CollectionUtils.isEmpty(initCouponRuleList)) {
......
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