TASK:AiDA模块化

This commit is contained in:
shahaibo
2025-03-16 13:09:50 +08:00
parent 1637db2fe3
commit 8fa76c6732
55 changed files with 3236 additions and 132 deletions

View File

@@ -0,0 +1,12 @@
<?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.ai.da.mapper.primary.CollectionElementMapper">
<select id="selectDeleteList" resultType="com.ai.da.mapper.primary.entity.CollectionElement">
SELECT * FROM t_collection_element
WHERE collection_id not IN
(SELECT collection_id FROM t_user_like_group
WHERE collection_id != 0
GROUP BY collection_id)
</select>
</mapper>

View File

@@ -18,4 +18,11 @@
#{createDate});
</insert>
<select id="selectDeleteList" resultType="com.ai.da.mapper.primary.entity.Collection">
SELECT * FROM t_collection
WHERE id not IN
(SELECT collection_id FROM t_user_like_group
WHERE collection_id != 0
GROUP BY collection_id)
</select>
</mapper>

View File

@@ -30,4 +30,11 @@
#{createDate});
</insert>
<select id="selectDeleteList" resultType="com.ai.da.mapper.primary.entity.DesignItem">
SELECT * FROM t_design_item
WHERE collection_id not IN
(SELECT collection_id FROM t_user_like_group
WHERE collection_id != 0
GROUP BY collection_id)
</select>
</mapper>

View File

@@ -65,4 +65,11 @@
ORDER BY a.account_id ASC;-->
</select>
<select id="selectDeleteList" resultType="com.ai.da.mapper.primary.entity.Design">
SELECT * FROM t_design
WHERE collection_id not IN
(SELECT collection_id FROM t_user_like_group
WHERE collection_id != 0
GROUP BY collection_id)
</select>
</mapper>

View File

@@ -25,4 +25,8 @@
select * from t_design_python_outfit_detail where is_deleted = 0
</select>
<select id="selectListDelete" resultMap="tDesignPythonOutfitDetailResultMap">
select * from t_design_python_outfit_detail
where is_deleted = 1
</select>
</mapper>

View File

@@ -20,4 +20,8 @@
select * from t_design_python_outfit where is_deleted = 0
</select>
<select id="selectListDelete" resultMap="tDesignPythonOutfitResultMap">
select * from t_design_python_outfit
where is_deleted = 1
</select>
</mapper>

View File

@@ -14,13 +14,24 @@
<insert id="insertUserLikeGroup" parameterType="com.ai.da.mapper.primary.entity.UserLikeGroup" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
insert into t_user_like_group
(account_id,collection_id,`name`,create_date,update_date)
(account_id,collection_id,`name`,create_date,update_date)
values(
#{accountId},
#{collectionId},
#{name},
#{createDate},
#{updateDate});
#{accountId},
#{collectionId},
#{name},
#{createDate},
#{updateDate});
</insert>
<select id="getMoreThan50UserLikeAccount" resultMap="BaseResultMap">
SELECT d.account_id
FROM t_design_item_detail d
JOIN t_user_like ul ON d.design_item_id = ul.design_item_id
JOIN t_user_like_group ulg ON ul.user_like_group_id = ulg.id
WHERE ulg.account_id != -1
GROUP BY d.account_id
having count(*) >= 200
ORDER BY COUNT(*) DESC
limit 10;
</select>
</mapper>