TASK:AiDA模块化
This commit is contained in:
@@ -20,7 +20,7 @@ spring.security.jwtExpiration=8640000000
|
||||
spring.security.ignorePaths=/,/favicon.ico,/doc.html,/webjars/**,/swagger-resources,/v2/api-docs,\
|
||||
/api/account/**,/api/element/**,/api/python/**,/api/design/**,/api/history/**,/api/library/**,/api/third/party/**,/api/generate/**,/api/workspace/**,/api/classification/**,\
|
||||
/api/product/**,/api/ali-pay/**,/api/order-info/**,/api/paypal/**,/api/credits/**,/api/inquiry/**,/api/tasks/**,/api/python/prepareForSR,/api/alipay-hk/**,/api/portfolio/**,\
|
||||
/api/stripe/**,/api/message/**,/api/tags/**,/notification/**,/api/affiliate/**
|
||||
/api/stripe/**,/api/message/**,/api/tags/**,/notification/**,/api/affiliate/**,/api/project/**
|
||||
spring.security.authApi=/auth/login
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user