TASK:design new;
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
server.port=5567
|
||||
server.port=17088
|
||||
|
||||
spring.datasource.primary.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||
spring.datasource.primary.jdbcUrl=jdbc:mysql://18.167.251.121:33008/aida?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
||||
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?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
||||
spring.datasource.secondary.username=aida_con
|
||||
spring.datasource.secondary.password=123456
|
||||
|
||||
|
||||
#datasource
|
||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||
spring.datasource.url=jdbc:mysql://18.167.251.121:33008/aida?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
||||
spring.datasource.username=aida_con
|
||||
spring.datasource.password=123456
|
||||
#spring.datasource.password=QWa998345
|
||||
|
||||
#security
|
||||
spring.security.jwtSecret=JWTSECRET
|
||||
@@ -23,8 +28,7 @@ rsa.private_key=MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEA0vfvyTdGJkdbHkB8
|
||||
|
||||
#mybatis
|
||||
mybatis-plus.global-config.banner=false
|
||||
mybatis-plus.mapper-locations=classpath:mapper/*Mapper.xml
|
||||
#mybatis-plus.configuration.log-impl= org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
mybatis-plus.mapper-locations=classpath:mapper/*/*.xml
|
||||
mybatis-plus.global-config.db-config.logic-delete-field=isDeleted
|
||||
mybatis-plus.global-config.db-config.logic-delete-value=1
|
||||
mybatis-plus.global-config.db-config.logic-not-delete-value=0
|
||||
@@ -39,10 +43,8 @@ file.windows.path=D:\\upload\\
|
||||
spring.servlet.multipart.max-file-size = 10MB
|
||||
spring.servlet.multipart.max-request-size= 10MB
|
||||
#访问python服务的ip(对应环境)
|
||||
#access.python.ip=http://43.198.80.117
|
||||
access.python.ip=http://18.167.251.121
|
||||
#access.python.ip=http://18.167.251.121:9991/
|
||||
access.python.port=9990
|
||||
access.python.port=9992
|
||||
|
||||
minio.endpoint=https://www.minio.aida.com.hk:9000
|
||||
minio.accessKey=admin
|
||||
|
||||
@@ -42,7 +42,7 @@ spring.servlet.multipart.max-request-size= 10MB
|
||||
#access.python.ip=http://43.198.80.117
|
||||
access.python.ip=http://18.167.251.121
|
||||
#access.python.ip=http://18.167.251.121:9991/
|
||||
access.python.port=9990
|
||||
access.python.port=9992
|
||||
|
||||
minio.endpoint=https://www.minio.aida.com.hk:9000
|
||||
minio.accessKey=admin
|
||||
|
||||
30
src/main/resources/mapper/primary/CollocationMapper.xml
Normal file
30
src/main/resources/mapper/primary/CollocationMapper.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?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.CollocationMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap" type="com.ai.da.mapper.primary.entity.Collocation">
|
||||
<id column="id" property="id" />
|
||||
<result column="name" property="name" />
|
||||
<result column="is_system" property="isSystem" />
|
||||
<result column="user_id" property="userId" />
|
||||
<result column="create_date" property="createDate" />
|
||||
<result column="update_date" property="updateDate" />
|
||||
<result column="is_deleted" property="isDeleted" />
|
||||
</resultMap>
|
||||
|
||||
<select id="getCollocationListBySketch" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
collocation
|
||||
WHERE
|
||||
id IN (
|
||||
SELECT
|
||||
collocation_id
|
||||
FROM
|
||||
collocation_rel_dressing
|
||||
WHERE
|
||||
dressing_id = ( SELECT id FROM dressing WHERE apparel = #{apparel} AND style_category = #{styleCategory} ))
|
||||
</select>
|
||||
</mapper>
|
||||
26
src/main/resources/mapper/primary/DressingMapper.xml
Normal file
26
src/main/resources/mapper/primary/DressingMapper.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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.DressingMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap" type="com.ai.da.mapper.primary.entity.Dressing">
|
||||
<id column="id" property="id" />
|
||||
<result column="apparel" property="apparel" />
|
||||
<result column="style_category" property="styleCategory" />
|
||||
<result column="age_group" property="ageGroup" />
|
||||
<result column="position" property="position" />
|
||||
<result column="priority" property="priority" />
|
||||
</resultMap>
|
||||
|
||||
<select id="getOtherSketchCategoryNameList" resultType="java.lang.String">
|
||||
SELECT
|
||||
style_category
|
||||
FROM
|
||||
dressing
|
||||
WHERE
|
||||
id IN ( SELECT dressing_id FROM collocation_rel_dressing WHERE collocation_id = #{id} )
|
||||
AND style_category != #{styleCategory}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,68 @@
|
||||
<?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.secondary.AttributeRetrievalMapper">
|
||||
<resultMap id="BaseResultMap" type="com.ai.da.mapper.secondary.entity.AttributeRetrieval">
|
||||
<id column="ID" property="id" />
|
||||
<result column="img_name" property="imgName" />
|
||||
<result column="length" property="length" />
|
||||
<result column="sleeve_length" property="sleeveLength" />
|
||||
<result column="sleeve_shape" property="sleeveShape" />
|
||||
<result column="sleeve_shoulder" property="sleeveShoulder" />
|
||||
<result column="neckline" property="neckline" />
|
||||
<result column="collar" property="collar" />
|
||||
<result column="design" property="design" />
|
||||
<result column="silhouette" property="silhouette" />
|
||||
<result column="type" property="type" />
|
||||
<result column="opening_type" property="openingType" />
|
||||
<result column="subtype" property="subtype" />
|
||||
</resultMap>
|
||||
|
||||
<select id="getSystemSketchPool" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
${tableName}
|
||||
<trim prefix="WHERE" prefixOverrides="AND">
|
||||
<if test="attributeRetrievalAttrDict.design != null">
|
||||
AND design = #{attributeRetrievalAttrDict.design}
|
||||
</if>
|
||||
<if test="attributeRetrievalAttrDict.silhouette != null">
|
||||
AND silhouette = #{attributeRetrievalAttrDict.silhouette}
|
||||
</if>
|
||||
</trim>
|
||||
ORDER BY
|
||||
RAND()
|
||||
LIMIT #{poolNum}
|
||||
</select>
|
||||
|
||||
<select id="getSystemRandom" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
${tableName}
|
||||
ORDER BY
|
||||
RAND()
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
<select id="getSystemSketchPoolBySameCategory" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
${tableName}
|
||||
<trim prefix="WHERE" prefixOverrides="AND">
|
||||
<if test="attributeRetrievalAttrDict.type != null">
|
||||
AND type = #{attributeRetrievalAttrDict.type}
|
||||
</if>
|
||||
<if test="attributeRetrievalAttrDict.openingType != null">
|
||||
AND opening_type = #{attributeRetrievalAttrDict.openingType}
|
||||
</if>
|
||||
<if test="attributeRetrievalAttrDict.subtype != null">
|
||||
AND subtype = #{attributeRetrievalAttrDict.subtype}
|
||||
</if>
|
||||
</trim>
|
||||
ORDER BY
|
||||
RAND()
|
||||
LIMIT 20
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,8 +0,0 @@
|
||||
<?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.secondary.FemaleDressMapper">
|
||||
<resultMap id="BaseResultMap" type="com.ai.da.mapper.secondary.entity.FemaleDress">
|
||||
<id column="ID" property="id" />
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user