1、将生成图片的md5存储到数据库
2、记录sketchboard下,生成图片时的性别(添加到generateType之后)
This commit is contained in:
xupei
2023-11-03 11:29:54 +08:00
parent 0313149ea5
commit ffcbabf62e
6 changed files with 54 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
<?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.GenerateDetailMapper">
<select id="getLibraryIdThroughMD5" resultType="java.util.Map">
select a.library_id
from t_generate_detail a
left join t_generate b
on a.generate_id = b.id
where a.md5 = #{md5}
and a.is_like = 1
and b.level1_type = #{level1Type}
</select>
</mapper>