Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
think-tank
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
张京坤
think-tank
Commits
b2dd41f7
提交
b2dd41f7
authored
10月 22, 2024
作者:
yuanhaojie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
智库维护
上级
28faf7e3
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
34 行增加
和
14 行删除
+34
-14
ThinktankBasicInfoMapper.java
...a/com/zzsn/thinktank/mapper/ThinktankBasicInfoMapper.java
+8
-0
ThinktankBasicInfoServiceImpl.java
...thinktank/service/impl/ThinktankBasicInfoServiceImpl.java
+26
-14
没有找到文件。
src/main/java/com/zzsn/thinktank/mapper/ThinktankBasicInfoMapper.java
浏览文件 @
b2dd41f7
...
@@ -57,4 +57,12 @@ public interface ThinktankBasicInfoMapper extends BaseMapper<ThinktankBasicInfo>
...
@@ -57,4 +57,12 @@ public interface ThinktankBasicInfoMapper extends BaseMapper<ThinktankBasicInfo>
@Param
(
"nature"
)
String
nature
,
@Param
(
"nature"
)
String
nature
,
@Param
(
"influencePosition"
)
String
influencePosition
,
@Param
(
"influencePosition"
)
String
influencePosition
,
@Param
(
"scale"
)
String
scale
);
@Param
(
"scale"
)
String
scale
);
/**
* 根据id更新智库影响力和地位
* @param id 智库id
* @param influencePosition 影响力和地位
*/
@Update
(
"update thinktank_basic_info set influence_position = #{influencePosition} where id = #{id} "
)
void
updateThinkTankInfluencePositionById
(
@Param
(
"id"
)
String
id
,
@Param
(
"influencePosition"
)
String
influencePosition
);
}
}
src/main/java/com/zzsn/thinktank/service/impl/ThinktankBasicInfoServiceImpl.java
浏览文件 @
b2dd41f7
...
@@ -917,22 +917,34 @@ public class ThinktankBasicInfoServiceImpl extends ServiceImpl<ThinktankBasicInf
...
@@ -917,22 +917,34 @@ public class ThinktankBasicInfoServiceImpl extends ServiceImpl<ThinktankBasicInf
for
(
int
i
=
1
;
i
<=
sheet
.
getLastRowNum
();
i
++)
{
for
(
int
i
=
1
;
i
<=
sheet
.
getLastRowNum
();
i
++)
{
Row
row
=
sheet
.
getRow
(
i
);
Row
row
=
sheet
.
getRow
(
i
);
if
(
row
!=
null
)
{
if
(
row
!=
null
)
{
Cell
idCell
=
row
.
getCell
(
1
);
// Cell idCell = row.getCell(1);
Cell
codeCell
=
row
.
getCell
(
2
);
// Cell codeCell = row.getCell(2);
Cell
cell1
=
row
.
getCell
(
11
);
// Cell cell1 = row.getCell(11);
Cell
cell2
=
row
.
getCell
(
13
);
// Cell cell2 = row.getCell(13);
Cell
cell3
=
row
.
getCell
(
14
);
// Cell cell3 = row.getCell(14);
Cell
cell4
=
row
.
getCell
(
16
);
// Cell cell4 = row.getCell(16);
Cell
cell5
=
row
.
getCell
(
17
);
// Cell cell5 = row.getCell(17);
Cell
idCell
=
row
.
getCell
(
0
);
Cell
influencePositionCell
=
row
.
getCell
(
10
);
if
(
idCell
!=
null
)
{
if
(
idCell
!=
null
)
{
String
id
=
idCell
.
getStringCellValue
();
String
id
=
idCell
.
getStringCellValue
();
String
stringCellValue1
=
cell1
.
getStringCellValue
();
// String stringCellValue1 = cell1.getStringCellValue();
String
stringCellValue2
=
cell2
.
getStringCellValue
();
// String stringCellValue2 = cell2.getStringCellValue();
String
stringCellValue3
=
cell3
.
getStringCellValue
();
// String stringCellValue3 = cell3.getStringCellValue();
String
stringCellValue4
=
cell4
.
getStringCellValue
();
// String stringCellValue4 = cell4.getStringCellValue();
String
stringCellValue5
=
cell5
.
getStringCellValue
();
// String stringCellValue5 = cell5.getStringCellValue();
thinktankBasicInfoMapper
.
updateThinkTankBasicInfoById
(
id
,
stringCellValue1
,
stringCellValue2
,
stringCellValue3
,
stringCellValue4
,
stringCellValue5
);
// thinktankBasicInfoMapper.updateThinkTankBasicInfoById(id,stringCellValue1,stringCellValue2,stringCellValue3,stringCellValue4,stringCellValue5);
log
.
info
(
"success,{}"
,
i
);
try
{
String
stringCellValue
=
influencePositionCell
.
getStringCellValue
();
if
(
stringCellValue
!=
null
&&
!
""
.
equals
(
stringCellValue
))
{
thinktankBasicInfoMapper
.
updateThinkTankInfluencePositionById
(
id
,
stringCellValue
);
log
.
info
(
"success,{}"
,
i
);
}
}
catch
(
Exception
e
)
{
log
.
info
(
"读取数据异常,{}"
,
i
);
}
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论