Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
szpt
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
以墨为白
szpt
Commits
8dcf4bf3
Commit
8dcf4bf3
authored
Jan 15, 2025
by
夏敏伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除参数调整
parent
b99950dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
29 deletions
+27
-29
src/main/java/com/zksy/szpt/domain/dto/CommonDelDTO.java
src/main/java/com/zksy/szpt/domain/dto/CommonDelDTO.java
+12
-12
src/test/java/com/zksy/szpt/MainTestX.java
src/test/java/com/zksy/szpt/MainTestX.java
+15
-17
No files found.
src/main/java/com/zksy/szpt/domain/dto/CommonDelDTO.java
View file @
8dcf4bf3
...
@@ -10,11 +10,11 @@ public class CommonDelDTO {
...
@@ -10,11 +10,11 @@ public class CommonDelDTO {
@NotEmpty
(
message
=
"账户ID不能为空"
)
@NotEmpty
(
message
=
"账户ID不能为空"
)
private
List
<
String
>
ids
;
private
List
<
String
>
ids
;
/**
//
/**
* 所属单位
//
* 所属单位
*/
//
*/
@NotEmpty
(
message
=
"数据归属单位不能为空"
)
//
@NotEmpty(message = "数据归属单位不能为空")
private
String
sjgsdwdm
;
//
private String sjgsdwdm;
public
@NotEmpty
(
message
=
"账户ID不能为空"
)
List
<
String
>
getIds
()
{
public
@NotEmpty
(
message
=
"账户ID不能为空"
)
List
<
String
>
getIds
()
{
return
ids
;
return
ids
;
...
@@ -23,12 +23,12 @@ public class CommonDelDTO {
...
@@ -23,12 +23,12 @@ public class CommonDelDTO {
this
.
ids
=
ids
;
this
.
ids
=
ids
;
}
}
public
String
getSjgsdwdm
()
{
//
public String getSjgsdwdm() {
return
sjgsdwdm
;
//
return sjgsdwdm;
}
//
}
//
public
void
setSjgsdwdm
(
String
sjgsdwdm
)
{
//
public void setSjgsdwdm(String sjgsdwdm) {
this
.
sjgsdwdm
=
sjgsdwdm
;
//
this.sjgsdwdm = sjgsdwdm;
}
//
}
}
}
\ No newline at end of file
src/test/java/com/zksy/szpt/MainTestX.java
View file @
8dcf4bf3
...
@@ -6,6 +6,7 @@ import org.junit.jupiter.api.Test;
...
@@ -6,6 +6,7 @@ import org.junit.jupiter.api.Test;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -135,7 +136,7 @@ public class MainTestX {
...
@@ -135,7 +136,7 @@ public class MainTestX {
public
void
szptFwxxAddTest
()
{
public
void
szptFwxxAddTest
()
{
//请求参数
//请求参数
SzptFwxxDTO
szptFwxxDTO
=
new
SzptFwxxDTO
();
SzptFwxxDTO
szptFwxxDTO
=
new
SzptFwxxDTO
();
szptFwxxDTO
.
setQyid
(
"
5
"
);
szptFwxxDTO
.
setQyid
(
"
3
"
);
szptFwxxDTO
.
setCsid
(
"123456"
);
szptFwxxDTO
.
setCsid
(
"123456"
);
szptFwxxDTO
.
setFwjc
(
"123456"
);
szptFwxxDTO
.
setFwjc
(
"123456"
);
szptFwxxDTO
.
setJzqk
(
"1"
);
szptFwxxDTO
.
setJzqk
(
"1"
);
...
@@ -226,14 +227,11 @@ public class MainTestX {
...
@@ -226,14 +227,11 @@ public class MainTestX {
@DisplayName
(
"房屋信息--删除"
)
@DisplayName
(
"房屋信息--删除"
)
public
void
szptFwxxDeleteTest
()
{
public
void
szptFwxxDeleteTest
()
{
//请求参数
//请求参数
List
<
String
>
ids
=
new
ArrayList
<>();
List
<
String
>
ids
=
new
ArrayList
<>(
Arrays
.
asList
(
"1"
,
"2"
,
"3"
));
ids
.
add
(
"1"
);
// ids.add("5");;
ids
.
add
(
"3"
);
ids
.
add
(
"5"
);
ids
.
add
(
"demo"
);
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setSjgsdwdm
(
"330102"
);
//
commonDelDTO.setSjgsdwdm("330102");
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptFwxx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptFwxx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
}
}
...
@@ -281,7 +279,7 @@ public class MainTestX {
...
@@ -281,7 +279,7 @@ public class MainTestX {
ids
.
add
(
"2"
);
ids
.
add
(
"2"
);
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setSjgsdwdm
(
"330102"
);
//
commonDelDTO.setSjgsdwdm("330102");
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptGdCsyjhldx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptGdCsyjhldx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
}
}
...
@@ -397,7 +395,7 @@ public class MainTestX {
...
@@ -397,7 +395,7 @@ public class MainTestX {
ids
.
add
(
"2"
);
ids
.
add
(
"2"
);
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setSjgsdwdm
(
"330102"
);
//
commonDelDTO.setSjgsdwdm("330102");
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptGdRyxx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptGdRyxx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
}
}
...
@@ -473,7 +471,7 @@ public class MainTestX {
...
@@ -473,7 +471,7 @@ public class MainTestX {
ids
.
add
(
"5"
);
ids
.
add
(
"5"
);
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setSjgsdwdm
(
"330102"
);
//
commonDelDTO.setSjgsdwdm("330102");
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptGdSbxx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptGdSbxx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
}
}
...
@@ -584,7 +582,7 @@ public class MainTestX {
...
@@ -584,7 +582,7 @@ public class MainTestX {
ids
.
add
(
"3"
);
ids
.
add
(
"3"
);
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setSjgsdwdm
(
"330102"
);
//
commonDelDTO.setSjgsdwdm("330102");
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptGdXx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptGdXx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
}
}
...
@@ -646,7 +644,7 @@ public class MainTestX {
...
@@ -646,7 +644,7 @@ public class MainTestX {
// ids.add("1876887147652833281");
// ids.add("1876887147652833281");
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setSjgsdwdm
(
"330102"
);
//
commonDelDTO.setSjgsdwdm("330102");
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptGdYj"
,
commonDelDTO
,
CommonDelDTO
.
class
);
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptGdYj"
,
commonDelDTO
,
CommonDelDTO
.
class
);
}
}
...
@@ -717,7 +715,7 @@ public class MainTestX {
...
@@ -717,7 +715,7 @@ public class MainTestX {
ids
.
add
(
"3"
);
ids
.
add
(
"3"
);
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setSjgsdwdm
(
"330102"
);
//
commonDelDTO.setSjgsdwdm("330102");
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptQyxx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptQyxx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
}
}
...
@@ -783,7 +781,7 @@ public class MainTestX {
...
@@ -783,7 +781,7 @@ public class MainTestX {
ids
.
add
(
"3"
);
ids
.
add
(
"3"
);
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setSjgsdwdm
(
"330102"
);
//
commonDelDTO.setSjgsdwdm("330102");
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptXyzhDkxx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptXyzhDkxx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
}
}
...
@@ -822,7 +820,7 @@ public class MainTestX {
...
@@ -822,7 +820,7 @@ public class MainTestX {
ids
.
add
(
"3"
);
ids
.
add
(
"3"
);
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setSjgsdwdm
(
"330102"
);
//
commonDelDTO.setSjgsdwdm("330102");
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptXyzhKqmb"
,
commonDelDTO
,
CommonDelDTO
.
class
);
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptXyzhKqmb"
,
commonDelDTO
,
CommonDelDTO
.
class
);
}
}
...
@@ -886,7 +884,7 @@ public class MainTestX {
...
@@ -886,7 +884,7 @@ public class MainTestX {
ids
.
add
(
"3"
);
ids
.
add
(
"3"
);
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setSjgsdwdm
(
"330102"
);
//
commonDelDTO.setSjgsdwdm("330102");
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptXyzhMbdh"
,
commonDelDTO
,
CommonDelDTO
.
class
);
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptXyzhMbdh"
,
commonDelDTO
,
CommonDelDTO
.
class
);
}
}
...
@@ -944,7 +942,7 @@ public class MainTestX {
...
@@ -944,7 +942,7 @@ public class MainTestX {
ids
.
add
(
"3"
);
ids
.
add
(
"3"
);
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
CommonDelDTO
commonDelDTO
=
new
CommonDelDTO
();
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setIds
(
ids
);
commonDelDTO
.
setSjgsdwdm
(
"330102"
);
//
commonDelDTO.setSjgsdwdm("330102");
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptXyzhXyxx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
TestHttpUtil
.
signatureAndRequest
(
"/rest/index/deleteSzptXyzhXyxx"
,
commonDelDTO
,
CommonDelDTO
.
class
);
}
}
}
}
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