账单录入

This commit is contained in:
2023-02-07 20:19:32 +08:00
parent d246ed3a42
commit 34149bfba4
5 changed files with 8 additions and 7 deletions

View File

@@ -61,7 +61,7 @@ public class AccBillDTO implements Serializable {
private String moneyIcon; private String moneyIcon;
private Date date; private String date;
private String remark; private String remark;
} }

View File

@@ -17,6 +17,6 @@ import java.util.List;
*/ */
public interface AccBillMapper extends BaseMapper<AccBill> { public interface AccBillMapper extends BaseMapper<AccBill> {
List<AccBillDTO> listAccToday(String userId, Date date); List<AccBillDTO> listAccToday(String userId, String date);
AccBillDTO getAccBill(Integer sid); AccBillDTO getAccBill(Integer sid);
} }

View File

@@ -53,7 +53,7 @@ public class AccBill implements Serializable {
@ApiModelProperty(value = "-1 转账 -2 还款") @ApiModelProperty(value = "-1 转账 -2 还款")
private Integer moneyType; private Integer moneyType;
private Date date; private String date;
private String remark; private String remark;

View File

@@ -5,6 +5,7 @@ import com.quinn.pojo.AccBill;
import com.quinn.mapper.AccBillMapper; import com.quinn.mapper.AccBillMapper;
import com.quinn.service.AccBillService; import com.quinn.service.AccBillService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.quinn.utils.QuinnUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.annotation.Resource; import javax.annotation.Resource;
@@ -27,7 +28,7 @@ public class AccBillServiceImpl extends ServiceImpl<AccBillMapper, AccBill> impl
@Override @Override
public List<AccBillDTO> listAccToday(String userId) { public List<AccBillDTO> listAccToday(String userId) {
return accBillMapper.listAccToday(userId,new Date()); return accBillMapper.listAccToday(userId, QuinnUtils.getViewStrFromDate(new Date()));
} }
@Override @Override

View File

@@ -16,14 +16,14 @@ CREATE TABLE `qn_acc_bill` (
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id', `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`name` varchar(255) NOT NULL, `name` varchar(255) NOT NULL,
`user_id` varchar(200) NOT NULL, `user_id` varchar(200) NOT NULL,
`money` double(9,2) NOT NULL COMMENT '金额', `money` double(9,2) NOT NULL DEFAULT 0 COMMENT '金额',
`balance` double(9,2) NOT NULL COMMENT '余额', `balance` double(9,2) NOT NULL DEFAULT 0 COMMENT '余额',
`bill_type` varchar(20) DEFAULT NULL COMMENT '账单类型', `bill_type` varchar(20) DEFAULT NULL COMMENT '账单类型',
`from_account` int(10) DEFAULT NULL COMMENT '转账&还款需要', `from_account` int(10) DEFAULT NULL COMMENT '转账&还款需要',
`account` int(10) DEFAULT NULL COMMENT '账户分类ID', `account` int(10) DEFAULT NULL COMMENT '账户分类ID',
`money_type` int(10) DEFAULT NULL COMMENT '-1 转账 -2 还款', `money_type` int(10) DEFAULT NULL COMMENT '-1 转账 -2 还款',
`money_type_icon` varchar(255) DEFAULT NULL, `money_type_icon` varchar(255) DEFAULT NULL,
`date` datetime DEFAULT NULL, `date` date DEFAULT NULL,
`remark` varchar(500) DEFAULT NULL, `remark` varchar(500) DEFAULT NULL,
`gmt_create` datetime NOT NULL COMMENT '收藏创建时间', `gmt_create` datetime NOT NULL COMMENT '收藏创建时间',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)