feat:增加奖状证书模块
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
46
home-service/src/main/resources/mapper/AwardMapper.xml
Normal file
46
home-service/src/main/resources/mapper/AwardMapper.xml
Normal 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>
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user