供应商 付款金额 负数问题

付款记录
购物车回滚库存问题
日库存记录 定时任务
This commit is contained in:
2024-07-01 18:11:26 +08:00
parent 7bf66ab106
commit 7ea3ee3ec0
10 changed files with 194 additions and 27 deletions

View File

@@ -0,0 +1,89 @@
package cn.ysk.cashier.mybatis.entity;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
/**
* (TbShopPurveyorTransactPay)表实体类
*
* @author ww
* @since 2024-07-01 11:23:28
*/
@SuppressWarnings("serial")
public class TbShopPurveyorTransactPay extends Model<TbShopPurveyorTransactPay> {
//自增id
private Integer id;
//进出帐id
private Integer transactId;
//付款方式
private String payType;
//付款金额
private BigDecimal paidAmount;
//备注
private String remark;
//创建时间
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getTransactId() {
return transactId;
}
public void setTransactId(Integer transactId) {
this.transactId = transactId;
}
public String getPayType() {
return payType;
}
public void setPayType(String payType) {
this.payType = payType;
}
public BigDecimal getPaidAmount() {
return paidAmount;
}
public void setPaidAmount(BigDecimal paidAmount) {
this.paidAmount = paidAmount;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public TbShopPurveyorTransactPay() {
}
public TbShopPurveyorTransactPay(Integer transactId, String payType, BigDecimal paidAmount, String remark, Date createTime) {
this.transactId = transactId;
this.payType = payType;
this.paidAmount = paidAmount;
this.remark = remark;
this.createTime = createTime;
}
}

View File

@@ -0,0 +1,15 @@
package cn.ysk.cashier.mybatis.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.ysk.cashier.mybatis.entity.TbShopPurveyorTransactPay;
/**
* (TbShopPurveyorTransactPay)表数据库访问层
*
* @author ww
* @since 2024-07-01 11:23:28
*/
public interface TbShopPurveyorTransactPayMapper extends BaseMapper<TbShopPurveyorTransactPay> {
}

View File

@@ -0,0 +1,15 @@
package cn.ysk.cashier.mybatis.service;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.ysk.cashier.mybatis.entity.TbShopPurveyorTransactPay;
/**
* (TbShopPurveyorTransactPay)表服务接口
*
* @author ww
* @since 2024-07-01 11:23:28
*/
public interface TbShopPurveyorTransactPayService extends IService<TbShopPurveyorTransactPay> {
}

View File

@@ -0,0 +1,19 @@
package cn.ysk.cashier.mybatis.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.ysk.cashier.mybatis.mapper.TbShopPurveyorTransactPayMapper;
import cn.ysk.cashier.mybatis.entity.TbShopPurveyorTransactPay;
import cn.ysk.cashier.mybatis.service.TbShopPurveyorTransactPayService;
import org.springframework.stereotype.Service;
/**
* (TbShopPurveyorTransactPay)表服务实现类
*
* @author ww
* @since 2024-07-01 11:23:28
*/
@Service("tbShopPurveyorTransactPayService")
public class TbShopPurveyorTransactPayServiceImpl extends ServiceImpl<TbShopPurveyorTransactPayMapper, TbShopPurveyorTransactPay> implements TbShopPurveyorTransactPayService {
}