
7 changed files with 105 additions and 14 deletions
@ -0,0 +1,33 @@ |
|||||
|
package com.yxt.supervise.customer.biz.csmcash; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.yxt.common.core.domain.EntityWithId; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
@TableName("csm_cash_log") |
||||
|
public class CsmCashLog extends EntityWithId { |
||||
|
|
||||
|
private String sid; //sid
|
||||
|
@JsonFormat( |
||||
|
pattern = "yyyy-MM-dd HH:mm:ss", |
||||
|
timezone = "GMT+8" |
||||
|
) |
||||
|
private Date createTime = new Date(); // 记录创建时间
|
||||
|
private String remarks; //备注信息
|
||||
|
private int isEnable = 0; //是否有效:0=未生效(长期未生效的记录可删除),1=已生效
|
||||
|
private int status = 0; //状态:0:未上传;1:上传完成正导入数据库;2:导入完成创建报表;3:报表完成创建Excel;4:完成
|
||||
|
private String dataDate; //数据日期
|
||||
|
private String fileFullPath; //文件完整路径
|
||||
|
private String outFilePath; //汇总文件路径
|
||||
|
private String fileUrl; //文件下载地址
|
||||
|
private int allNum = 0; //总记录数
|
||||
|
private int validNum = 0; //有效记录数
|
||||
|
private int durations = 0; //程序运行时长
|
||||
|
private int errRowNum = 0; //出错的条数
|
||||
|
private double salesAmountYesterday = 0; //昨日销售总计金额(元)
|
||||
|
private double cashedAmountToday = 0; //今日应回款金额(元)
|
||||
|
private double cashedAmountTodayReal = 0; //今日实际回款金额(元)
|
||||
|
private double cashedAmountDifferent = 0; //回款差额金额(元)
|
||||
|
} |
@ -0,0 +1,8 @@ |
|||||
|
package com.yxt.supervise.customer.biz.csmcash; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
@Mapper |
||||
|
public interface CsmCashLogMapper extends BaseMapper<CsmCashLog> { |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.yxt.supervise.customer.biz.csmcash; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Service |
||||
|
public class CsmCashLogService extends ServiceImpl<CsmCashLogMapper, CsmCashLog> { |
||||
|
public List<CsmCashLog> listByDataDate(String dataDate) { |
||||
|
QueryWrapper<CsmCashLog> qw = new QueryWrapper<>(); |
||||
|
qw.eq("dataDate", dataDate); |
||||
|
return baseMapper.selectList(qw); |
||||
|
} |
||||
|
|
||||
|
public CsmCashLog fetchEnableOfDay(String dataDate) { |
||||
|
QueryWrapper<CsmCashLog> qw = new QueryWrapper<>(); |
||||
|
qw.eq("isEnable", 1); |
||||
|
qw.eq("dataDate", dataDate); |
||||
|
return baseMapper.selectOne(qw); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue