zelong.shao

customer|manager|运单查询调整&运单状态字典查询

...@@ -11,7 +11,7 @@ public class FindConsignmentsDto { ...@@ -11,7 +11,7 @@ public class FindConsignmentsDto {
11 11
12 private String recipientCompany; 12 private String recipientCompany;
13 13
14 - private String shipperCountry; 14 + private String originCountry;
15 15
16 private String docNondocFlag; 16 private String docNondocFlag;
17 17
...@@ -19,7 +19,7 @@ public class FindConsignmentsDto { ...@@ -19,7 +19,7 @@ public class FindConsignmentsDto {
19 19
20 private Date createTime; 20 private Date createTime;
21 21
22 - private Date commitTime; 22 + private Date modifyTime;
23 23
24 private String statusName; 24 private String statusName;
25 } 25 }
......
...@@ -51,4 +51,6 @@ public class ConsignmentQuery extends PageBase { ...@@ -51,4 +51,6 @@ public class ConsignmentQuery extends PageBase {
51 private Long userId; 51 private Long userId;
52 52
53 private String uuid; 53 private String uuid;
54 +
55 + private String statusCode;
54 } 56 }
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
18 c.CONSIGNMENT_CODE, 18 c.CONSIGNMENT_CODE,
19 c.RECIPIENT_CONTACT_NAME, 19 c.RECIPIENT_CONTACT_NAME,
20 c.RECIPIENT_COMPANY, 20 c.RECIPIENT_COMPANY,
21 - c.SHIPPER_COUNTRY, 21 + c.ORIGIN_COUNTRY,
22 CASE 22 CASE
23 WHEN c.DOC_NONDOC_FLAG = 'Y' THEN 'ITEM' 23 WHEN c.DOC_NONDOC_FLAG = 'Y' THEN 'ITEM'
24 WHEN c.DOC_NONDOC_FLAG = 'N' THEN 'DOC' 24 WHEN c.DOC_NONDOC_FLAG = 'N' THEN 'DOC'
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
26 END AS DOC_NONDOC_FLAG, 26 END AS DOC_NONDOC_FLAG,
27 c.CREATE_USER_NAME, 27 c.CREATE_USER_NAME,
28 c.CREATE_TIME, 28 c.CREATE_TIME,
29 - c.COMMIT_TIME, 29 + c.MODIFY_TIME,
30 c.STATUS_NAME 30 c.STATUS_NAME
31 </sql> 31 </sql>
32 32
...@@ -41,6 +41,9 @@ ...@@ -41,6 +41,9 @@
41 (m.user_id = #{userId} AND m.consignment_id IS NOT NULL) 41 (m.user_id = #{userId} AND m.consignment_id IS NOT NULL)
42 OR c.user_uuid = #{uuid,jdbcType=VARCHAR} 42 OR c.user_uuid = #{uuid,jdbcType=VARCHAR}
43 ) 43 )
44 + <if test="statusCode != null and statusCode != ''">
45 + AND c.STATUS_CODE = #{statusCode}
46 + </if>
44 <if test="createTimeFrom != null and createTimeFrom != ''"> 47 <if test="createTimeFrom != null and createTimeFrom != ''">
45 AND c.CREATE_TIME &gt;= TO_DATE(#{createTimeFrom}, 'YYYY-MM-DD HH24:MI:SS') 48 AND c.CREATE_TIME &gt;= TO_DATE(#{createTimeFrom}, 'YYYY-MM-DD HH24:MI:SS')
46 </if> 49 </if>
......
...@@ -30,7 +30,7 @@ public class UserConsignmentMappingRepositoryImpl extends BaseDao implements IUs ...@@ -30,7 +30,7 @@ public class UserConsignmentMappingRepositoryImpl extends BaseDao implements IUs
30 } 30 }
31 31
32 @Override 32 @Override
33 - public UserConsignmentMapping save(UserConsignmentMapping entity) { 33 + public UserConsignmentMapping saveOrUpdate(UserConsignmentMapping entity) {
34 if(entity != null) { 34 if(entity != null) {
35 if (entity.getId() == null || entity.getId().longValue() <= 0) { 35 if (entity.getId() == null || entity.getId().longValue() <= 0) {
36 userConsignmentMappingMapper.insertSelective(entity); 36 userConsignmentMappingMapper.insertSelective(entity);
......
...@@ -23,4 +23,11 @@ public class DicEntriesController extends BaseController implements IDicEntriesC ...@@ -23,4 +23,11 @@ public class DicEntriesController extends BaseController implements IDicEntriesC
23 List<DictionaryEntries> countryList = dicEntriesService.getCountryAll(); 23 List<DictionaryEntries> countryList = dicEntriesService.getCountryAll();
24 return responseUtils.success(countryList); 24 return responseUtils.success(countryList);
25 } 25 }
26 +
27 + @GetMapping("/getConsStatus")
28 + @ApiOperation(value = "ResponseVo", notes = "获取运单状态")
29 + public ResponseVo getConsStatus(){
30 + List<DictionaryEntries> countryList = dicEntriesService.getConsStatus();
31 + return responseUtils.success(countryList);
32 + }
26 } 33 }
......
...@@ -3,9 +3,9 @@ package com.fedex.connect.manager.controller.sys.impl; ...@@ -3,9 +3,9 @@ package com.fedex.connect.manager.controller.sys.impl;
3 3
4 import com.fedex.connect.common.dependencies.authentication.SecurityConstants; 4 import com.fedex.connect.common.dependencies.authentication.SecurityConstants;
5 import com.fedex.connect.common.dependencies.cache.CacheSystem; 5 import com.fedex.connect.common.dependencies.cache.CacheSystem;
6 +import com.fedex.connect.common.dependencies.contants.ParamConfigConstants;
6 import com.fedex.connect.common.dependencies.contants.RedisConstants; 7 import com.fedex.connect.common.dependencies.contants.RedisConstants;
7 import com.fedex.connect.common.dependencies.date.vo.ResponseVo; 8 import com.fedex.connect.common.dependencies.date.vo.ResponseVo;
8 -import com.fedex.connect.common.dependencies.enums.sys.ParamConfigEnum;
9 import com.fedex.connect.common.dependencies.enums.sys.UserLoginTypeEnum; 9 import com.fedex.connect.common.dependencies.enums.sys.UserLoginTypeEnum;
10 import com.fedex.connect.common.dependencies.util.GsonUtils; 10 import com.fedex.connect.common.dependencies.util.GsonUtils;
11 import com.fedex.connect.common.dependencies.util.JwtTokenUtils; 11 import com.fedex.connect.common.dependencies.util.JwtTokenUtils;
...@@ -91,7 +91,7 @@ public class SysAuthController extends BaseController implements ISysAuthControl ...@@ -91,7 +91,7 @@ public class SysAuthController extends BaseController implements ISysAuthControl
91 ResponseVo tokenResult = sysAuthService.createFclToken(jsonObject); 91 ResponseVo tokenResult = sysAuthService.createFclToken(jsonObject);
92 if (tokenResult.isSuccess()){ 92 if (tokenResult.isSuccess()){
93 String fcl_token_key = String.valueOf(tokenResult.getData()); 93 String fcl_token_key = String.valueOf(tokenResult.getData());
94 - String redirectUrl = String.format("%s?token=%s", paramConfigUtil.getParamValue(ParamConfigEnum.FCL_LOGIN_URL.getEnMsg()), fcl_token_key); 94 + String redirectUrl = String.format("%s?token=%s", paramConfigUtil.getParamValue(ParamConfigConstants.FCL_PARAM_KEYS.FCL_LOGIN_URL), fcl_token_key);
95 System.out.println(redirectUrl); 95 System.out.println(redirectUrl);
96 res.sendRedirect(redirectUrl); 96 res.sendRedirect(redirectUrl);
97 } 97 }
......
...@@ -6,4 +6,6 @@ import java.util.List; ...@@ -6,4 +6,6 @@ import java.util.List;
6 6
7 public interface IDicEntriesRepository { 7 public interface IDicEntriesRepository {
8 List<DictionaryEntries> getCountryAll(); 8 List<DictionaryEntries> getCountryAll();
9 +
10 + List<DictionaryEntries> getConsStatus();
9 } 11 }
......
...@@ -30,4 +30,9 @@ public class DicEntriesRepositoryImpl extends BaseDao implements IDicEntriesRepo ...@@ -30,4 +30,9 @@ public class DicEntriesRepositoryImpl extends BaseDao implements IDicEntriesRepo
30 public List<DictionaryEntries> getCountryAll(){ 30 public List<DictionaryEntries> getCountryAll(){
31 return cacheSystem.getDictionarysByDicCode(DictionaryConstants.COUNTRY); 31 return cacheSystem.getDictionarysByDicCode(DictionaryConstants.COUNTRY);
32 } 32 }
33 +
34 + @Override
35 + public List<DictionaryEntries> getConsStatus() {
36 + return cacheSystem.getDictionarysByDicCode(DictionaryConstants.CONSIGNMENT_STATUS);
37 + }
33 } 38 }
......
...@@ -5,4 +5,6 @@ import java.util.List; ...@@ -5,4 +5,6 @@ import java.util.List;
5 5
6 public interface IDicEntriesService { 6 public interface IDicEntriesService {
7 List<DictionaryEntries> getCountryAll(); 7 List<DictionaryEntries> getCountryAll();
8 +
9 + List<DictionaryEntries> getConsStatus();
8 } 10 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -14,4 +14,9 @@ public class DicEntriesServiceImpl extends BaseService implements IDicEntriesSer ...@@ -14,4 +14,9 @@ public class DicEntriesServiceImpl extends BaseService implements IDicEntriesSer
14 public List<DictionaryEntries> getCountryAll() { 14 public List<DictionaryEntries> getCountryAll() {
15 return dicEntriesRepository.getCountryAll(); 15 return dicEntriesRepository.getCountryAll();
16 } 16 }
17 +
18 + @Override
19 + public List<DictionaryEntries> getConsStatus() {
20 + return dicEntriesRepository.getConsStatus();
21 + }
17 } 22 }
......