refactor: 删除Blog模块

This commit is contained in:
2025-06-10 23:29:25 +08:00
parent 1bc78e80b7
commit 43500ede69
107 changed files with 155 additions and 1535 deletions

View File

@@ -3,4 +3,4 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/sweet_hut?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8&useSSL=false
username: root
password: estun@medical
password: 123456

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cxx.home.dao.BillDao">
<resultMap id="billRecordResultMap" type="com.cxx.common.dto.bill.BillRecordDto">
<resultMap id="billRecordResultMap" type="com.cxx.home.dto.bill.BillRecordDto">
<id property="id" column="id"/>
<result property="bookName" column="bookName"/>
<result property="type" column="type"/>
@@ -16,7 +16,7 @@
column="id" select="queryBillImage"/>
</resultMap>
<resultMap id="billSummaryResultMap" type="com.cxx.common.dto.bill.BillSummaryDto">
<resultMap id="billSummaryResultMap" type="com.cxx.home.dto.bill.BillSummaryDto">
<id property="id" column="id"/>
<result property="bookName" column="bookName"/>
<result property="type" column="type"/>
@@ -134,7 +134,7 @@
</if>
</select>
<select id="queryBillPay" resultType="com.cxx.common.dto.bill.BillItemDto">
<select id="queryBillPay" resultType="com.cxx.home.dto.bill.BillItemDto">
SELECT id AS id,
name AS name,
icon AS icon,
@@ -142,7 +142,7 @@
FROM bill_pay
</select>
<select id="queryBillBook" resultType="com.cxx.common.dto.bill.BillItemDto">
<select id="queryBillBook" resultType="com.cxx.home.dto.bill.BillItemDto">
SELECT id AS id,
name AS name,
icon AS icon,
@@ -150,7 +150,7 @@
FROM bill_book
</select>
<select id="queryBillCategory" resultType="com.cxx.common.dto.bill.BillCategoryDto">
<select id="queryBillCategory" resultType="com.cxx.home.dto.bill.BillCategoryDto">
SELECT a.id AS id,
b.name AS bookName,
a.name AS name,

View File

@@ -1,37 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cxx.home.dao.BudgetDao">
<select id="queryBudget" resultType="com.cxx.common.dto.budget.BudgetDto">
SELECT a.id AS id,
b.name AS category,
a.project AS project,
a.content AS content,
a.vendor AS vendor,
a.budget AS budget,
a.actual AS actual,
a.pay_time AS payTime,
a.remake AS remake
FROM budget a
LEFT JOIN budget_category b on a.category_id = b.id
WHERE b.name = #{category}
</select>
<select id="queryBudgetRankStats" resultType="com.cxx.common.dto.StatsChartDto">
SELECT a.content AS name,
a.actual AS value
FROM budget a
LEFT JOIN budget_category b on a.category_id = b.id
WHERE b.name = #{category}
ORDER BY a.actual DESC
LIMIT 10
</select>
<select id="queryBudgetProjectStats" resultType="com.cxx.common.dto.StatsChartDto">
SELECT a.project AS name,
SUM(a.actual) AS value
FROM budget a
LEFT JOIN budget_category b on a.category_id = b.id
WHERE b.name = #{category}
GROUP BY a.project
</select>
</mapper>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cxx.home.dao.PlanDao">
<select id="queryPlan" resultType="com.cxx.common.dto.plan.PlanDto">
<select id="queryPlan" resultType="com.cxx.home.dto.plan.PlanDto">
SELECT id AS id,
title AS title,
content AS content,
@@ -32,7 +32,7 @@
date DESC
</select>
<select id="queryPlanStats" resultType="com.cxx.common.dto.plan.PlanStatsDto">
<select id="queryPlanStats" resultType="com.cxx.home.dto.plan.PlanStatsDto">
SELECT COUNT(*) AS totalCount,
IFNULL(SUM(completed), 0) AS completedCount,
IFNULL(SUM(CASE WHEN completed = 0 AND date <![CDATA[ >]]> CURDATE() THEN 1 ELSE 0 END), 0) AS currentCount,