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-12 17:55:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
41409bfd598f5dace1541e24bfe0499baf490f00
41409bfd
1 parent
f4c8f359
customer|addsql调整
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
server/biz-customer/src/main/java/com/fedex/connect/customer/repository/dao/ConsignmentExtMapper.java
server/biz-customer/src/main/java/com/fedex/connect/customer/service/biz/impl/ConsignmentServiceImpl.java
server/common-dependencies/src/main/java/com/fedex/connect/common/dependencies/util/BaseValidateUtils.java
server/manager-server/src/main/java/com/fedex/connect/manager/controller/bi/impl/DicEntriesController.java
server/biz-customer/src/main/java/com/fedex/connect/customer/repository/dao/ConsignmentExtMapper.java
View file @
41409bf
...
...
@@ -17,10 +17,10 @@ public interface ConsignmentExtMapper {
Long
findAllCount
(
ConsignmentQuery
query
);
@Select
(
"SELECT * FROM ( "
+
"SELECT
* FROM T_BIZ_CONSIGNMENT
"
+
"WHERE CONSIGNMENT_CODE = #{consignmentCode} "
+
"AND
CREATE_TIME >
= SYSDATE - 30 "
+
"ORDER BY CREATE_TIME DESC"
+
"SELECT
t.* FROM T_BIZ_CONSIGNMENT t
"
+
"WHERE
t.
CONSIGNMENT_CODE = #{consignmentCode} "
+
"AND
t.CREATE_TIME >
= SYSDATE - 30 "
+
"ORDER BY
t.
CREATE_TIME DESC"
+
") WHERE ROWNUM = 1"
)
Consignment
findByConsignmentCode
(
@Param
(
"consignmentCode"
)
String
consignmentCode
);
...
...
server/biz-customer/src/main/java/com/fedex/connect/customer/service/biz/impl/ConsignmentServiceImpl.java
View file @
41409bf
...
...
@@ -48,6 +48,11 @@ public class ConsignmentServiceImpl extends BaseService implements IConsignmentS
if
(!
StringUtils
.
isEmpty
(
bo
.
getShipperAccount
())){
if
(
Objects
.
equals
(
user
.
getAccountNo
(),
bo
.
getShipperAccount
())){
return
new
ResponseUtils
().
success
();
}
else
{
/**
* 不存在运单,并且没有填写shipperAccount,则直接返回
*/
return
new
ResponseUtils
().
success
();
}
}
else
{
/**
...
...
server/common-dependencies/src/main/java/com/fedex/connect/common/dependencies/util/BaseValidateUtils.java
View file @
41409bf
package
com
.
fedex
.
connect
.
common
.
dependencies
.
util
;
import
com.fedex.connect.common.dependencies.annotation.BaseNotBlank
;
import
com.fedex.connect.common.dependencies.exception.OpErrorException
;
import
com.fedex.connect.common.dependencies.i18n.LocaleMessageUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.StringUtils
;
import
java.lang.reflect.Field
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -37,7 +37,7 @@ public class BaseValidateUtils {
if
(
Objects
.
nonNull
(
annotation
))
{
Object
value
=
AssignmentFieldUtils
.
getFieldValue
(
obj
,
field
.
getName
());
if
(
value
instanceof
String
){
String
str
=
String
.
valueOf
(
value
)
;
String
str
=
(
String
)
value
;
if
(!
StringUtils
.
hasText
(
str
)){
String
fieldName
=
localeMessageUtil
.
getMessage
(
annotation
.
describe
());
errorList
.
add
(
fieldName
);
...
...
server/manager-server/src/main/java/com/fedex/connect/manager/controller/bi/impl/DicEntriesController.java
View file @
41409bf
...
...
@@ -21,6 +21,6 @@ public class DicEntriesController extends BaseController implements IDicEntriesC
@ApiOperation
(
value
=
"ResponseVo"
,
notes
=
"获取所有国家字典信息"
)
public
ResponseVo
getCountryAll
(){
List
<
DictionaryEntries
>
countryList
=
dicEntriesService
.
getCountryAll
();
return
ResponseVo
.
succ
(
countryList
);
return
responseUtils
.
success
(
countryList
);
}
}
...
...
Please
register
or
login
to post a comment