bug修改
This commit is contained in:
parent
e7b2df5001
commit
75f2c2b3ad
@ -2,54 +2,49 @@ import request from "@/utils/request";
|
|||||||
|
|
||||||
// 查询油罐列表
|
// 查询油罐列表
|
||||||
export function getGiftApi(data) {
|
export function getGiftApi(data) {
|
||||||
return request({
|
return request({
|
||||||
url: 'business/integral/integralGift/queryByPage',
|
url: 'business/integral/integralGift/queryByPage',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: data
|
params: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 新增有关信息
|
|
||||||
export function insertGiftApi(data) {
|
// 新增有关信息
|
||||||
return request({
|
export function insertGiftApi(data) {
|
||||||
url: 'business/integral/integralGift',
|
return request({
|
||||||
method: 'post',
|
url: 'business/integral/integralGift',
|
||||||
data: data
|
method: 'post',
|
||||||
})
|
data: data
|
||||||
}
|
})
|
||||||
// 修改有关信息
|
}
|
||||||
export function updateGiftApi(data) {
|
|
||||||
return request({
|
// 修改有关信息
|
||||||
url: 'business/integral/integralGift',
|
export function updateGiftApi(data) {
|
||||||
method: 'put',
|
return request({
|
||||||
data: data
|
url: 'business/integral/integralGift',
|
||||||
})
|
method: 'put',
|
||||||
}
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 修改库存
|
||||||
|
export function updateGiftInventoryApi(data) {
|
||||||
|
return request({
|
||||||
|
url: 'business/integral/integralGift/updateInventory',
|
||||||
|
method: 'get',
|
||||||
|
params: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//获取全部 剩余数量 >0 的优惠券
|
||||||
|
export function getCardCoupon(data) {
|
||||||
|
return request({
|
||||||
|
url: 'cardCoupon/queryByNum',
|
||||||
|
method: 'get',
|
||||||
|
params: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 修改库存
|
|
||||||
export function updateGiftInventoryApi(data) {
|
|
||||||
return request({
|
|
||||||
url: 'business/integral/integralGift/updateInventory',
|
|
||||||
method: 'get',
|
|
||||||
params: data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//兑换券
|
|
||||||
export function getCardFavorableApi(data) {
|
|
||||||
return request({
|
|
||||||
url: 'business/marketingActivity/cardFavorable?pageNo=1&pageSize=10',
|
|
||||||
method: 'get',
|
|
||||||
params: data
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
//优惠券
|
|
||||||
export function getCardExchangeApi(data) {
|
|
||||||
return request({
|
|
||||||
url: 'business/marketingActivity/cardExchange?pageNo=1&pageSize=10',
|
|
||||||
method: 'get',
|
|
||||||
params: data
|
|
||||||
})
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -142,10 +142,11 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
<!-- 分页 -->
|
||||||
<pagination
|
<pagination
|
||||||
v-show="total>0"
|
v-show="total>0"
|
||||||
:total="total"
|
:total="total"
|
||||||
:page.sync="queryParams.page"
|
:page.sync="queryParams.pageNo"
|
||||||
:limit.sync="queryParams.pageSize"
|
:limit.sync="queryParams.pageSize"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
@ -652,8 +653,8 @@ export default {
|
|||||||
queryParams: {
|
queryParams: {
|
||||||
giftName: '',
|
giftName: '',
|
||||||
status: '',
|
status: '',
|
||||||
page:null,
|
pageNo:1,
|
||||||
pageSize:null
|
pageSize:10
|
||||||
},
|
},
|
||||||
dateRange:{},
|
dateRange:{},
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
@ -905,7 +906,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 搜索按钮操作
|
// 搜索按钮操作
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.queryParams.page = 1;
|
this.queryParams.pageNo = 1;
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
// 修改按钮
|
// 修改按钮
|
||||||
@ -919,48 +920,6 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//
|
|
||||||
// await this.cardFavorableApi();
|
|
||||||
// await this.cardExchangeApi();
|
|
||||||
// await this.selectGiftCategory();
|
|
||||||
//
|
|
||||||
// this.giftImages = []
|
|
||||||
// data.giftImages = JSON.parse(data.giftImages);
|
|
||||||
// data.giftImages.forEach(res=> {
|
|
||||||
// let newImage = {
|
|
||||||
// url: this.imagePath + res,
|
|
||||||
// fileName: res
|
|
||||||
// }
|
|
||||||
// this.giftImages.push(newImage);
|
|
||||||
// }),
|
|
||||||
//
|
|
||||||
// // data.deliveryMethod = JSON.parse(data.deliveryMethod);
|
|
||||||
//
|
|
||||||
// console.log("data",data)
|
|
||||||
// this.dataForm = data;
|
|
||||||
// this.changeGiftType(this.dataForm.giftType)
|
|
||||||
// this.changeExchange(this.dataForm.exchangeMethod)
|
|
||||||
// this.changeExpressEDIT()
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// console.log(" this.dataForm", this.dataForm)
|
|
||||||
// this.title = '修改礼品'
|
|
||||||
//
|
|
||||||
// this.open = true;
|
|
||||||
// this.getList();
|
|
||||||
},
|
|
||||||
|
|
||||||
cardFavorableApi () {
|
|
||||||
getCardFavorableApi().then(res=>{
|
|
||||||
this.cardFavorableList = res.data.records
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
cardExchangeApi () {
|
|
||||||
getCardExchangeApi().then(res=>{
|
|
||||||
this.cardExchangeApiList =res.data.records
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
|
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
|
@ -68,7 +68,8 @@ public class IntegralGiftServiceImpl implements IntegralGiftService {
|
|||||||
public IPage<IntegralGiftVO> queryByPage(@Param("page") Page page, @Param("integralGiftCategory") IntegralGift integralGift) {
|
public IPage<IntegralGiftVO> queryByPage(@Param("page") Page page, @Param("integralGiftCategory") IntegralGift integralGift) {
|
||||||
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
|
||||||
integralGift.setStoreId(nowAccountInfo.getStoreId());
|
integralGift.setStoreId(nowAccountInfo.getStoreId());
|
||||||
return integralGiftDao.queryAllByLimit(page, integralGift);
|
IPage<IntegralGiftVO> integralGiftVOIPage = integralGiftDao.queryAllByLimit(page, integralGift);
|
||||||
|
return integralGiftVOIPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,6 +65,7 @@ public class CardCouponUserController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public ResponseObject insert(@RequestBody CardCouponUser cardCouponUser) {
|
public ResponseObject insert(@RequestBody CardCouponUser cardCouponUser) {
|
||||||
|
|
||||||
return getSuccessResult(this.cardCouponUserService.save(cardCouponUser));
|
return getSuccessResult(this.cardCouponUserService.save(cardCouponUser));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,5 +98,18 @@ public class CardCouponUserController extends BaseController {
|
|||||||
Page page =new Page(pageNo,pageSize);
|
Page page =new Page(pageNo,pageSize);
|
||||||
return getSuccessResult(cardCouponUserService.queryPage(page, cardCouponUserVo));
|
return getSuccessResult(cardCouponUserService.queryPage(page, cardCouponUserVo));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据 手机号 或 核销码 和 当前店铺id 以及 优惠券类型 兑换券 和 商品兑换券 来查询用户领取 并且 未核销的
|
||||||
|
* @param str 手机号 / 核销码
|
||||||
|
*/
|
||||||
|
@GetMapping ("selectUserCardVerification")
|
||||||
|
public ResponseObject selectUserCardVerification(String str,@RequestParam (name = "couponType", required = false, defaultValue = "1,2") Integer[] couponType) {
|
||||||
|
|
||||||
|
List<CardCouponUser> list = cardCouponUserService.selectUserCardVerification(str, couponType);
|
||||||
|
|
||||||
|
return getSuccessResult(list);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,5 +59,9 @@ public interface CardCouponUserService extends IService<CardCouponUser> {
|
|||||||
* @return java.util.List<com.fuint.business.marketingActivity.cardCoupon.entity.CardCouponUser>
|
* @return java.util.List<com.fuint.business.marketingActivity.cardCoupon.entity.CardCouponUser>
|
||||||
**/
|
**/
|
||||||
List<CardCouponUser> selectListByUsed(Integer userId,List<Integer> couponIdList);
|
List<CardCouponUser> selectListByUsed(Integer userId,List<Integer> couponIdList);
|
||||||
|
|
||||||
|
|
||||||
|
List<CardCouponUser> selectUserCardVerification(String str, Integer[] couponType);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -171,5 +171,10 @@ public class CardCouponUserServiceImpl extends ServiceImpl<CardCouponUserMapper,
|
|||||||
.eq(CardCouponUser::getStatus,"1");
|
.eq(CardCouponUser::getStatus,"1");
|
||||||
return this.list(queryWrapper);
|
return this.list(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<CardCouponUser> selectUserCardVerification(String str, Integer[] couponType) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ public class CardExchangeRecordServiceImpl extends ServiceImpl<CardExchangeRecor
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public IPage select(Page page, CardExchangeRecord cardExchangeRecord) {
|
public IPage select(Page page, CardExchangeRecord cardExchangeRecord) {
|
||||||
//获取当前店铺的id和连锁店id
|
// 根据 手机号 或 核销码 和 当前店铺id 以及 优惠券类型 兑换券 和 商品兑换券 来查询用户领取 并且 未核销的
|
||||||
if (ObjectUtils.isNotEmpty(TokenUtil.getNowAccountInfo().getStoreId())) {
|
if (ObjectUtils.isNotEmpty(TokenUtil.getNowAccountInfo().getStoreId())) {
|
||||||
cardExchangeRecord.setStoreId(TokenUtil.getNowAccountInfo().getStoreId());
|
cardExchangeRecord.setStoreId(TokenUtil.getNowAccountInfo().getStoreId());
|
||||||
cardExchangeRecord.setChainStorId(storeService.getById(TokenUtil.getNowAccountInfo().getStoreId()).getChainStoreId());
|
cardExchangeRecord.setChainStorId(storeService.getById(TokenUtil.getNowAccountInfo().getStoreId()).getChainStoreId());
|
||||||
|
@ -29,10 +29,10 @@ public class CardGiftActive extends Model<CardGiftActive> {
|
|||||||
//礼品卡金额
|
//礼品卡金额
|
||||||
private Double cardAmount;
|
private Double cardAmount;
|
||||||
//有效期开始时间
|
//有效期开始时间
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
|
||||||
private Date effectiveTimeStart;
|
private Date effectiveTimeStart;
|
||||||
//有效期结束时间
|
//有效期结束时间
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
|
||||||
private Date effectiveTimeEnd;
|
private Date effectiveTimeEnd;
|
||||||
//卡类型比如纸卡 使用数据字典 card_gift_type
|
//卡类型比如纸卡 使用数据字典 card_gift_type
|
||||||
private String cardType;
|
private String cardType;
|
||||||
|
@ -122,9 +122,9 @@ public class CreditUnitServiceImpl extends ServiceImpl<CreditUnitMapper, CreditU
|
|||||||
LJStore store = storeService.selectStoreByStoreId(nowAccountInfo.getStoreId());
|
LJStore store = storeService.selectStoreByStoreId(nowAccountInfo.getStoreId());
|
||||||
creditUnit.setStoreId(store.getId());
|
creditUnit.setStoreId(store.getId());
|
||||||
creditUnit.setChainStoreId(store.getChainStoreId());
|
creditUnit.setChainStoreId(store.getChainStoreId());
|
||||||
if (creditUnit.getStaffId()==null){
|
// if (creditUnit.getStaffId()==null){
|
||||||
creditUnit.setStaffId(nowAccountInfo.getId());
|
// creditUnit.setStaffId(nowAccountInfo.getId());
|
||||||
}
|
// }
|
||||||
// 查询挂账单位是否存在
|
// 查询挂账单位是否存在
|
||||||
QueryWrapper queryWrapper = new QueryWrapper<>();
|
QueryWrapper queryWrapper = new QueryWrapper<>();
|
||||||
queryWrapper.eq("unit_name",creditUnit.getUnitName());
|
queryWrapper.eq("unit_name",creditUnit.getUnitName());
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1040,6 +1040,7 @@ import {getLodop} from "@/api/LodopFuncs";
|
|||||||
this.open1 = true
|
this.open1 = true
|
||||||
},
|
},
|
||||||
handleUpdate(data){
|
handleUpdate(data){
|
||||||
|
console.log("修改数据", data)
|
||||||
creditUnitInfo(data.id).then(res => {
|
creditUnitInfo(data.id).then(res => {
|
||||||
this.form1 = res.data
|
this.form1 = res.data
|
||||||
this.title = "修改挂账单位"
|
this.title = "修改挂账单位"
|
||||||
@ -1068,7 +1069,7 @@ import {getLodop} from "@/api/LodopFuncs";
|
|||||||
this.total3 = res.data.total;
|
this.total3 = res.data.total;
|
||||||
|
|
||||||
})
|
})
|
||||||
this.getUnitStatistic(val)
|
this.getUnitStatistic(undefined)
|
||||||
},
|
},
|
||||||
getUnitStatistic(val){
|
getUnitStatistic(val){
|
||||||
if (val!=undefined){
|
if (val!=undefined){
|
||||||
|
Loading…
Reference in New Issue
Block a user