Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
think-tank
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
张京坤
think-tank
Commits
f63f585b
提交
f63f585b
authored
5月 24, 2025
作者:
925993793@qq.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
删除操作改为逻辑删除
上级
20864e65
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
6 行删除
+11
-6
ThinktankBasicInfo.java
...in/java/com/zzsn/thinktank/entity/ThinktankBasicInfo.java
+2
-0
ThinktankBasicInfoServiceImpl.java
...thinktank/service/impl/ThinktankBasicInfoServiceImpl.java
+5
-2
ThinktankBasicInfoMapper.xml
src/main/resources/mapper/ThinktankBasicInfoMapper.xml
+4
-4
没有找到文件。
src/main/java/com/zzsn/thinktank/entity/ThinktankBasicInfo.java
浏览文件 @
f63f585b
...
@@ -101,6 +101,8 @@ public class ThinktankBasicInfo extends Model<ThinktankBasicInfo> {
...
@@ -101,6 +101,8 @@ public class ThinktankBasicInfo extends Model<ThinktankBasicInfo> {
private
String
fundsSource
;
private
String
fundsSource
;
//是否展示(1-是;0-否)
//是否展示(1-是;0-否)
private
Integer
ynDisplay
;
private
Integer
ynDisplay
;
//删除状态(1-是;0-否)
private
Integer
deleteStatus
;
public
List
<
String
>
toList
(){
public
List
<
String
>
toList
(){
List
<
String
>
list
=
new
ArrayList
<>();
List
<
String
>
list
=
new
ArrayList
<>();
...
...
src/main/java/com/zzsn/thinktank/service/impl/ThinktankBasicInfoServiceImpl.java
浏览文件 @
f63f585b
...
@@ -141,12 +141,15 @@ public class ThinktankBasicInfoServiceImpl extends ServiceImpl<ThinktankBasicInf
...
@@ -141,12 +141,15 @@ public class ThinktankBasicInfoServiceImpl extends ServiceImpl<ThinktankBasicInf
public
Result
<?>
del
(
String
id
)
{
public
Result
<?>
del
(
String
id
)
{
String
[]
idArr
=
id
.
split
(
","
);
String
[]
idArr
=
id
.
split
(
","
);
List
<
String
>
ids
=
Arrays
.
asList
(
idArr
);
List
<
String
>
ids
=
Arrays
.
asList
(
idArr
);
boolean
b
=
this
.
removeByIds
(
ids
);
boolean
b
=
this
.
update
(
Wrappers
.<
ThinktankBasicInfo
>
lambdaUpdate
()
.
in
(
ThinktankBasicInfo:
:
getId
,
ids
)
.
set
(
ThinktankBasicInfo:
:
getDeleteStatus
,
1
)
.
set
(
ThinktankBasicInfo:
:
getUpdateTime
,
new
Date
()));
Result
result
=
Result
.
OK
();
Result
result
=
Result
.
OK
();
if
(!
b
)
{
if
(!
b
)
{
result
.
error500
(
"删除失败!"
);
result
.
error500
(
"删除失败!"
);
}
}
thinktankTagService
.
delLabel
(
ids
);
//
thinktankTagService.delLabel(ids);
return
result
;
return
result
;
}
}
...
...
src/main/resources/mapper/ThinktankBasicInfoMapper.xml
浏览文件 @
f63f585b
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
belong_unit_code,belong_unit,head_sculpture,biographical_notes,status,
belong_unit_code,belong_unit,head_sculpture,biographical_notes,status,
lang,operate_status,profit_nature,nature,influence_position,staff_size,scale,achievement_type,funds_source,yn_display
lang,operate_status,profit_nature,nature,influence_position,staff_size,scale,achievement_type,funds_source,yn_display
from thinktank_basic_info a
from thinktank_basic_info a
where
1 = 1
where
a.delete_status = 0
<if
test=
"codeId != null and codeId != ''"
>
<if
test=
"codeId != null and codeId != ''"
>
AND a.code_id = #{codeId}
AND a.code_id = #{codeId}
</if>
</if>
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
select
select
count(1)
count(1)
from thinktank_basic_info a
from thinktank_basic_info a
where
1 = 1
where
a.delete_status = 0
<if
test=
"codeId != null and codeId != ''"
>
<if
test=
"codeId != null and codeId != ''"
>
AND a.code_id = #{codeId}
AND a.code_id = #{codeId}
</if>
</if>
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
on a.id = b.group_id
on a.id = b.group_id
LEFT JOIN info_source c
LEFT JOIN info_source c
on b.source_id = c.id
on b.source_id = c.id
where
1 = 1
where
a.delete_status = 0
<if
test=
"codeId != null and codeId != ''"
>
<if
test=
"codeId != null and codeId != ''"
>
AND a.code_id = #{codeId}
AND a.code_id = #{codeId}
</if>
</if>
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
a.charge, a.address, a.belong_unit_code,a.lang,a.operate_status,a.profit_nature,a.nature,a.influence_position,
a.charge, a.address, a.belong_unit_code,a.lang,a.operate_status,a.profit_nature,a.nature,a.influence_position,
a.staff_size,a.scale,a.achievement_type,a.funds_source,a.yn_display
a.staff_size,a.scale,a.achievement_type,a.funds_source,a.yn_display
from thinktank_basic_info a
from thinktank_basic_info a
where
1 = 1
where
a.delete_status = 0
<if
test=
"ids != null and ids.size() > 0"
>
<if
test=
"ids != null and ids.size() > 0"
>
AND a.id in
AND a.id in
<foreach
item=
"item"
index=
"index"
collection=
"ids"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"item"
index=
"index"
collection=
"ids"
open=
"("
separator=
","
close=
")"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论