修改bug

This commit is contained in:
齐天大圣 2024-01-05 15:11:53 +08:00
parent c671650574
commit 2b6d0a3a73
4 changed files with 18 additions and 260 deletions

View File

@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; 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 com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
@ -16,6 +17,7 @@ import java.io.Serializable;
* @since 2023-10-31 09:42:02 * @since 2023-10-31 09:42:02
*/ */
@SuppressWarnings("serial") @SuppressWarnings("serial")
@Data
public class CardValue extends Model<CardValue> { public class CardValue extends Model<CardValue> {
//主键id //主键id
@TableId(type = IdType.AUTO) @TableId(type = IdType.AUTO)
@ -82,257 +84,5 @@ public class CardValue 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 Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getChainStoreId() {
return chainStoreId;
}
public void setChainStoreId(Integer chainStorId) {
this.chainStoreId = chainStoreId;
}
public Integer getStoreId() {
return storeId;
}
public void setStoreId(Integer storeId) {
this.storeId = storeId;
}
public String getIsonline() {
return isonline;
}
public void setIsonline(String isonline) {
this.isonline = isonline;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public Double getBidBalance() {
return bidBalance;
}
public void setBidBalance(Double bidBalance) {
this.bidBalance = bidBalance;
}
public Double getRechargeBalance() {
return rechargeBalance;
}
public void setRechargeBalance(Double rechargeBalance) {
this.rechargeBalance = rechargeBalance;
}
public Double getGiftBalance() {
return giftBalance;
}
public void setGiftBalance(Double giftBalance) {
this.giftBalance = giftBalance;
}
public Integer getPoints() {
return points;
}
public void setPoints(Integer points) {
this.points = points;
}
public Integer getGrowthValue() {
return growthValue;
}
public void setGrowthValue(Integer growthValue) {
this.growthValue = growthValue;
}
public Integer getRefuelMoney() {
return refuelMoney;
}
public void setRefuelMoney(Integer refuelMoney) {
this.refuelMoney = refuelMoney;
}
public String getFringeBenefit() {
return fringeBenefit;
}
public void setFringeBenefit(String fringeBenefit) {
this.fringeBenefit = fringeBenefit;
}
public Integer getParticipationNo() {
return participationNo;
}
public void setParticipationNo(Integer participationNo) {
this.participationNo = participationNo;
}
public String getEmployeeCommission() {
return employeeCommission;
}
public void setEmployeeCommission(String employeeCommission) {
this.employeeCommission = employeeCommission;
}
public String getRoyaltyType() {
return royaltyType;
}
public void setRoyaltyType(String royaltyType) {
this.royaltyType = royaltyType;
}
public Double getPercentageCommissions() {
return percentageCommissions;
}
public void setPercentageCommissions(Double percentageCommissions) {
this.percentageCommissions = percentageCommissions;
}
public Double getAmountCommission() {
return amountCommission;
}
public void setAmountCommission(Double amountCommission) {
this.amountCommission = amountCommission;
}
public String getActiveTime() {
return activeTime;
}
public void setActiveTime(String activeTime) {
this.activeTime = activeTime;
}
public String getActivityProgress() {
return activityProgress;
}
public void setActivityProgress(String activityProgress) {
this.activityProgress = activityProgress;
}
public Date getStartTime() {
return startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public String getActiveStatus() {
return activeStatus;
}
public void setActiveStatus(String activeStatus) {
this.activeStatus = activeStatus;
}
public String getPaymentValue() {
return paymentValue;
}
public void setPaymentValue(String paymentValue) {
this.paymentValue = paymentValue;
}
public String getGroupOriented() {
return groupOriented;
}
public void setGroupOriented(String groupOriented) {
this.groupOriented = groupOriented;
}
public String getMembershipLevel() {
return membershipLevel;
}
public void setMembershipLevel(String membershipLevel) {
this.membershipLevel = membershipLevel;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
/**
* 获取主键值
*
* @return 主键值
*/
@Override
protected Serializable pkVal() {
return this.id;
}
} }

View File

@ -100,17 +100,17 @@ public class CardValueServiceImpl extends ServiceImpl<CardValueMapper, CardValue
LambdaQueryWrapper<CardValue> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<CardValue> queryWrapper = new LambdaQueryWrapper<>();
//构建查询条件 //构建查询条件
if (ObjectUtils.isNotEmpty(cardValue.getIsonline())){ if (ObjectUtils.isNotEmpty(cardValue.getIsonline())){
queryWrapper.eq(CardValue::getIsonline,cardValue.getIsonline()); queryWrapper.eq(CardValue::getIsonline,"0");
} }
if (ObjectUtils.isNotEmpty(cardValue.getActiveStatus())){ if (ObjectUtils.isNotEmpty(cardValue.getActiveStatus())){
queryWrapper.eq(CardValue::getActiveStatus,cardValue.getActiveStatus()); queryWrapper.eq(CardValue::getActiveStatus,"1");
} }
if (ObjectUtils.isNotEmpty(cardValue.getStoreId())){ if (ObjectUtils.isNotEmpty(cardValue.getStoreId())){
queryWrapper.eq(CardValue::getStoreId,cardValue.getStoreId()); queryWrapper.eq(CardValue::getStoreId,cardValue.getStoreId());
} }
queryWrapper.orderByDesc(CardValue::getCreateTime); queryWrapper.orderByDesc(CardValue::getCreateTime);
IPage page1 = page(page, queryWrapper); IPage page1 = page(page, queryWrapper);
List<CardValue> records = page1.getRecords(); /*List<CardValue> records = page1.getRecords();
CardValueVOs cardValueVO = new CardValueVOs(); CardValueVOs cardValueVO = new CardValueVOs();
ArrayList<CardValueVOs> cardValueVOs = new ArrayList<>(); ArrayList<CardValueVOs> cardValueVOs = new ArrayList<>();
//返回储值卡活动进度状态 //返回储值卡活动进度状态
@ -137,7 +137,7 @@ public class CardValueServiceImpl extends ServiceImpl<CardValueMapper, CardValue
BeanUtils.copyProperties(record,cardValueVO); BeanUtils.copyProperties(record,cardValueVO);
cardValueVOs.add(cardValueVO); cardValueVOs.add(cardValueVO);
} }
page1.setRecords(cardValueVOs); page1.setRecords(cardValueVOs);*/
return page1; return page1;
} }

View File

@ -8,6 +8,7 @@ import com.fuint.common.dto.AccountInfo;
import com.fuint.common.util.TokenUtil; import com.fuint.common.util.TokenUtil;
import com.fuint.framework.web.BaseController; import com.fuint.framework.web.BaseController;
import com.fuint.framework.web.ResponseObject; import com.fuint.framework.web.ResponseObject;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -30,7 +31,7 @@ public class LJStaffController extends BaseController {
* @return * @return
*/ */
@GetMapping("/list") @GetMapping("/list")
public ResponseObject list(LJStaff staff, public ResponseObject list(@Param("staff") LJStaff staff,
@RequestParam(value = "page",defaultValue = "1") Integer pageNo, @RequestParam(value = "page",defaultValue = "1") Integer pageNo,
@RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){ @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){
Page page =new Page(pageNo,pageSize); Page page =new Page(pageNo,pageSize);

View File

@ -149,6 +149,9 @@
export default { export default {
data() { data() {
return { return {
query: {
storeId: ''
},
chainStoreId: '', chainStoreId: '',
cardRecordId: '', cardRecordId: '',
cardFavorableId: '', cardFavorableId: '',
@ -199,6 +202,7 @@
components: {}, components: {},
onLoad(option) { onLoad(option) {
this.storeId = uni.getStorageSync("storeId"); this.storeId = uni.getStorageSync("storeId");
console.log("5555555555555", this.storeId);
this.chainStoreId = uni.getStorageSync('chainStoreId'); this.chainStoreId = uni.getStorageSync('chainStoreId');
console.log("66666666666", this.chainStoreId); console.log("66666666666", this.chainStoreId);
this.actinput = option.id this.actinput = option.id
@ -212,9 +216,11 @@
console.log("囤油"); console.log("囤油");
this.getFuelCars(); this.getFuelCars();
} }
},
onShow() {
this.getStaffList() this.getStaffList()
}, },
methods: { methods: {
// //
addFuleCarRecords() { addFuleCarRecords() {
@ -288,8 +294,6 @@
}) })
return return
} }
request({ request({
url: 'business/marketingActivity/cardValueRecord', url: 'business/marketingActivity/cardValueRecord',
method: 'post', method: 'post',
@ -480,6 +484,9 @@
request({ request({
url: '/business/member/staff/list', url: '/business/member/staff/list',
method: 'get', method: 'get',
params: {
storeId: uni.getStorageSync("storeId")
}
}).then(res => { }).then(res => {
this.columns.push(res.data.records) this.columns.push(res.data.records)
console.log("columns", this.columns); console.log("columns", this.columns);