This commit is contained in:
PQZ 2024-09-09 23:24:22 +08:00
commit 6436423875
5 changed files with 826 additions and 598 deletions

Binary file not shown.

View File

@ -1,13 +1,53 @@
import request from '@/utils/request' import request from '@/utils/request'
// 上传文件
export function uploadFile(data,activeNum,interType) {
return request({
url: '/cardGiftActive/importCardInfo?activeNum='+activeNum+'&interType='+interType,
method: 'post',
data: data,
headers: {
'Content-Type': 'multipart/form-data'
}
})
}
// 分页查询列表 // 分页查询列表
export function getList(query) { export function getList(query) {
return request({ return request({
url: 'business/marketingActivity/cardGift', url: '/cardGiftActive',
method: 'get', method: 'get',
params: query params: query
}) })
} }
//修改
export function updateId(data) {
return request({
url: '/cardGiftActive',
method: 'put',
data: data
})
}
//新增
export function add(data) {
return request({
url: '/cardGiftActive',
method: 'post',
data: data
})
}
//下载模板
export function downloadTemplate() {
return request({
url: 'business/marketingActivity/cardGift/template',
method: 'get',
responseType: 'blob'
})
}
export function getListtj(query) { export function getListtj(query) {
return request({ return request({
url: 'business/marketingActivity/cardGift/list/11', url: 'business/marketingActivity/cardGift/list/11',

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,7 @@ import java.util.List;
* @since 2024-08-21 16:47:40 * @since 2024-08-21 16:47:40
*/ */
@RestController @RestController
@RequestMapping("cardGiftActive") @RequestMapping("/cardGiftActive")
public class CardGiftActiveController extends BaseController { public class CardGiftActiveController extends BaseController {
/** /**
* 服务对象 * 服务对象

View File

@ -2,8 +2,11 @@ package com.fuint.business.marketingActivity.cardGiftActive.entity;
import java.util.Date; import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model; import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
@ -17,6 +20,7 @@ import java.io.Serializable;
@Data @Data
public class CardGiftActive extends Model<CardGiftActive> { public class CardGiftActive extends Model<CardGiftActive> {
//主键 //主键
@TableId(type = IdType.AUTO)
private Integer id; private Integer id;
//活动编号 //活动编号
private String activeNum; private String activeNum;
@ -25,8 +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")
private Date effectiveTimeStart; private Date effectiveTimeStart;
//有效期结束时间 //有效期结束时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
private Date effectiveTimeEnd; private Date effectiveTimeEnd;
//卡类型比如纸卡 使用数据字典 card_gift_type //卡类型比如纸卡 使用数据字典 card_gift_type
private String cardType; private String cardType;
@ -39,10 +45,12 @@ public class CardGiftActive extends Model<CardGiftActive> {
//创建者 //创建者
private String createBy; private String createBy;
//创建时间 //创建时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
private Date createTime; private Date createTime;
//更新者 //更新者
private String updateBy; private String updateBy;
//更新时间 //更新时间
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
private Date updateTime; private Date updateTime;
//所属连锁店id //所属连锁店id
private Integer chainStorId; private Integer chainStorId;