Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
6
651project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
651project
651project
Merge requests
!27
Resolve "Cart controller integration test"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Cart controller integration test"
33-cart-controller-integration-test
into
master
Overview
0
Commits
1
Pipelines
2
Changes
2
Merged
Jerry Xu
requested to merge
33-cart-controller-integration-test
into
master
3 years ago
Overview
0
Commits
1
Pipelines
2
Changes
2
Expand
Closes
#33 (closed)
Edited
3 years ago
by
Jerry Xu
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
2ea4fa8a
1 commit,
3 years ago
2 files
+
188
−
16
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/main/java/com/example/freshonline/model/Cart.java
+
10
−
0
Options
@@ -6,6 +6,9 @@ import com.example.freshonline.model.StockedGoods;
import
com.example.freshonline.model.User
;
import
lombok.NoArgsConstructor
;
@NoArgsConstructor
public
class
Cart
{
@@ -63,6 +66,13 @@ public class Cart {
*/
private
BigDecimal
count
;
public
Cart
(
Integer
userId
,
Integer
goodsId
,
BigDecimal
count
)
{
this
.
userId
=
userId
;
this
.
goodsId
=
goodsId
;
this
.
count
=
count
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cart.user_id
Loading