Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dataC_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
高宇
dataC_api
Commits
493dc432
Commit
493dc432
authored
May 11, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 客户管理和条码管理
parent
78c33a9b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
48 deletions
+49
-48
BCustomerController.java
...rcisoft/bus/bcustomer/controller/BCustomerController.java
+3
-3
BCustomer.java
...main/java/org/rcisoft/bus/bcustomer/entity/BCustomer.java
+46
-45
No files found.
src/main/java/org/rcisoft/bus/bcustomer/controller/BCustomerController.java
View file @
493dc432
...
@@ -56,7 +56,7 @@ public class BCustomerController extends CyPaginationController<BCustomer> {
...
@@ -56,7 +56,7 @@ public class BCustomerController extends CyPaginationController<BCustomer> {
@ApiOperation
(
value
=
"逻辑删除BCustomer"
,
notes
=
"逻辑删除BCustomer"
)
@ApiOperation
(
value
=
"逻辑删除BCustomer"
,
notes
=
"逻辑删除BCustomer"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"varchar"
)})
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"varchar"
)})
@DeleteMapping
(
"/deleteLogical/{businessId:\\w+}"
)
@DeleteMapping
(
"/deleteLogical/{businessId:\\w+}"
)
public
CyResult
deleteLogical
(
@PathVariable
String
businessId
,
BCustomer
bCustomer
)
{
public
CyResult
deleteLogical
(
@PathVariable
Integer
businessId
,
BCustomer
bCustomer
)
{
bCustomer
.
setBusinessId
(
businessId
);
bCustomer
.
setBusinessId
(
businessId
);
CyPersistModel
data
=
bCustomerServiceImpl
.
removeLogical
(
bCustomer
);
CyPersistModel
data
=
bCustomerServiceImpl
.
removeLogical
(
bCustomer
);
return
CyResultGenUtil
.
builder
(
data
,
return
CyResultGenUtil
.
builder
(
data
,
...
@@ -69,7 +69,7 @@ public class BCustomerController extends CyPaginationController<BCustomer> {
...
@@ -69,7 +69,7 @@ public class BCustomerController extends CyPaginationController<BCustomer> {
@ApiOperation
(
value
=
"删除BCustomer"
,
notes
=
"删除BCustomer"
)
@ApiOperation
(
value
=
"删除BCustomer"
,
notes
=
"删除BCustomer"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"varchar"
)})
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"varchar"
)})
@DeleteMapping
(
"/delete/{businessId:\\w+}"
)
@DeleteMapping
(
"/delete/{businessId:\\w+}"
)
public
CyResult
delete
(
@PathVariable
String
businessId
,
BCustomer
bCustomer
)
{
public
CyResult
delete
(
@PathVariable
Integer
businessId
,
BCustomer
bCustomer
)
{
bCustomer
.
setBusinessId
(
businessId
);
bCustomer
.
setBusinessId
(
businessId
);
CyPersistModel
data
=
bCustomerServiceImpl
.
remove
(
bCustomer
);
CyPersistModel
data
=
bCustomerServiceImpl
.
remove
(
bCustomer
);
return
CyResultGenUtil
.
builder
(
data
,
return
CyResultGenUtil
.
builder
(
data
,
...
@@ -83,7 +83,7 @@ public class BCustomerController extends CyPaginationController<BCustomer> {
...
@@ -83,7 +83,7 @@ public class BCustomerController extends CyPaginationController<BCustomer> {
@ApiOperation
(
value
=
"修改BCustomer"
,
notes
=
"修改BCustomer"
)
@ApiOperation
(
value
=
"修改BCustomer"
,
notes
=
"修改BCustomer"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
false
,
dataType
=
"varchar"
)})
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
false
,
dataType
=
"varchar"
)})
@PutMapping
(
"/update/{businessId:\\w+}"
)
@PutMapping
(
"/update/{businessId:\\w+}"
)
public
CyResult
update
(
@PathVariable
String
businessId
,
@Valid
BCustomer
bCustomer
,
BindingResult
bindingResult
)
{
public
CyResult
update
(
@PathVariable
Integer
businessId
,
@Valid
BCustomer
bCustomer
,
BindingResult
bindingResult
)
{
bCustomer
.
setBusinessId
(
businessId
);
bCustomer
.
setBusinessId
(
businessId
);
CyPersistModel
data
=
bCustomerServiceImpl
.
merge
(
bCustomer
);
CyPersistModel
data
=
bCustomerServiceImpl
.
merge
(
bCustomer
);
return
CyResultGenUtil
.
builder
(
data
,
return
CyResultGenUtil
.
builder
(
data
,
...
...
src/main/java/org/rcisoft/bus/bcustomer/entity/BCustomer.java
View file @
493dc432
...
@@ -12,13 +12,14 @@ import java.io.Serializable;
...
@@ -12,13 +12,14 @@ import java.io.Serializable;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
org.rcisoft.core.entity.CyIdIncreEntity
;
/**
/**
* Created with cy on 2024年5月11日 下午3:19:37.
* Created with cy on 2024年5月11日 下午3:19:37.
*/
*/
@Data
@Data
@TableName
(
"b_customer"
)
@TableName
(
"b_customer"
)
public
class
BCustomer
extends
CyIdEntity
<
BCustomer
>
{
public
class
BCustomer
extends
CyId
Incre
Entity
<
BCustomer
>
{
...
...
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