Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
iClear-Connect-Pre-Clearance
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
zelong.shao
2024-11-20 17:01:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6aeda23d26d8e6d48b23d27084ec1120cb3940ae
6aeda23d
1 parent
f6c2aeb9
customer|manager|运单查询调整&运单状态字典查询
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
33 additions
and
7 deletions
server/biz-customer/src/main/java/com/fedex/connect/customer/data/dto/FindConsignmentsDto.java
server/biz-customer/src/main/java/com/fedex/connect/customer/data/query/ConsignmentQuery.java
server/biz-customer/src/main/java/com/fedex/connect/customer/repository/mapper/ConsignmentExtMapper.xml
server/biz-customer/src/main/java/com/fedex/connect/customer/repository/repo/impl/UserConsignmentMappingRepositoryImpl.java
server/manager-server/src/main/java/com/fedex/connect/manager/controller/bi/impl/DicEntriesController.java
server/manager-server/src/main/java/com/fedex/connect/manager/controller/sys/impl/SysAuthController.java
server/manager-server/src/main/java/com/fedex/connect/manager/repository/repo/bi/IDicEntriesRepository.java
server/manager-server/src/main/java/com/fedex/connect/manager/repository/repo/bi/impl/DicEntriesRepositoryImpl.java
server/manager-server/src/main/java/com/fedex/connect/manager/service/bi/IDicEntriesService.java
server/manager-server/src/main/java/com/fedex/connect/manager/service/bi/impl/DicEntriesServiceImpl.java
server/biz-customer/src/main/java/com/fedex/connect/customer/data/dto/FindConsignmentsDto.java
View file @
6aeda23
...
...
@@ -11,7 +11,7 @@ public class FindConsignmentsDto {
private
String
recipientCompany
;
private
String
shipper
Country
;
private
String
origin
Country
;
private
String
docNondocFlag
;
...
...
@@ -19,7 +19,7 @@ public class FindConsignmentsDto {
private
Date
createTime
;
private
Date
commit
Time
;
private
Date
modify
Time
;
private
String
statusName
;
}
...
...
server/biz-customer/src/main/java/com/fedex/connect/customer/data/query/ConsignmentQuery.java
View file @
6aeda23
...
...
@@ -51,4 +51,6 @@ public class ConsignmentQuery extends PageBase {
private
Long
userId
;
private
String
uuid
;
private
String
statusCode
;
}
...
...
server/biz-customer/src/main/java/com/fedex/connect/customer/repository/mapper/ConsignmentExtMapper.xml
View file @
6aeda23
...
...
@@ -18,7 +18,7 @@
c.CONSIGNMENT_CODE,
c.RECIPIENT_CONTACT_NAME,
c.RECIPIENT_COMPANY,
c.
SHIPPER
_COUNTRY,
c.
ORIGIN
_COUNTRY,
CASE
WHEN c.DOC_NONDOC_FLAG = 'Y' THEN 'ITEM'
WHEN c.DOC_NONDOC_FLAG = 'N' THEN 'DOC'
...
...
@@ -26,7 +26,7 @@
END AS DOC_NONDOC_FLAG,
c.CREATE_USER_NAME,
c.CREATE_TIME,
c.
COMMIT
_TIME,
c.
MODIFY
_TIME,
c.STATUS_NAME
</sql>
...
...
@@ -41,6 +41,9 @@
(m.user_id = #{userId} AND m.consignment_id IS NOT NULL)
OR c.user_uuid = #{uuid,jdbcType=VARCHAR}
)
<if
test=
"statusCode != null and statusCode != ''"
>
AND c.STATUS_CODE = #{statusCode}
</if>
<if
test=
"createTimeFrom != null and createTimeFrom != ''"
>
AND c.CREATE_TIME
>
= TO_DATE(#{createTimeFrom}, 'YYYY-MM-DD HH24:MI:SS')
</if>
...
...
server/biz-customer/src/main/java/com/fedex/connect/customer/repository/repo/impl/UserConsignmentMappingRepositoryImpl.java
View file @
6aeda23
...
...
@@ -30,7 +30,7 @@ public class UserConsignmentMappingRepositoryImpl extends BaseDao implements IUs
}
@Override
public
UserConsignmentMapping
save
(
UserConsignmentMapping
entity
)
{
public
UserConsignmentMapping
save
OrUpdate
(
UserConsignmentMapping
entity
)
{
if
(
entity
!=
null
)
{
if
(
entity
.
getId
()
==
null
||
entity
.
getId
().
longValue
()
<=
0
)
{
userConsignmentMappingMapper
.
insertSelective
(
entity
);
...
...
server/manager-server/src/main/java/com/fedex/connect/manager/controller/bi/impl/DicEntriesController.java
View file @
6aeda23
...
...
@@ -23,4 +23,11 @@ public class DicEntriesController extends BaseController implements IDicEntriesC
List
<
DictionaryEntries
>
countryList
=
dicEntriesService
.
getCountryAll
();
return
responseUtils
.
success
(
countryList
);
}
@GetMapping
(
"/getConsStatus"
)
@ApiOperation
(
value
=
"ResponseVo"
,
notes
=
"获取运单状态"
)
public
ResponseVo
getConsStatus
(){
List
<
DictionaryEntries
>
countryList
=
dicEntriesService
.
getConsStatus
();
return
responseUtils
.
success
(
countryList
);
}
}
...
...
server/manager-server/src/main/java/com/fedex/connect/manager/controller/sys/impl/SysAuthController.java
View file @
6aeda23
...
...
@@ -3,9 +3,9 @@ package com.fedex.connect.manager.controller.sys.impl;
import
com.fedex.connect.common.dependencies.authentication.SecurityConstants
;
import
com.fedex.connect.common.dependencies.cache.CacheSystem
;
import
com.fedex.connect.common.dependencies.contants.ParamConfigConstants
;
import
com.fedex.connect.common.dependencies.contants.RedisConstants
;
import
com.fedex.connect.common.dependencies.date.vo.ResponseVo
;
import
com.fedex.connect.common.dependencies.enums.sys.ParamConfigEnum
;
import
com.fedex.connect.common.dependencies.enums.sys.UserLoginTypeEnum
;
import
com.fedex.connect.common.dependencies.util.GsonUtils
;
import
com.fedex.connect.common.dependencies.util.JwtTokenUtils
;
...
...
@@ -91,7 +91,7 @@ public class SysAuthController extends BaseController implements ISysAuthControl
ResponseVo
tokenResult
=
sysAuthService
.
createFclToken
(
jsonObject
);
if
(
tokenResult
.
isSuccess
()){
String
fcl_token_key
=
String
.
valueOf
(
tokenResult
.
getData
());
String
redirectUrl
=
String
.
format
(
"%s?token=%s"
,
paramConfigUtil
.
getParamValue
(
ParamConfig
Enum
.
FCL_LOGIN_URL
.
getEnMsg
()
),
fcl_token_key
);
String
redirectUrl
=
String
.
format
(
"%s?token=%s"
,
paramConfigUtil
.
getParamValue
(
ParamConfig
Constants
.
FCL_PARAM_KEYS
.
FCL_LOGIN_URL
),
fcl_token_key
);
System
.
out
.
println
(
redirectUrl
);
res
.
sendRedirect
(
redirectUrl
);
}
...
...
server/manager-server/src/main/java/com/fedex/connect/manager/repository/repo/bi/IDicEntriesRepository.java
View file @
6aeda23
...
...
@@ -6,4 +6,6 @@ import java.util.List;
public
interface
IDicEntriesRepository
{
List
<
DictionaryEntries
>
getCountryAll
();
List
<
DictionaryEntries
>
getConsStatus
();
}
...
...
server/manager-server/src/main/java/com/fedex/connect/manager/repository/repo/bi/impl/DicEntriesRepositoryImpl.java
View file @
6aeda23
...
...
@@ -30,4 +30,9 @@ public class DicEntriesRepositoryImpl extends BaseDao implements IDicEntriesRepo
public
List
<
DictionaryEntries
>
getCountryAll
(){
return
cacheSystem
.
getDictionarysByDicCode
(
DictionaryConstants
.
COUNTRY
);
}
@Override
public
List
<
DictionaryEntries
>
getConsStatus
()
{
return
cacheSystem
.
getDictionarysByDicCode
(
DictionaryConstants
.
CONSIGNMENT_STATUS
);
}
}
...
...
server/manager-server/src/main/java/com/fedex/connect/manager/service/bi/IDicEntriesService.java
View file @
6aeda23
...
...
@@ -5,4 +5,6 @@ import java.util.List;
public
interface
IDicEntriesService
{
List
<
DictionaryEntries
>
getCountryAll
();
List
<
DictionaryEntries
>
getConsStatus
();
}
\ No newline at end of file
...
...
server/manager-server/src/main/java/com/fedex/connect/manager/service/bi/impl/DicEntriesServiceImpl.java
View file @
6aeda23
...
...
@@ -14,4 +14,9 @@ public class DicEntriesServiceImpl extends BaseService implements IDicEntriesSer
public
List
<
DictionaryEntries
>
getCountryAll
()
{
return
dicEntriesRepository
.
getCountryAll
();
}
@Override
public
List
<
DictionaryEntries
>
getConsStatus
()
{
return
dicEntriesRepository
.
getConsStatus
();
}
}
...
...
Please
register
or
login
to post a comment