TASK:aida;
This commit is contained in:
@@ -6,7 +6,7 @@ spring.datasource.primary.username=aida_con
|
||||
spring.datasource.primary.password=123456
|
||||
|
||||
spring.datasource.secondary.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||
spring.datasource.secondary.jdbcUrl=jdbc:mysql://18.167.251.121:33008/attribute_retrieval_new?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
||||
spring.datasource.secondary.jdbcUrl=jdbc:mysql://18.167.251.121:33008/attribute_retrieval_new_style?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
||||
spring.datasource.secondary.username=aida_con
|
||||
spring.datasource.secondary.password=123456
|
||||
|
||||
|
||||
@@ -29,6 +29,10 @@
|
||||
<if test="attributeRetrievalAttrDict.silhouette != null">
|
||||
AND silhouette = #{attributeRetrievalAttrDict.silhouette}
|
||||
</if>
|
||||
<if test="style != null">
|
||||
AND style = #{style}
|
||||
</if>
|
||||
AND deprecated = 0
|
||||
</trim>
|
||||
ORDER BY
|
||||
RAND()
|
||||
@@ -40,6 +44,12 @@
|
||||
*
|
||||
FROM
|
||||
${tableName}
|
||||
<trim prefix="WHERE" prefixOverrides="AND">
|
||||
<if test="style != null">
|
||||
AND style = #{style}
|
||||
</if>
|
||||
AND deprecated = 0
|
||||
</trim>
|
||||
ORDER BY
|
||||
RAND()
|
||||
LIMIT 1
|
||||
@@ -60,6 +70,10 @@
|
||||
<if test="attributeRetrievalAttrDict.subtype != null">
|
||||
AND subtype = #{attributeRetrievalAttrDict.subtype}
|
||||
</if>
|
||||
<if test="style != null">
|
||||
AND style = #{style}
|
||||
</if>
|
||||
AND deprecated = 0
|
||||
</trim>
|
||||
ORDER BY
|
||||
RAND()
|
||||
@@ -79,4 +93,13 @@
|
||||
set style = #{style}
|
||||
where ID = #{id}
|
||||
</update>
|
||||
|
||||
<update id="updateStyleByFileName">
|
||||
UPDATE
|
||||
${tableName}
|
||||
SET
|
||||
style = #{style}
|
||||
WHERE
|
||||
image_name = #{fileName}
|
||||
</update>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user