Commit d651a897 authored by tangtuo's avatar tangtuo

debug

parent 1faa50c7
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<select id="list" resultType="com.fzm.common.entity.CopyrightApply"> <select id="list" resultType="com.fzm.common.entity.CopyrightApply">
select * from tb_copyright_apply select * from tb_copyright_apply
<where> <where>
user_id = #{userId} user_id = #{userId} and register_state != -2
<if test="state == 1"> <if test="state == 1">
and register_state != 4 and register_state != 4
</if> </if>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<select id="list" resultType="com.fzm.common.entity.Nft"> <select id="list" resultType="com.fzm.common.entity.Nft">
select * from tb_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"> <if test="categoryId != null and categoryId > 0">
and category_id=#{categoryId} and category_id=#{categoryId}
</if> </if>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
LEFT JOIN tb_user u ON n.publish_address = u.wallet LEFT JOIN tb_user u ON n.publish_address = u.wallet
LEFT JOIN tb_category c ON n.category_id = c.id LEFT JOIN tb_category c ON n.category_id = c.id
WHERE WHERE
is_commemorate=0 and nft_hash != '' is_commemorate=0 and publish_status = 2
<if test="name != null and name != ''"> <if test="name != null and name != ''">
and n.name like concat ('%',#{name},'%') and n.name like concat ('%',#{name},'%')
</if> </if>
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
a.is_commemorate, a.is_commemorate,
b.category_name as category b.category_name as category
from tb_nft a left join tb_category b on a.category_id = b.id 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"> <if test="categoryId != null">
and a.category_id = #{categoryId} and a.category_id = #{categoryId}
</if> </if>
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
a.is_commemorate a.is_commemorate
FROM tb_nft a FROM tb_nft a
WHERE a.user_id = #{userId} 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) AND nft_hash NOT IN ( SELECT nft_hash FROM tb_copyright_apply)
</select> </select>
......
...@@ -60,7 +60,7 @@ public class CopyrightApplyController { ...@@ -60,7 +60,7 @@ public class CopyrightApplyController {
return ResponseModel.success(result); return ResponseModel.success(result);
} }
//@Authentication @Authentication
@PostMapping(value = "/delete") @PostMapping(value = "/delete")
@ApiOperation(value = "删除") @ApiOperation(value = "删除")
public ResponseModel<Boolean> delete(@RequestParam Integer id) { 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