Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
Overview
Details
Activity
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
王衍超
cloud-fb
Commits
0d9280c7
Commit
0d9280c7
authored
Jun 01, 2021
by
高晓磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运输记录少个司机名称
parent
68e03b09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
TransportRecordDaoImpl.java
.../dinas/transport/internal/dao/TransportRecordDaoImpl.java
+2
-2
TransportRecordServiceImpl.java
...ransport/internal/service/TransportRecordServiceImpl.java
+2
-0
No files found.
backend/xyst.dinas.transport/src/main/java/com/xyst/dinas/transport/internal/dao/TransportRecordDaoImpl.java
View file @
0d9280c7
...
...
@@ -84,7 +84,7 @@ public class TransportRecordDaoImpl extends AbstractBaseDao implements Transport
}
if
(
driverUserName
!=
null
){
detachedCriteria
.
add
(
Restrictions
.
like
(
"driverUser.title"
,
driverUserName
,
MatchMode
.
ANYWHERE
));
detachedCriteria
.
add
(
Restrictions
.
or
(
Restrictions
.
like
(
"driverUser.title"
,
driverUserName
,
MatchMode
.
ANYWHERE
),
Restrictions
.
like
(
"driverUser.username"
,
driverUserName
,
MatchMode
.
ANYWHERE
)
));
}
if
(
vehicleId
!=
null
){
detachedCriteria
.
add
(
Restrictions
.
eq
(
"transportVehicle.id"
,
vehicleId
));
...
...
@@ -155,7 +155,7 @@ public class TransportRecordDaoImpl extends AbstractBaseDao implements Transport
detachedCriteria
.
setProjection
(
Projections
.
projectionList
()
.
add
(
Projections
.
alias
(
Projections
.
sum
(
"salesRecord."
+
SalesRecordConstant
.
DEALAMOUNT
),
"sumCount"
))
.
add
(
Projections
.
alias
(
Projections
.
sum
(
"salesRecord."
+
SalesRecordConstant
.
AMOUNT
),
"sumAmount"
))
.
add
(
Projections
.
alias
(
Projections
.
max
(
"regionalCompany.n
ame"
),
"name"
))
.
add
(
Projections
.
alias
(
Projections
.
max
(
SalesRecordConstant
.
DINASTYPE
+
".dinasTypeN
ame"
),
"name"
))
.
add
(
Projections
.
alias
(
Projections
.
groupProperty
(
SalesRecordConstant
.
DINASTYPE
+
".id"
),
SalesRecordConstant
.
DINASTYPE
)));
detachedCriteria
.
setResultTransformer
(
Transformers
.
ALIAS_TO_ENTITY_MAP
);
return
(
List
<
Map
<
String
,
Object
>>)
template
.
findByCriteria
(
detachedCriteria
);
...
...
backend/xyst.dinas.transport/src/main/java/com/xyst/dinas/transport/internal/service/TransportRecordServiceImpl.java
View file @
0d9280c7
...
...
@@ -76,6 +76,7 @@ public class TransportRecordServiceImpl implements TransportRecordService {
KObject
saleRecord
=
data
.
get
(
"saleRecord"
);
KObject
transportVehicle
=
data
.
get
(
"transportVehicle"
);
KObject
code
=
data
.
get
(
"billCode"
);
KObject
driverUser
=
data
.
get
(
"driverUser"
);
String
projectName
=
saleRecord
.
get
(
SalesRecordConstant
.
PROJECT
).
getString
(
"projectName"
);
String
dinasTypeName
=
saleRecord
.
get
(
SalesRecordConstant
.
DINASTYPE
).
getString
(
"dinasTypeName"
);
BigDecimal
dealAmount
=
saleRecord
.
getBigDecimal
(
SalesRecordConstant
.
DEALAMOUNT
);
...
...
@@ -114,6 +115,7 @@ public class TransportRecordServiceImpl implements TransportRecordService {
stringObjectHashMap
.
put
(
"contactNumber"
,
data
.
getString
(
"contactNumber"
));
stringObjectHashMap
.
put
(
"confirmTime"
,
data
.
getString
(
"confirmTime"
));
stringObjectHashMap
.
put
(
"confirmStatus"
,
data
.
getInt
(
"confirmStatus"
));
stringObjectHashMap
.
put
(
"driverUser"
,
driverUser
.
getString
(
"title"
)+
"("
+
driverUser
.
getString
(
"username"
)+
")"
);
}
}
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