feat:增加奖状证书模块

This commit is contained in:
2026-04-01 23:24:30 +08:00
parent 638a1a9186
commit 17b20a3d4b
61 changed files with 425 additions and 71 deletions

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.AnniversaryDao">
<select id="queryAnniversary" resultType="com.cxx.home.dto.anniversary.AnniversaryDto">
<select id="queryAnniversary" resultType="com.cxx.home.dto.AnniversaryDto">
SELECT id AS id,
title AS title,
date AS date,

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.AssetDao">
<select id="queryAsset" resultType="com.cxx.home.dto.asset.AssetDto">
<select id="queryAsset" resultType="com.cxx.home.dto.AssetDto">
SELECT id AS id,
category AS category,
NAME AS NAME,

View File

@@ -0,0 +1,46 @@
<?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.AwardDao">
<resultMap id="awardResultMap" type="com.cxx.home.dto.AwardDto">
<id property="id" column="id"/>
<result property="name" column="name"/>
<result property="type" column="type"/>
<result property="date" column="date"/>
<result property="location" column="location"/>
<result property="owner" column="owner"/>
<result property="remark" column="remark"/>
<collection property="imageList" ofType="java.lang.String"
column="id" select="queryAwardImage"/>
</resultMap>
<select id="queryAwardImage" resultType="java.lang.String">
SELECT image_url AS imageUrl
FROM award_image
WHERE award_id = #{id}
</select>
<select id="queryAwardList" resultMap="awardResultMap">
SELECT
id AS id,
name AS name,
type AS type,
date AS date,
location AS location,
owner AS owner,
remark AS remark
FROM
award
<where>
<if test="query.type != null and query.type != ''">
type = #{query.type}
</if>
</where>
</select>
<insert id="insertAwardImage">
INSERT INTO award_image (award_id, image_url) VALUES
<foreach collection="list" item="item" separator=",">
(#{awardId}, #{item})
</foreach>
</insert>
</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.JournalDao">
<select id="queryJournal" resultType="com.cxx.home.dto.journal.JournalDto">
<select id="queryJournal" resultType="com.cxx.home.dto.JournalDto">
SELECT id AS id,
date AS date,
location AS location,

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.LedgerDao">
<select id="queryLedger" resultType="com.cxx.home.dto.ledger.LedgerDto">
<select id="queryLedger" resultType="com.cxx.home.dto.LedgerDto">
SELECT id AS id,
book AS book,
category AS category,

View File

@@ -1,16 +1,16 @@
<?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.PasswordDao">
<select id="query" resultType="com.cxx.home.dto.password.PasswordDto">
<select id="queryPasswordList" resultType="com.cxx.home.dto.PasswordDto">
SELECT
id AS id,
title AS title,
website AS website,
username AS username,
password AS password,
category AS category,
owner AS owner,
remark AS remark
id AS id,
title AS title,
website AS website,
username AS username,
password AS password,
category AS category,
owner AS owner,
remark AS remark
FROM
password
<where>

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.ProductDao">
<select id="queryProductList" resultType="com.cxx.home.dto.product.ProductDto">
<select id="queryProductList" resultType="com.cxx.home.dto.ProductDto">
SELECT
id AS id,
name AS name,