Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
f6e71dac8d
@ -186,6 +186,9 @@ public class ActiveConsumptionServiceImpl extends ServiceImpl<ActiveConsumptionM
|
|||||||
activeConsumption.setGasolineUserLevel(arrayToString(activeConsumptionDTO.getGasolineUserLevel()));
|
activeConsumption.setGasolineUserLevel(arrayToString(activeConsumptionDTO.getGasolineUserLevel()));
|
||||||
//天然气会员等级
|
//天然气会员等级
|
||||||
activeConsumption.setNaturalUserLevel(arrayToString(activeConsumptionDTO.getNaturalUserLevel()));
|
activeConsumption.setNaturalUserLevel(arrayToString(activeConsumptionDTO.getNaturalUserLevel()));
|
||||||
|
if (activeConsumptionDTO.getIsonline().equals("1")){
|
||||||
|
activeConsumption.setStatus("1");
|
||||||
|
}
|
||||||
|
|
||||||
//更新子表数据
|
//更新子表数据
|
||||||
update = updateById(activeConsumption);
|
update = updateById(activeConsumption);
|
||||||
|
@ -183,6 +183,9 @@ public class ActiveDiscountServiceImpl extends ServiceImpl<ActiveDiscountMapper,
|
|||||||
activeDiscount.setNaturalUserLevel(arrayToString(activeDiscountDTO.getNaturalUserLevel()));
|
activeDiscount.setNaturalUserLevel(arrayToString(activeDiscountDTO.getNaturalUserLevel()));
|
||||||
activeDiscount.setAdaptOil(arrayToString(activeDiscountDTO.getAdaptOil()));
|
activeDiscount.setAdaptOil(arrayToString(activeDiscountDTO.getAdaptOil()));
|
||||||
|
|
||||||
|
if (activeDiscountDTO.getIsonline().equals("1")){
|
||||||
|
activeDiscount.setStatus("1");
|
||||||
|
}
|
||||||
update = updateById(activeDiscount);
|
update = updateById(activeDiscount);
|
||||||
//更新子表数据
|
//更新子表数据
|
||||||
LambdaQueryWrapper<ActiveDiscountChild> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<ActiveDiscountChild> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package com.fuint.business.marketingActivity.activeExchange.controller;
|
package com.fuint.business.marketingActivity.activeExchange.controller;
|
||||||
|
|
||||||
import com.fuint.business.marketingActivity.activeExchange.dto.ActiveExchangeRecordDTO;
|
import com.fuint.business.marketingActivity.activeExchange.dto.ActiveExchangeRecordDTO;
|
||||||
import com.fuint.business.marketingActivity.activeExchange.service.ActiveExchangeService;
|
|
||||||
import com.fuint.business.marketingActivity.activeExchange.dto.TransferDTO;
|
import com.fuint.business.marketingActivity.activeExchange.dto.TransferDTO;
|
||||||
|
import com.fuint.business.marketingActivity.activeExchange.service.ActiveExchangeService;
|
||||||
import com.fuint.business.marketingActivity.cardExchange.entity.CardExchangeRecord;
|
import com.fuint.business.marketingActivity.cardExchange.entity.CardExchangeRecord;
|
||||||
import com.fuint.framework.web.BaseController;
|
import com.fuint.framework.web.BaseController;
|
||||||
import com.fuint.framework.web.ResponseObject;
|
import com.fuint.framework.web.ResponseObject;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package com.fuint.business.marketingActivity.activeExchange.service;
|
package com.fuint.business.marketingActivity.activeExchange.service;
|
||||||
|
|
||||||
import com.fuint.business.marketingActivity.activeExchange.dto.ActiveExchangeRecordDTO;
|
import com.fuint.business.marketingActivity.activeExchange.dto.ActiveExchangeRecordDTO;
|
||||||
import com.fuint.business.marketingActivity.activeExchange.vo.ActiveExchangeRecordVO;
|
|
||||||
import com.fuint.business.marketingActivity.activeExchange.dto.TransferDTO;
|
import com.fuint.business.marketingActivity.activeExchange.dto.TransferDTO;
|
||||||
|
import com.fuint.business.marketingActivity.activeExchange.vo.ActiveExchangeRecordVO;
|
||||||
import com.fuint.business.marketingActivity.activeExchange.vo.ExchangeFavorableVO;
|
import com.fuint.business.marketingActivity.activeExchange.vo.ExchangeFavorableVO;
|
||||||
import com.fuint.business.marketingActivity.activeExchange.vo.MaxoutVO;
|
import com.fuint.business.marketingActivity.activeExchange.vo.MaxoutVO;
|
||||||
import com.fuint.business.marketingActivity.cardExchange.entity.CardExchangeRecord;
|
import com.fuint.business.marketingActivity.cardExchange.entity.CardExchangeRecord;
|
||||||
@ -12,7 +12,7 @@ import java.util.List;
|
|||||||
public interface ActiveExchangeService {
|
public interface ActiveExchangeService {
|
||||||
/**
|
/**
|
||||||
* 分页查询所有数据
|
* 分页查询所有数据
|
||||||
* @param page
|
* @param
|
||||||
* @param cardExchangeRecord
|
* @param cardExchangeRecord
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ -29,7 +29,7 @@ public interface ActiveExchangeService {
|
|||||||
* 查询满减活动
|
* 查询满减活动
|
||||||
* @param pageNo
|
* @param pageNo
|
||||||
* @param pageSize
|
* @param pageSize
|
||||||
* @param transferVO
|
* @param transferDTO
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<MaxoutVO> selectConsumptionList(Integer pageNo, Integer pageSize, TransferDTO transferDTO);
|
List<MaxoutVO> selectConsumptionList(Integer pageNo, Integer pageSize, TransferDTO transferDTO);
|
||||||
|
@ -19,7 +19,6 @@ import com.fuint.business.marketingActivity.cardFavorable.entity.CardFavorable;
|
|||||||
import com.fuint.business.marketingActivity.cardFavorable.entity.CardFavorableRecord;
|
import com.fuint.business.marketingActivity.cardFavorable.entity.CardFavorableRecord;
|
||||||
import com.fuint.business.marketingActivity.cardFavorable.service.CardFavorableRecordService;
|
import com.fuint.business.marketingActivity.cardFavorable.service.CardFavorableRecordService;
|
||||||
import com.fuint.business.marketingActivity.cardFavorable.service.CardFavorableService;
|
import com.fuint.business.marketingActivity.cardFavorable.service.CardFavorableService;
|
||||||
import com.fuint.business.marketingActivity.cardFavorable.vo.CardFavorableVO;
|
|
||||||
import com.fuint.business.userManager.service.LJUserGradeService;
|
import com.fuint.business.userManager.service.LJUserGradeService;
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
|
@ -3,7 +3,6 @@ package com.fuint.business.marketingActivity.activeExchange.vo;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
public class ExchangeFavorableVO implements Serializable {
|
public class ExchangeFavorableVO implements Serializable {
|
||||||
|
|
||||||
//主键id
|
//主键id
|
||||||
private Integer id;
|
private Integer id;
|
||||||
//优惠券名称
|
//优惠券名称
|
||||||
|
@ -176,6 +176,10 @@ public class ActiveFullminusServiceImpl extends ServiceImpl<ActiveFullminusMappe
|
|||||||
activeFullminus.setNaturalUserLevel(arrayToString(activeFullminusDTO.getNaturalUserLevel()));
|
activeFullminus.setNaturalUserLevel(arrayToString(activeFullminusDTO.getNaturalUserLevel()));
|
||||||
activeFullminus.setAdaptOil(arrayToString(activeFullminusDTO.getAdaptOil()));
|
activeFullminus.setAdaptOil(arrayToString(activeFullminusDTO.getAdaptOil()));
|
||||||
|
|
||||||
|
if (activeFullminusDTO.getIsonline().equals("1")){
|
||||||
|
activeFullminus.setStatus("1");
|
||||||
|
}
|
||||||
|
|
||||||
updateById(activeFullminus);
|
updateById(activeFullminus);
|
||||||
//更新子表数据
|
//更新子表数据
|
||||||
LambdaQueryWrapper<ActiveDiscountChild> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<ActiveDiscountChild> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
@ -151,6 +151,9 @@ public class ActiveNewlywedsServiceImpl extends ServiceImpl<ActiveNewlywedsMappe
|
|||||||
//奖励类型
|
//奖励类型
|
||||||
activeNewlyweds.setCourtesyReward(arrayToString(activeNewlywedsDTO.getCourtesyReward()));
|
activeNewlyweds.setCourtesyReward(arrayToString(activeNewlywedsDTO.getCourtesyReward()));
|
||||||
|
|
||||||
|
if (activeNewlywedsDTO.getIsonline().equals("1")){
|
||||||
|
activeNewlyweds.setStatus("2");
|
||||||
|
}
|
||||||
update = updateById(activeNewlyweds);
|
update = updateById(activeNewlyweds);
|
||||||
//更新子表数据
|
//更新子表数据
|
||||||
LambdaQueryWrapper<ActiveNewlywedsChild> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<ActiveNewlywedsChild> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
@ -74,6 +74,9 @@ public class CardExchangeController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public ResponseObject update(@RequestBody CardExchange cardExchange) {
|
public ResponseObject update(@RequestBody CardExchange cardExchange) {
|
||||||
|
if (cardExchange.getIsonline().equals("1")){
|
||||||
|
cardExchange.setStatus("1");
|
||||||
|
}
|
||||||
return getSuccessResult(this.cardExchangeService.updateById(cardExchange));
|
return getSuccessResult(this.cardExchangeService.updateById(cardExchange));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ public class CardFavorableServiceImpl extends ServiceImpl<CardFavorableMapper, C
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改数据
|
* 修改数据
|
||||||
* @param cardFavorable
|
* @param cardFavorableDTO
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@ -137,6 +137,9 @@ public class CardFavorableServiceImpl extends ServiceImpl<CardFavorableMapper, C
|
|||||||
checkTime += s + ",";
|
checkTime += s + ",";
|
||||||
}
|
}
|
||||||
cardFavorable.setCheckTime(checkTime);
|
cardFavorable.setCheckTime(checkTime);
|
||||||
|
if (cardFavorableDTO.getIsonline().equals("1")){
|
||||||
|
cardFavorable.setStatus("1");
|
||||||
|
}
|
||||||
return updateById(cardFavorable);
|
return updateById(cardFavorable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,9 +6,6 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.fuint.business.marketingActivity.activeNewlyweds.controller.vo.ActiveNewlywedsVO;
|
|
||||||
import com.fuint.business.marketingActivity.activeNewlyweds.entity.ActiveNewlyweds;
|
|
||||||
import com.fuint.business.marketingActivity.activeNewlyweds.entity.ActiveNewlywedsChild;
|
|
||||||
import com.fuint.business.marketingActivity.cardValue.dto.CardValueDTO;
|
import com.fuint.business.marketingActivity.cardValue.dto.CardValueDTO;
|
||||||
import com.fuint.business.marketingActivity.cardValue.entity.CardValue;
|
import com.fuint.business.marketingActivity.cardValue.entity.CardValue;
|
||||||
import com.fuint.business.marketingActivity.cardValue.entity.CardValueChild;
|
import com.fuint.business.marketingActivity.cardValue.entity.CardValueChild;
|
||||||
@ -119,6 +116,7 @@ public class CardValueController extends BaseController {
|
|||||||
if (CollectionUtils.isNotEmpty(activeNewlywedsChildList)){
|
if (CollectionUtils.isNotEmpty(activeNewlywedsChildList)){
|
||||||
//封装VO返回
|
//封装VO返回
|
||||||
BeanUtils.copyProperties(cardValue,cardValueVO);
|
BeanUtils.copyProperties(cardValue,cardValueVO);
|
||||||
|
cardValueVO.setMembershipLevel(cardValue.getMembershipLevel().split(","));
|
||||||
cardValueVO.setCardValueChildList(activeNewlywedsChildList);
|
cardValueVO.setCardValueChildList(activeNewlywedsChildList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -145,6 +143,8 @@ public class CardValueController extends BaseController {
|
|||||||
CardValue cardValue = new CardValue();
|
CardValue cardValue = new CardValue();
|
||||||
cardValue.setStartTime(new Date());
|
cardValue.setStartTime(new Date());
|
||||||
cardValue.setEndTime(new Date());
|
cardValue.setEndTime(new Date());
|
||||||
|
//柴油会员等级
|
||||||
|
cardValue.setMembershipLevel(arrayToString(cardValueDTO.getMembershipLevel()));
|
||||||
if (ObjectUtils.isNotEmpty(cardValueDTO)){
|
if (ObjectUtils.isNotEmpty(cardValueDTO)){
|
||||||
BeanUtils.copyProperties(cardValueDTO,cardValue);
|
BeanUtils.copyProperties(cardValueDTO,cardValue);
|
||||||
save = this.cardValueService.save(cardValue);
|
save = this.cardValueService.save(cardValue);
|
||||||
@ -181,7 +181,9 @@ public class CardValueController extends BaseController {
|
|||||||
//更新新人有礼活动
|
//更新新人有礼活动
|
||||||
CardValue cardValue = new CardValue();
|
CardValue cardValue = new CardValue();
|
||||||
BeanUtils.copyProperties(cardValueDTO,cardValue);
|
BeanUtils.copyProperties(cardValueDTO,cardValue);
|
||||||
|
if (cardValueDTO.getIsonline().equals("1")){
|
||||||
|
cardValue.setActiveStatus("2");
|
||||||
|
}
|
||||||
update =this.cardValueService.updateById(cardValue);
|
update =this.cardValueService.updateById(cardValue);
|
||||||
//更新子表数据
|
//更新子表数据
|
||||||
LambdaQueryWrapper<CardValueChild> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<CardValueChild> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
@ -65,7 +65,7 @@ public class CardValueDTO extends Model<CardValue> {
|
|||||||
//面向群体 1:普通群体 2:等级会员
|
//面向群体 1:普通群体 2:等级会员
|
||||||
private String groupOriented;
|
private String groupOriented;
|
||||||
//会员等级 会员等级 0:新人会员 1:V1会员 2:V2会员.....
|
//会员等级 会员等级 0:新人会员 1:V1会员 2:V2会员.....
|
||||||
private String membershipLevel;
|
private String[] membershipLevel;
|
||||||
//排序 (数值越大,顺序越在前)
|
//排序 (数值越大,顺序越在前)
|
||||||
private Integer sort;
|
private Integer sort;
|
||||||
//新人有礼卡券列表
|
//新人有礼卡券列表
|
||||||
@ -85,6 +85,14 @@ public class CardValueDTO extends Model<CardValue> {
|
|||||||
return cardValueChildList;
|
return cardValueChildList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String[] getMembershipLevel() {
|
||||||
|
return membershipLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMembershipLevel(String[] membershipLevel) {
|
||||||
|
this.membershipLevel = membershipLevel;
|
||||||
|
}
|
||||||
|
|
||||||
public void setCardValueChildList(List<CardValueChild> cardValueChildList) {
|
public void setCardValueChildList(List<CardValueChild> cardValueChildList) {
|
||||||
this.cardValueChildList = cardValueChildList;
|
this.cardValueChildList = cardValueChildList;
|
||||||
}
|
}
|
||||||
@ -282,14 +290,6 @@ public class CardValueDTO extends Model<CardValue> {
|
|||||||
this.groupOriented = groupOriented;
|
this.groupOriented = groupOriented;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMembershipLevel() {
|
|
||||||
return membershipLevel;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMembershipLevel(String membershipLevel) {
|
|
||||||
this.membershipLevel = membershipLevel;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort() {
|
public Integer getSort() {
|
||||||
return sort;
|
return sort;
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ public class CardValueVO extends Model<CardValue> {
|
|||||||
//面向群体 1:普通群体 2:等级会员
|
//面向群体 1:普通群体 2:等级会员
|
||||||
private String groupOriented;
|
private String groupOriented;
|
||||||
//会员等级 会员等级 0:新人会员 1:V1会员 2:V2会员.....
|
//会员等级 会员等级 0:新人会员 1:V1会员 2:V2会员.....
|
||||||
private String membershipLevel;
|
private String[] membershipLevel;
|
||||||
//排序 (数值越大,顺序越在前)
|
//排序 (数值越大,顺序越在前)
|
||||||
private Integer sort;
|
private Integer sort;
|
||||||
//新人有礼卡券列表
|
//新人有礼卡券列表
|
||||||
@ -80,6 +80,14 @@ public class CardValueVO extends Model<CardValue> {
|
|||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
|
public String[] getMembershipLevel() {
|
||||||
|
return membershipLevel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMembershipLevel(String[] membershipLevel) {
|
||||||
|
this.membershipLevel = membershipLevel;
|
||||||
|
}
|
||||||
|
|
||||||
public Integer getId() {
|
public Integer getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -272,14 +280,6 @@ public class CardValueVO extends Model<CardValue> {
|
|||||||
this.groupOriented = groupOriented;
|
this.groupOriented = groupOriented;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMembershipLevel() {
|
|
||||||
return membershipLevel;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMembershipLevel(String membershipLevel) {
|
|
||||||
this.membershipLevel = membershipLevel;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getSort() {
|
public Integer getSort() {
|
||||||
return sort;
|
return sort;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user