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
fa780c60
Commit
fa780c60
authored
Aug 02, 2025
by
wujipeng
Browse files
案件新增编辑特殊处理
parent
3a381055
Changes
8
Show whitespace changes
Inline
Side-by-side
src/main/java/com/platform/controller/CaseController.java
View file @
fa780c60
...
...
@@ -42,7 +42,7 @@ public class CaseController extends BaseController {
@ApiOperation
(
value
=
"批量删除"
)
@DeleteMapping
(
"/delete/batch"
)
public
Result
<
Boolean
>
delete
(
@RequestParam
(
name
=
"ids"
)
List
<
String
>
ids
)
{
return
Result
.
data
(
caseService
.
removeBatch
ByIds
(
ids
));
return
Result
.
data
(
caseService
.
removeBatch
Case
(
ids
));
}
@ApiOperation
(
value
=
"案件详情-数据列表"
)
...
...
src/main/java/com/platform/mapper/CaseMapper.java
View file @
fa780c60
...
...
@@ -5,6 +5,7 @@ import com.platform.model.dto.CaseDTO;
import
com.platform.model.entity.CaseEntity
;
import
com.platform.model.vo.CaseVO
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
...
...
@@ -17,4 +18,6 @@ public interface CaseMapper extends BaseMapper<CaseEntity> {
Boolean
updateCase
(
CaseDTO
caseDTO
);
Boolean
saveCase
(
CaseDTO
caseDTO
);
Boolean
removeBatchCase
(
@Param
(
"ids"
)
List
<
String
>
ids
);
}
src/main/java/com/platform/model/entity/CaseEntity.java
View file @
fa780c60
...
...
@@ -14,7 +14,7 @@ import java.util.Date;
public
class
CaseEntity
{
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
i
nt
id
;
private
I
nt
eger
id
;
@TableField
(
"case_code"
)
private
String
caseCode
;
...
...
src/main/java/com/platform/model/entity/GroupEntity.java
View file @
fa780c60
...
...
@@ -10,15 +10,15 @@ import lombok.Data;
public
class
GroupEntity
{
@TableId
(
type
=
IdType
.
AUTO
)
private
i
nt
id
;
private
I
nt
eger
id
;
private
i
nt
caseId
;
private
I
nt
eger
caseId
;
private
String
groupName
;
private
i
nt
groupSize
;
private
I
nt
eger
groupSize
;
private
Double
totalAmount
;
private
i
nt
totalTransactions
;
private
I
nt
eger
totalTransactions
;
}
src/main/java/com/platform/model/entity/UserEntity.java
View file @
fa780c60
...
...
@@ -20,7 +20,7 @@ import java.util.List;
public
class
UserEntity
{
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
i
nt
id
;
private
I
nt
eger
id
;
@TableField
(
"case_id"
)
@ApiModelProperty
(
"案件id"
)
...
...
src/main/java/com/platform/service/CaseService.java
View file @
fa780c60
...
...
@@ -67,4 +67,12 @@ public interface CaseService extends IService<CaseEntity> {
* @return boolean
*/
Boolean
saveOrUpdateCase
(
CaseDTO
caseDTO
);
/**
* 批量删除
*
* @param ids ids
* @return boolean
*/
Boolean
removeBatchCase
(
List
<
String
>
ids
);
}
src/main/java/com/platform/service/impl/CaseServiceImpl.java
View file @
fa780c60
...
...
@@ -312,6 +312,11 @@ public class CaseServiceImpl extends ServiceImpl<CaseMapper, CaseEntity> impleme
return
graph
;
}
@Override
public
Boolean
removeBatchCase
(
List
<
String
>
ids
)
{
return
baseMapper
.
removeBatchCase
(
ids
);
}
@Override
public
List
<
ExcelDataVO
>
info
(
int
caseId
)
{
// 使用Set去重
...
...
src/main/resources/com/platform/mapper/CaseMapper.xml
View file @
fa780c60
...
...
@@ -30,6 +30,12 @@
</set>
where id = #{id}
</update>
<delete
id=
"removeBatchCase"
>
delete from `case` where id in
<foreach
item=
"item"
collection=
"ids"
separator=
","
open=
"("
close=
")"
>
#{item}
</foreach>
</delete>
<select
id=
"pageCase"
resultType=
"com.platform.model.vo.CaseVO"
>
select
...
...
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