Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
relation
Commits
acc846db
Commit
acc846db
authored
Aug 02, 2025
by
zhuxiang
Browse files
案件画布节点数据存入数据库
parent
eb634572
Changes
25
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/platform/service/impl/ExcelDataServiceImpl.java
View file @
acc846db
...
...
@@ -22,8 +22,8 @@ import java.util.List;
@Service
public
class
ExcelDataServiceImpl
extends
ServiceImpl
<
ExcelDataMapper
,
ExcelDataEntity
>
implements
ExcelDataService
{
@Override
public
List
<
ExcelDataVO
>
queryByCaseId
(
String
id
)
{
return
baseMapper
.
queryByCaseId
(
id
);
public
List
<
ExcelDataVO
>
queryByCaseId
(
CaseDTO
caseDTO
)
{
return
baseMapper
.
queryByCaseId
(
caseDTO
);
}
@Override
...
...
src/main/java/com/platform/service/impl/GroupServiceImpl.java
View file @
acc846db
...
...
@@ -9,6 +9,7 @@ import com.platform.model.entity.GroupEntity;
import
com.platform.model.vo.GroupVO
;
import
com.platform.service.GroupDetailService
;
import
com.platform.service.GroupService
;
import
com.platform.utils.DozerUtils
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
...
...
@@ -50,4 +51,10 @@ public class GroupServiceImpl extends ServiceImpl<GroupMapper, GroupEntity> impl
groupVO
.
setGroupDetailList
(
null
);
});
}
@Override
public
List
<
GroupVO
>
queryByCaseId
(
Integer
id
)
{
return
DozerUtils
.
convertList
(
baseMapper
.
selectList
(
new
LambdaQueryWrapper
<
GroupEntity
>()
.
eq
(
GroupEntity:
:
getCaseId
,
id
)),
GroupVO
.
class
);
}
}
src/main/java/com/platform/service/impl/NodeServiceImpl.java
0 → 100644
View file @
acc846db
package
com.platform.service.impl
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.platform.mapper.NodeMapper
;
import
com.platform.model.entity.NodeEntity
;
import
com.platform.model.vo.NodeVO
;
import
com.platform.service.NodeService
;
import
com.platform.utils.DozerUtils
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
NodeServiceImpl
extends
ServiceImpl
<
NodeMapper
,
NodeEntity
>
implements
NodeService
{
@Override
public
void
saveData
(
Integer
id
,
List
<
NodeVO
>
nodes
)
{
List
<
NodeEntity
>
nodeEntityList
=
DozerUtils
.
convertList
(
nodes
,
NodeEntity
.
class
);
nodeEntityList
.
forEach
(
nodeEntity
->
nodeEntity
.
setCaseId
(
id
));
saveBatch
(
nodeEntityList
);
}
@Override
public
List
<
NodeVO
>
queryByCaseId
(
Integer
id
)
{
return
DozerUtils
.
convertList
(
baseMapper
.
selectList
(
new
LambdaQueryWrapper
<
NodeEntity
>()
.
eq
(
NodeEntity:
:
getCaseId
,
id
)),
NodeVO
.
class
);
}
}
src/main/resources/com/platform/mapper/CaseMapper.xml
View file @
acc846db
...
...
@@ -60,4 +60,12 @@
</if>
</where>
</select>
<select
id=
"getInfoById"
resultType=
"com.platform.model.entity.CaseEntity"
>
select
*
from
`case`
where
id = #{id}
</select>
</mapper>
src/main/resources/com/platform/mapper/ExcelDataMapper.xml
View file @
acc846db
...
...
@@ -8,7 +8,7 @@
ed.pay_user_name,
ed.use_flag,
fu.file_name,
fu.path,
fu.path
filePath
,
ed.file_id
from
excel_data ed
...
...
@@ -16,6 +16,14 @@
file_upload fu
on
ed.file_id = fu.id
<where>
<if
test=
"payUserName != null and payUserName != ''"
>
and ed.pay_user_name like concat('%',#{payUserName},'%')
</if>
<if
test=
"fileName != null and fileName != ''"
>
and fu.file_name like concat('%',#{fileName},'%')
</if>
</where>
group by
ed.file_id,ed.pay_user_name,fu.file_name,fu.path,ed.use_flag
</select>
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment