Commit d651a897 authored by tangtuo's avatar tangtuo

debug

parent 1faa50c7
......@@ -6,7 +6,7 @@
<select id="list" resultType="com.fzm.common.entity.CopyrightApply">
select * from tb_copyright_apply
<where>
user_id = #{userId}
user_id = #{userId} and register_state != -2
<if test="state == 1">
and register_state != 4
</if>
......
......@@ -4,7 +4,7 @@
<select id="list" resultType="com.fzm.common.entity.Nft">
select * from tb_nft
where status = 1 and is_commemorate=0 and nft_hash != '' and user_id > 0
where status = 1 and is_commemorate=0 and publish_status = 2 and user_id > 0
<if test="categoryId != null and categoryId > 0">
and category_id=#{categoryId}
</if>
......@@ -44,7 +44,7 @@
LEFT JOIN tb_user u ON n.publish_address = u.wallet
LEFT JOIN tb_category c ON n.category_id = c.id
WHERE
is_commemorate=0 and nft_hash != ''
is_commemorate=0 and publish_status = 2
<if test="name != null and name != ''">
and n.name like concat ('%',#{name},'%')
</if>
......@@ -84,7 +84,7 @@
a.is_commemorate,
b.category_name as category
from tb_nft a left join tb_category b on a.category_id = b.id
where a.user_id = #{userId} and a.nft_hash != ''
where a.user_id = #{userId} and publish_status = 2
<if test="categoryId != null">
and a.category_id = #{categoryId}
</if>
......@@ -100,7 +100,7 @@
a.is_commemorate
FROM tb_nft a
WHERE a.user_id = #{userId}
AND a.nft_hash != ''
AND publish_status = 2
AND nft_hash NOT IN ( SELECT nft_hash FROM tb_copyright_apply)
</select>
......
......@@ -60,7 +60,7 @@ public class CopyrightApplyController {
return ResponseModel.success(result);
}
//@Authentication
@Authentication
@PostMapping(value = "/delete")
@ApiOperation(value = "删除")
public ResponseModel<Boolean> delete(@RequestParam Integer id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment