zelong.shao

customer|查询数据部分

Showing 38 changed files with 625 additions and 70 deletions
...@@ -3,6 +3,8 @@ package com.fedex.connect.customer.controller; ...@@ -3,6 +3,8 @@ package com.fedex.connect.customer.controller;
3 3
4 import com.fedex.connect.common.dependencies.date.vo.ResponseResultVo; 4 import com.fedex.connect.common.dependencies.date.vo.ResponseResultVo;
5 import com.fedex.connect.common.dependencies.i18n.LocaleMessageUtil; 5 import com.fedex.connect.common.dependencies.i18n.LocaleMessageUtil;
6 +import com.fedex.connect.customer.service.biz.IConsignmentService;
7 +import org.springframework.beans.factory.annotation.Autowired;
6 import org.springframework.http.HttpHeaders; 8 import org.springframework.http.HttpHeaders;
7 import org.springframework.http.HttpStatus; 9 import org.springframework.http.HttpStatus;
8 import org.springframework.http.ResponseEntity; 10 import org.springframework.http.ResponseEntity;
...@@ -20,6 +22,9 @@ public class AbstractEtController { ...@@ -20,6 +22,9 @@ public class AbstractEtController {
20 @Resource 22 @Resource
21 protected LocaleMessageUtil localeMessageUtil; 23 protected LocaleMessageUtil localeMessageUtil;
22 24
25 + @Autowired
26 + protected IConsignmentService consignmentService;
27 +
23 28
24 public <T> ResponseEntity<T> seeOther(String url) { 29 public <T> ResponseEntity<T> seeOther(String url) {
25 HttpHeaders httpHeaders = new HttpHeaders(); 30 HttpHeaders httpHeaders = new HttpHeaders();
......
1 package com.fedex.connect.customer.controller.biz; 1 package com.fedex.connect.customer.controller.biz;
2 2
3 +import com.fedex.connect.common.dependencies.date.vo.ResponseResultVo;
4 +import com.fedex.connect.customer.data.query.ConsignmentQuery;
5 +import org.springframework.web.bind.annotation.RequestBody;
6 +
3 public interface IConsignmentController { 7 public interface IConsignmentController {
8 + ResponseResultVo findConsignment(@RequestBody ConsignmentQuery consignmentQuery);
4 } 9 }
......
1 +package com.fedex.connect.customer.controller.biz.impl;
2 +
3 +import com.fedex.connect.common.dependencies.date.model.LogShowModel;
4 +import com.fedex.connect.common.dependencies.date.vo.ResponseResultVo;
5 +import com.fedex.connect.common.dependencies.enums.ResponseCode;
6 +import com.fedex.connect.common.dependencies.util.CurrentUserInfo;
7 +import com.fedex.connect.customer.controller.AbstractEtController;
8 +import com.fedex.connect.customer.controller.biz.IConsignmentController;
9 +import com.fedex.connect.customer.data.query.ConsignmentQuery;
10 +import io.swagger.annotations.Api;
11 +import io.swagger.annotations.ApiOperation;
12 +import org.slf4j.Logger;
13 +import org.slf4j.LoggerFactory;
14 +import org.springframework.web.bind.annotation.PostMapping;
15 +import org.springframework.web.bind.annotation.RequestBody;
16 +import org.springframework.web.bind.annotation.RequestMapping;
17 +import org.springframework.web.bind.annotation.RestController;
18 +
19 +/**
20 + * @Author Szl
21 + * @Description 类说明 运单相关接口
22 + * @Date 2024/10/30
23 + */
24 +@RestController
25 +@RequestMapping(value = "/consignment", name = "运单相关")
26 +@Api(value = "ConsignmentController", tags = {"运单相关"})
27 +public class ConsignmentControllerImpl extends AbstractEtController implements IConsignmentController {
28 + private static final Logger logger = LoggerFactory.getLogger(ConsignmentControllerImpl.class);
29 +
30 +
31 + @PostMapping("/find")
32 + @ApiOperation(value = "运单查询")
33 + public ResponseResultVo findConsignment(@RequestBody ConsignmentQuery consignmentQuery) {
34 + Long userId = null;
35 + try {
36 + userId = CurrentUserInfo.getUserId();
37 + } catch (Exception e) {
38 + logger.error(LogShowModel.showException("Exception", e));
39 + return ResponseResultVo.fail(localeMessageUtil.getMessage(ResponseCode.TOKEN_FORMAT_ERROR.getMsg()));
40 + }
41 + if (userId == null) {
42 + return ResponseResultVo.fail(localeMessageUtil.getMessage(ResponseCode.OVERDUE_TOKEN_CODE.getMsg()));
43 + }
44 +
45 + ConsignmentQuery query = ConsignmentQuery.dataProcessing(consignmentQuery);
46 + query.setUserId(userId);
47 + return consignmentService.findConsignments(query);
48 + }
49 +}
1 package com.fedex.connect.customer.data.query; 1 package com.fedex.connect.customer.data.query;
2 2
3 import com.fasterxml.jackson.annotation.JsonIgnore; 3 import com.fasterxml.jackson.annotation.JsonIgnore;
4 +import com.fedex.connect.common.dependencies.util.DateUtil;
4 import com.fedex.connect.common.dependencies.util.Utils; 5 import com.fedex.connect.common.dependencies.util.Utils;
5 import com.fedex.connect.customer.data.PageBase; 6 import com.fedex.connect.customer.data.PageBase;
6 import org.springframework.util.CollectionUtils; 7 import org.springframework.util.CollectionUtils;
7 8
9 +import java.time.LocalDate;
10 +import java.time.ZoneId;
11 +import java.util.Date;
8 import java.util.List; 12 import java.util.List;
9 13
10 - 14 +/**
15 + * @Author Szl
16 + * @Description 类说明 查询条件对象
17 + * @Date 2024/10/31
18 + */
11 public class ConsignmentQuery extends PageBase { 19 public class ConsignmentQuery extends PageBase {
12 20
13 public static ConsignmentQuery dataProcessing(ConsignmentQuery query){ 21 public static ConsignmentQuery dataProcessing(ConsignmentQuery query){
14 //多提单号查询 22 //多提单号查询
15 - if (Utils.isNotEmpty(query.getDeliveryNo())) { 23 + if (Utils.isNotEmpty(query.getConsignmentCode())) {
16 - query.setDeliveryNoList(Utils.split(query.getDeliveryNo(), "[;\\n]")); 24 + query.setConsignmentCodeList(Utils.split(query.getConsignmentCode(), "[;\\n]"));
17 } 25 }
18 - if(!CollectionUtils.isEmpty(query.getDeliveryNoList())) { 26 + if(!CollectionUtils.isEmpty(query.getConsignmentCodeList())) {
19 query.setCreateTimeFrom(null); 27 query.setCreateTimeFrom(null);
20 query.setCreateTimeTo(null); 28 query.setCreateTimeTo(null);
21 } 29 }
30 + //如果没有输入查询条件,则默认查三天的数据
31 + if (CollectionUtils.isEmpty(query.getConsignmentCodeList()) && Utils.isEmpty(query.getConsignmentCode())){
32 + LocalDate localDate = LocalDate.now().minusDays(3);
33 + query.setCreateTimeFrom(DateUtil.timeFormat(Date.from(localDate.atStartOfDay(ZoneId.systemDefault()).toInstant())));
34 + query.setCreateTimeTo(DateUtil.timeFormat(new Date()));
35 + }
22 query.setStart(query.getStart()); 36 query.setStart(query.getStart());
23 return query; 37 return query;
24 } 38 }
...@@ -27,12 +41,12 @@ public class ConsignmentQuery extends PageBase { ...@@ -27,12 +41,12 @@ public class ConsignmentQuery extends PageBase {
27 41
28 private String createTimeTo; 42 private String createTimeTo;
29 43
30 - private String deliveryNo; 44 + private String consignmentCode;
31 45
32 private Long sort; 46 private Long sort;
33 47
34 @JsonIgnore 48 @JsonIgnore
35 - private List<String> deliveryNoList; 49 + private List<String> consignmentCodeList;
36 50
37 @JsonIgnore 51 @JsonIgnore
38 private Long userId; 52 private Long userId;
...@@ -53,12 +67,12 @@ public class ConsignmentQuery extends PageBase { ...@@ -53,12 +67,12 @@ public class ConsignmentQuery extends PageBase {
53 this.createTimeTo = createTimeTo; 67 this.createTimeTo = createTimeTo;
54 } 68 }
55 69
56 - public String getDeliveryNo() { 70 + public String getConsignmentCode() {
57 - return deliveryNo; 71 + return consignmentCode;
58 } 72 }
59 73
60 - public void setDeliveryNo(String deliveryNo) { 74 + public void setConsignmentCode(String consignmentCode) {
61 - this.deliveryNo = deliveryNo; 75 + this.consignmentCode = consignmentCode;
62 } 76 }
63 77
64 public Long getUserId() { 78 public Long getUserId() {
...@@ -69,12 +83,12 @@ public class ConsignmentQuery extends PageBase { ...@@ -69,12 +83,12 @@ public class ConsignmentQuery extends PageBase {
69 this.userId = userId; 83 this.userId = userId;
70 } 84 }
71 85
72 - public List<String> getDeliveryNoList() { 86 + public List<String> getConsignmentCodeList() {
73 - return deliveryNoList; 87 + return consignmentCodeList;
74 } 88 }
75 89
76 - public void setDeliveryNoList(List<String> deliveryNoList) { 90 + public void setConsignmentCodeList(List<String> consignmentCodeList) {
77 - this.deliveryNoList = deliveryNoList; 91 + this.consignmentCodeList = consignmentCodeList;
78 } 92 }
79 93
80 public Long getSort() { 94 public Long getSort() {
......
1 +package com.fedex.connect.customer.repository.base;
2 +
3 +import com.fedex.connect.customer.repository.mapper.ConsignmentExtMapper;
4 +import org.springframework.beans.factory.annotation.Autowired;
5 +
6 +public class BaseDao {
7 + @Autowired
8 + public ConsignmentExtMapper consignmentExtMapper;
9 +}
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 +<mapper namespace="com.fedex.connect.customer.repository.mapper.ConsignmentExtMapper">
4 + <resultMap id="BaseResultMap" type="com.fedex.connect.common.model.biz.Consignment">
5 + <id column="ID" jdbcType="NUMERIC" property="id" />
6 + <result column="CONSIGNMENT_CODE" jdbcType="VARCHAR" property="consignmentCode" />
7 + <result column="SHIP_DATE" jdbcType="TIMESTAMP" property="shipDate" />
8 + <result column="SHIPPER_COUNTRY" jdbcType="VARCHAR" property="shipperCountry" />
9 + <result column="RECIPIENT_COUNTRY" jdbcType="VARCHAR" property="recipientCountry" />
10 + <result column="DEST_IATA_CODE" jdbcType="VARCHAR" property="destIataCode" />
11 + <result column="COUNT_ORIGIN" jdbcType="VARCHAR" property="countOrigin" />
12 + <result column="DESTINATION_COUNTRY" jdbcType="VARCHAR" property="destinationCountry" />
13 + <result column="CUSTOMS_CURRENCY" jdbcType="VARCHAR" property="customsCurrency" />
14 + <result column="CUSTOMS_VALUE" jdbcType="NUMERIC" property="customsValue" />
15 + <result column="WEIGHT" jdbcType="NUMERIC" property="weight" />
16 + <result column="WEIGHTUNIT" jdbcType="NUMERIC" property="weightunit" />
17 + <result column="SCANDATE" jdbcType="TIMESTAMP" property="scandate" />
18 + <result column="SHIPPER_CONTACT_NAME" jdbcType="VARCHAR" property="shipperContactName" />
19 + <result column="SHIPPER_PHONE" jdbcType="VARCHAR" property="shipperPhone" />
20 + <result column="SHIPPER_ACCOUNT" jdbcType="VARCHAR" property="shipperAccount" />
21 + <result column="SHIPPER_COMPANY" jdbcType="VARCHAR" property="shipperCompany" />
22 + <result column="SHIPPER_ADDR_LINE1" jdbcType="VARCHAR" property="shipperAddrLine1" />
23 + <result column="SHIPPER_ADDR_LINE2" jdbcType="VARCHAR" property="shipperAddrLine2" />
24 + <result column="SHIPPER_CITY" jdbcType="VARCHAR" property="shipperCity" />
25 + <result column="SHIPPER_EMAIL" jdbcType="VARCHAR" property="shipperEmail" />
26 + <result column="RECIPIENT_CONTACT_NAME" jdbcType="VARCHAR" property="recipientContactName" />
27 + <result column="RECIPIENT_PHONE" jdbcType="VARCHAR" property="recipientPhone" />
28 + <result column="RECIPIENT_COMPANY" jdbcType="VARCHAR" property="recipientCompany" />
29 + <result column="RECIPIENT_ADDR_LINE1" jdbcType="VARCHAR" property="recipientAddrLine1" />
30 + <result column="RECIPIENT_ADDR_LINE2" jdbcType="VARCHAR" property="recipientAddrLine2" />
31 + <result column="RECIPIENT_ADDR_LINE3" jdbcType="VARCHAR" property="recipientAddrLine3" />
32 + <result column="RECIPIENT_CITY" jdbcType="VARCHAR" property="recipientCity" />
33 + <result column="FIRST_COMMIT_TIME" jdbcType="TIMESTAMP" property="firstCommitTime" />
34 + <result column="FIRST_SUBMITTER_ID" jdbcType="NUMERIC" property="firstSubmitterId" />
35 + <result column="FIRST_SUBMITTER" jdbcType="VARCHAR" property="firstSubmitter" />
36 + <result column="COMMIT_TIME" jdbcType="TIMESTAMP" property="commitTime" />
37 + <result column="SUBMITTER_ID" jdbcType="NUMERIC" property="submitterId" />
38 + <result column="SUBMITTER" jdbcType="VARCHAR" property="submitter" />
39 + <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" />
40 + <result column="CREATE_USER_ID" jdbcType="NUMERIC" property="createUserId" />
41 + <result column="CREATE_USER_NAME" jdbcType="VARCHAR" property="createUserName" />
42 + <result column="MODIFY_TIME" jdbcType="TIMESTAMP" property="modifyTime" />
43 + <result column="MODIFY_USER_ID" jdbcType="NUMERIC" property="modifyUserId" />
44 + <result column="MODIFY_USER_NAME" jdbcType="VARCHAR" property="modifyUserName" />
45 + <result column="CE_INFO_ID" jdbcType="NUMERIC" property="ceInfoId" />
46 + </resultMap>
47 +
48 + <select id="findConsignments" resultType="com.fedex.connect.common.model.biz.Consignment">
49 + SELECT *
50 + FROM T_BIZ_CONSIGNMENT
51 + WHERE CREATE_USER_ID = #{userId}
52 + <if test="createTimeFrom != null and createTimeFrom != ''">
53 + AND CREATE_TIME &gt;= TO_DATE(#{createTimeFrom}, 'YYYY-MM-DD HH24:MI:SS')
54 + </if>
55 + <if test="createTimeTo != null and createTimeTo != ''">
56 + AND CREATE_TIME &lt;= TO_DATE(#{createTimeTo}, 'YYYY-MM-DD HH24:MI:SS')
57 + </if>
58 + <if test="consignmentCodeList != null and consignmentCodeList.size() != 0">
59 + AND CONSIGNMENT_CODE IN
60 + <foreach collection="consignmentCodeList" item="item" separator="," open="(" close=")">
61 + #{item}
62 + </foreach>
63 + </if>
64 + </select>
65 +
66 + <select id="findAllCount" resultType="java.lang.Long">
67 + SELECT COUNT(*)
68 + FROM T_BIZ_CONSIGNMENT
69 + WHERE CREATE_USER_ID = #{userId}
70 + <if test="createTimeFrom != null and createTimeFrom != ''">
71 + AND CREATE_TIME &gt;= TO_DATE(#{createTimeFrom}, 'YYYY-MM-DD HH24:MI:SS')
72 + </if>
73 + <if test="createTimeTo != null and createTimeTo != ''">
74 + AND CREATE_TIME &lt;= TO_DATE(#{createTimeTo}, 'YYYY-MM-DD HH24:MI:SS')
75 + </if>
76 + <if test="consignmentCodeList != null and consignmentCodeList.size() != 0">
77 + AND CONSIGNMENT_CODE IN
78 + <foreach collection="consignmentCodeList" item="item" separator="," open="(" close=")">
79 + #{item}
80 + </foreach>
81 + </if>
82 + </select>
83 +
84 +</mapper>
...\ No newline at end of file ...\ No newline at end of file
1 +package com.fedex.connect.customer.repository.mapper;
2 +
3 +import com.fedex.connect.common.model.biz.Consignment;
4 +import com.fedex.connect.customer.data.query.ConsignmentQuery;
5 +import org.apache.ibatis.annotations.Mapper;
6 +
7 +import java.util.List;
8 +
9 +@Mapper
10 +public interface ConsignmentExtMapper {
11 + List<Consignment> findConsignments(ConsignmentQuery query);
12 +
13 + Long findAllCount(ConsignmentQuery query);
14 +}
1 +package com.fedex.connect.customer.repository.repo;
2 +
3 +import com.fedex.connect.common.model.biz.Consignment;
4 +import com.fedex.connect.customer.data.query.ConsignmentQuery;
5 +
6 +import java.util.List;
7 +
8 +public interface IConsignmentExtRepository {
9 + List<Consignment> findConsignments(ConsignmentQuery query);
10 +
11 + public Long findAllCount(ConsignmentQuery query);
12 +}
1 +package com.fedex.connect.customer.repository.repo.impl;
2 +
3 +import com.fedex.connect.common.model.biz.Consignment;
4 +import com.fedex.connect.customer.data.query.ConsignmentQuery;
5 +import com.fedex.connect.customer.repository.base.BaseDao;
6 +import com.fedex.connect.customer.repository.repo.IConsignmentExtRepository;
7 +import org.springframework.stereotype.Repository;
8 +
9 +import java.util.List;
10 +
11 +@Repository
12 +public class ConsignmentExtRepositoryImpl extends BaseDao implements IConsignmentExtRepository {
13 +
14 + @Override
15 + public List<Consignment> findConsignments(ConsignmentQuery query) {
16 + return consignmentExtMapper.findConsignments(query);
17 + }
18 +
19 + @Override
20 + public Long findAllCount(ConsignmentQuery query) {
21 + return null;
22 + }
23 +}
...@@ -2,6 +2,8 @@ package com.fedex.connect.customer.service; ...@@ -2,6 +2,8 @@ package com.fedex.connect.customer.service;
2 2
3 3
4 import com.fedex.connect.common.dependencies.i18n.LocaleMessageUtil; 4 import com.fedex.connect.common.dependencies.i18n.LocaleMessageUtil;
5 +import com.fedex.connect.customer.repository.repo.impl.ConsignmentExtRepositoryImpl;
6 +import org.springframework.beans.factory.annotation.Autowired;
5 7
6 import javax.annotation.Resource; 8 import javax.annotation.Resource;
7 9
...@@ -10,6 +12,9 @@ public class AbstractEtService { ...@@ -10,6 +12,9 @@ public class AbstractEtService {
10 @Resource 12 @Resource
11 protected LocaleMessageUtil localeMessageUtil; 13 protected LocaleMessageUtil localeMessageUtil;
12 14
15 + @Autowired
16 + protected ConsignmentExtRepositoryImpl consignmentExtRepository;
17 +
13 /** 18 /**
14 * repository 19 * repository
15 */ 20 */
......
1 package com.fedex.connect.customer.service.biz; 1 package com.fedex.connect.customer.service.biz;
2 2
3 -public interface IConsignmentService { 3 +import com.fedex.connect.common.dependencies.date.vo.ResponseResultVo;
4 +import com.fedex.connect.customer.data.query.ConsignmentQuery;
4 5
6 +public interface IConsignmentService {
7 + ResponseResultVo findConsignments(ConsignmentQuery query);
5 } 8 }
......
1 package com.fedex.connect.customer.service.biz.impl; 1 package com.fedex.connect.customer.service.biz.impl;
2 2
3 +import com.fedex.connect.common.dependencies.contants.GlobalConstantFedex;
4 +import com.fedex.connect.common.dependencies.date.vo.PageResult;
5 +import com.fedex.connect.common.dependencies.date.vo.ResponseResultVo;
6 +import com.fedex.connect.common.dependencies.util.Utils;
7 +import com.fedex.connect.common.model.biz.Consignment;
8 +import com.fedex.connect.customer.data.query.ConsignmentQuery;
3 import com.fedex.connect.customer.service.AbstractEtService; 9 import com.fedex.connect.customer.service.AbstractEtService;
4 import com.fedex.connect.customer.service.biz.IConsignmentService; 10 import com.fedex.connect.customer.service.biz.IConsignmentService;
5 import org.springframework.stereotype.Service; 11 import org.springframework.stereotype.Service;
6 12
13 +import java.util.List;
14 +
15 +/**
16 + * @Author Szl
17 + * @Description 类说明 运单相关service
18 + * @Date 2024/10/31
19 + */
7 @Service 20 @Service
8 public class ConsignmentServiceImpl extends AbstractEtService implements IConsignmentService { 21 public class ConsignmentServiceImpl extends AbstractEtService implements IConsignmentService {
22 + public ResponseResultVo findConsignments(ConsignmentQuery query) {
23 +
24 + List<String> consignmentCodeList = query.getConsignmentCodeList();
25 + if (Utils.isNotEmpty(consignmentCodeList) && consignmentCodeList.size() > GlobalConstantFedex.DECLARE_COUNT) {
26 + return ResponseResultVo.fail(localeMessageUtil.getMessage("conl_cus_declare_count_max"));
27 + }
28 +
29 + //查询数量
30 + Long total = consignmentExtRepository.findAllCount(query);
31 +
32 + PageResult pageResult = new PageResult();
33 + pageResult.setTotal(total);
34 + pageResult.setPage(query.getPage());
35 + pageResult.setSize(query.getSize());
36 + if (total > 0) {
37 + List<Consignment> consignments = consignmentExtRepository.findConsignments(query);
38 + pageResult.setList(consignments);
39 + }
9 40
41 + return ResponseResultVo.succ(pageResult);
42 + }
10 } 43 }
......
1 +conl_cus_declare_count_max=單次最多可查詢1000個運單號碼
2 +
3 +enum_res_code_301=登錄身份異常
4 +enum_res_code_305=登錄已過期,請重新登錄
......
1 +conl_cus_declare_count_max=單次最多可查詢1000個運單號碼
2 +
3 +enum_res_code_301=登錄身份異常
4 +enum_res_code_305=登錄已過期,請重新登錄
......
...@@ -2,10 +2,12 @@ package com.fedex.connect.common.dependencies.config; ...@@ -2,10 +2,12 @@ package com.fedex.connect.common.dependencies.config;
2 2
3 3
4 import com.fedex.connect.common.dependencies.contants.DatabaseConstants; 4 import com.fedex.connect.common.dependencies.contants.DatabaseConstants;
5 +import com.fedex.connect.common.dependencies.service.bi.IDictionaryEntriesService;
5 import com.fedex.connect.common.dependencies.util.Utils; 6 import com.fedex.connect.common.dependencies.util.Utils;
6 import com.fedex.connect.common.model.bi.DictionaryEntries; 7 import com.fedex.connect.common.model.bi.DictionaryEntries;
7 import org.slf4j.Logger; 8 import org.slf4j.Logger;
8 import org.slf4j.LoggerFactory; 9 import org.slf4j.LoggerFactory;
10 +import org.springframework.beans.factory.annotation.Autowired;
9 import org.springframework.boot.CommandLineRunner; 11 import org.springframework.boot.CommandLineRunner;
10 import org.springframework.core.annotation.Order; 12 import org.springframework.core.annotation.Order;
11 import org.springframework.stereotype.Component; 13 import org.springframework.stereotype.Component;
...@@ -15,18 +17,18 @@ import java.util.*; ...@@ -15,18 +17,18 @@ import java.util.*;
15 import java.util.stream.Collectors; 17 import java.util.stream.Collectors;
16 18
17 /** 19 /**
18 - * 预先数据的加载 20 + * @Author Szl
19 - * 有兴趣了解搜索:CommandLineRunner详解 21 + * @Description 类说明 缓存字典
20 - * @author EDY 22 + * @Date 2024/10/31
21 - */ 23 + */
22 @Component 24 @Component
23 @Order(1) 25 @Order(1)
24 public class CacheSystem implements CommandLineRunner { 26 public class CacheSystem implements CommandLineRunner {
25 27
26 private static final Logger log = LoggerFactory.getLogger(CacheSystem.class); 28 private static final Logger log = LoggerFactory.getLogger(CacheSystem.class);
27 29
28 - // 从 DictionaryProvider 获取字典数据 30 + @Autowired
29 - List<DictionaryEntries> dictionaryData = DictionaryProvider.getDictionaryData(); 31 + IDictionaryEntriesService iDictionaryEntriesService;
30 32
31 33
32 // 静态缓存数据 34 // 静态缓存数据
...@@ -39,6 +41,7 @@ public class CacheSystem implements CommandLineRunner { ...@@ -39,6 +41,7 @@ public class CacheSystem implements CommandLineRunner {
39 41
40 @Override 42 @Override
41 public void run(String... args) { 43 public void run(String... args) {
44 + List<DictionaryEntries> dictionaryData = iDictionaryEntriesService.findAll();
42 if (dictionaryData == null) { 45 if (dictionaryData == null) {
43 log.warn("SysDictionaryService not set, skipping cache initialization."); 46 log.warn("SysDictionaryService not set, skipping cache initialization.");
44 return; 47 return;
......
1 +
2 +package com.fedex.connect.common.dependencies.contants;
3 +
4 +
5 +
6 +/**
7 + * 全局通用常量
8 + */
9 +public class GlobalConstantFedex {
10 +
11 + /**
12 + * 系统CPU数量
13 + */
14 + public static final int DEFAULT_SIZE = Runtime.getRuntime().availableProcessors();
15 +
16 + /**
17 + * 报表的最大导出数量
18 + */
19 + public static final Integer EXPORT_QTY = 999999;
20 +
21 + /**
22 + * 上传Excel最大行限制数量
23 + */
24 + public static final int UPLOAD_EXCEL_MAX_LINE = 15000;
25 +
26 + /**
27 + * 输入字符串最大字符长度(注意是字符)
28 + */
29 + public static final int INPUT_CHARS_MAX_LENGTH = 1000;
30 +
31 + /**
32 + * 发送邮件标题前缀,同时也读取回执时的过滤条件
33 + */
34 + public static final String DECLARE_MAIL_TITLE_PREFIX = "FedEx-iClear";
35 + public static final String DECLARE_MAIL_TITLE_CID = "-CID#";
36 + public static final String DECLARE_MAIL_TITLE_AWB = "-AWB#";
37 + public static final String DECLARE_MAIL_TITLE_SYSID = "-SYSID#";
38 +
39 +
40 + public static final String SYMBOL_LINE_FEED = "</br>";
41 +
42 + public static final String SYMBOL_FULL_HORN_COMMA = ",";
43 +
44 + public static final String SYMBOL_HALF_HORN_COMMA = ",";
45 +
46 + public static final String SYMBOL_HALF_HORN_LOWER_DOT = ".";
47 +
48 + public static final String SYMBOL_HALF_HORN_MIDDLE_DOT = "·";
49 +
50 + public static final String SYMBOL_HALF_HORN_COLON = ":";
51 +
52 + public static final String BLANK_SPACE = "";
53 +
54 + /**
55 + * Excel xls
56 + */
57 + public static final String EXCEL_SUFFIX_XLS = ".XLS";
58 + /**
59 + * Excel xlsx
60 + */
61 + public static final String EXCEL_SUFFIX_XLSX = ".XLSX";
62 +
63 + public static final String DECLARE_INFO_OPER = "0";
64 +
65 + public static final int DECLARE_SAVE = 0;
66 + public static final int DECLARE_UPDATE = 1;
67 + public static final int DECLARE_COMMIT = 2;
68 +
69 + /**
70 + * 提单号长度
71 + */
72 + public static final int DELIVERY_NO_LENGTH = 12;
73 +
74 + /**
75 + * 联系人长度
76 + */
77 + public static final int LIAISONS_LENGTH = 30;
78 +
79 + /**
80 + * 货物输出人统一编号长度
81 + */
82 + public static final int CONSIGNEE_NO_MIN_LENGTH = 8;
83 +
84 + /**
85 + * 货物输出人统一编号最大长度
86 + */
87 + public static final int CONSIGNEE_NO_MAX_LENGTH = 10;
88 +
89 + /**
90 + * 监管编号长度
91 + */
92 + public static final int SUPERVISORY_NO_LENGTH = 5;
93 +
94 + /**
95 + * 原进口报单号码最大长度
96 + */
97 + public static final int ORI_IMP_ENTRY_NO_MAX_LENGTH = 14;
98 +
99 + /**
100 + * 原进口报单号码最大长度
101 + */
102 + public static final int TAX_RULES_MAX_LENGTH = 50;
103 +
104 + /**
105 + * 通用最大长度 100
106 + */
107 + public static final int COMMON_DATABASE_MAX_LENGTH_ONE = 100;
108 +
109 + /**
110 + * 通用最大长度 200
111 + */
112 + public static final int COMMON_DATABASE_MAX_LENGTH_TWO = 200;
113 +
114 + /**
115 + * 通用最大长度 255
116 + */
117 + public static final int COMMON_DATABASE_MAX_LENGTH_THREE = 255;
118 +
119 + /**
120 + * 通用最大长度 6000
121 + */
122 + public static final int COMMON_DATABASE_MAX_LENGTH_FOUR = 6000;
123 +
124 + /**
125 + * 通用最大长度 1500
126 + */
127 + public static final int COMMON_DATABASE_MAX_LENGTH_FIVE = 1500;
128 +
129 + /**
130 + * 通用最大长度 18
131 + */
132 + public static final int COMMON_DATABASE_MAX_LENGTH_SIX = 15;
133 +
134 + /**
135 + * 通用最大长度 3
136 + */
137 + public static final int COMMON_DATABASE_MAX_LENGTH_SEVEN = 3;
138 +
139 + /**
140 + * 通用最大长度 20
141 + */
142 + public static final int COMMON_DATABASE_MAX_LENGTH_EIGHT = 20;
143 +
144 + /**
145 + * 通用最大长度 50
146 + */
147 + public static final int COMMON_DATABASE_MAX_LENGTH_NINE = 50;
148 +
149 + /**
150 + * 通用最大长度 300
151 + */
152 + public static final int COMMON_DATABASE_MAX_LENGTH_TEN = 300;
153 +
154 +
155 +
156 + /**
157 + * 多文件上传的最大个数限制
158 + */
159 + public static final int UPLOAD_FILE_MAX_COUNT = 100;
160 +
161 + /**
162 + * 多文件上传的最大个数限制(95M = 99,614,720 byte)
163 + */
164 + public static final double UPLOAD_FILE_MAX_SIZE = 95 * 1024 * 1024;
165 +
166 +
167 + /**
168 + * 邮件最多重试次数
169 + */
170 + public static final Long MAIL_MAX_RETRY_NUM = 3L;
171 +
172 + /**
173 + * 其它
174 + */
175 + public static final String OTHER = "其它";
176 +
177 + /**
178 + * 其它
179 + */
180 + public static final String PDF = ".pdf";
181 +
182 + public static final String RESET_PWD_TYPE_KEY = "resetPwd";
183 +
184 + public static final String COMPRESS_IMAGE_PREFIX = "COMPRESS_";
185 +
186 + public static final Long IMAGE_SELECT = 1L;
187 +
188 + public static final Long DECLARE_COUNT = 1000L;
189 +
190 + public static final Long PDF_CHECK_INFO = 1L;
191 + public static final Long PDF_INFO = 2L;
192 +
193 + public static final String SIGN = "/";
194 +
195 +}
1 +package com.fedex.connect.common.dependencies.date.vo;
2 +
3 +import java.util.List;
4 +
5 +/**
6 + * 分页返回对象
7 + */
8 +public class PageResult<T>{
9 + /**
10 + * 总记录
11 + */
12 + private Long total;
13 +
14 + /**
15 + * 页数
16 + */
17 + private Integer page;
18 +
19 + /**
20 + * 每页多少条
21 + */
22 + private Integer size;
23 +
24 + /**
25 + * 返回数据
26 + */
27 + private List<T> list;
28 +
29 + public Long getTotal() {
30 + return total;
31 + }
32 +
33 + public void setTotal(Long total) {
34 + this.total = total;
35 + }
36 +
37 + public Integer getPage() {
38 + return page;
39 + }
40 +
41 + public void setPage(Integer page) {
42 + this.page = page;
43 + }
44 +
45 + public Integer getSize() {
46 + return size;
47 + }
48 +
49 + public void setSize(Integer size) {
50 + this.size = size;
51 + }
52 +
53 + public List<T> getList() {
54 + return list;
55 + }
56 +
57 + public void setList(List<T> list) {
58 + this.list = list;
59 + }
60 +
61 + public PageResult() {
62 + }
63 +
64 + public PageResult(Long total, Integer page, Integer size, List<T> list) {
65 + this.total = total;
66 + this.page = page;
67 + this.size = size;
68 + this.list = list;
69 + }
70 +}
1 package com.fedex.connect.common.dependencies.repository.base; 1 package com.fedex.connect.common.dependencies.repository.base;
2 2
3 +import com.fedex.connect.common.dao.bi.DictionaryEntriesMapper;
3 import com.fedex.connect.common.dao.sys.RedisSlabMapper; 4 import com.fedex.connect.common.dao.sys.RedisSlabMapper;
4 import com.fedex.connect.common.dependencies.repository.dao.UserMapperExt; 5 import com.fedex.connect.common.dependencies.repository.dao.UserMapperExt;
5 import org.springframework.beans.factory.annotation.Autowired; 6 import org.springframework.beans.factory.annotation.Autowired;
...@@ -9,4 +10,6 @@ public class BaseDao { ...@@ -9,4 +10,6 @@ public class BaseDao {
9 public UserMapperExt userMapperExt; 10 public UserMapperExt userMapperExt;
10 @Autowired 11 @Autowired
11 public RedisSlabMapper redisSlabMapper; 12 public RedisSlabMapper redisSlabMapper;
13 + @Autowired
14 + public DictionaryEntriesMapper dictionaryEntriesMapper;
12 } 15 }
...\ No newline at end of file ...\ No newline at end of file
......
1 +package com.fedex.connect.common.dependencies.repository.repo.bi;
2 +
3 +import com.fedex.connect.common.model.bi.DictionaryEntries;
4 +import com.fedex.connect.common.model.bi.DictionaryEntriesExample;
5 +
6 +import java.util.List;
7 +
8 +public interface IDictionaryEntriesRepository {
9 + List<DictionaryEntries> selectByExample(DictionaryEntriesExample example);
10 +}
1 +package com.fedex.connect.common.dependencies.repository.repo.bi.impl;
2 +
3 +import com.fedex.connect.common.dependencies.repository.base.BaseDao;
4 +import com.fedex.connect.common.dependencies.repository.repo.bi.IDictionaryEntriesRepository;
5 +import com.fedex.connect.common.model.bi.DictionaryEntries;
6 +import com.fedex.connect.common.model.bi.DictionaryEntriesExample;
7 +import org.springframework.stereotype.Repository;
8 +
9 +import java.util.List;
10 +
11 +@Repository
12 +public class DictionaryEntriesImpl extends BaseDao implements IDictionaryEntriesRepository {
13 +
14 + @Override
15 + public List<DictionaryEntries> selectByExample(DictionaryEntriesExample example) {
16 + return dictionaryEntriesMapper.selectByExample(example);
17 + }
18 +}
1 -package com.fedex.connect.common.dependencies.repository.repo; 1 +package com.fedex.connect.common.dependencies.repository.repo.sys;
2 2
3 import com.fedex.connect.common.model.sys.RedisSlab; 3 import com.fedex.connect.common.model.sys.RedisSlab;
4 import com.fedex.connect.common.model.sys.RedisSlabExample; 4 import com.fedex.connect.common.model.sys.RedisSlabExample;
......
1 -package com.fedex.connect.common.dependencies.repository.repo; 1 +package com.fedex.connect.common.dependencies.repository.repo.sys;
2 2
3 import com.fedex.connect.common.model.sys.User; 3 import com.fedex.connect.common.model.sys.User;
4 4
......
1 -package com.fedex.connect.common.dependencies.repository.repo.impl; 1 +package com.fedex.connect.common.dependencies.repository.repo.sys.impl;
2 2
3 import com.fedex.connect.common.dependencies.repository.base.BaseDao; 3 import com.fedex.connect.common.dependencies.repository.base.BaseDao;
4 -import com.fedex.connect.common.dependencies.repository.repo.IRedisSlabRepository; 4 +import com.fedex.connect.common.dependencies.repository.repo.sys.IRedisSlabRepository;
5 import com.fedex.connect.common.model.sys.RedisSlab; 5 import com.fedex.connect.common.model.sys.RedisSlab;
6 import com.fedex.connect.common.model.sys.RedisSlabExample; 6 import com.fedex.connect.common.model.sys.RedisSlabExample;
7 import org.springframework.stereotype.Repository; 7 import org.springframework.stereotype.Repository;
......
1 -package com.fedex.connect.common.dependencies.repository.repo.impl; 1 +package com.fedex.connect.common.dependencies.repository.repo.sys.impl;
2 2
3 import com.fedex.connect.common.dependencies.repository.base.BaseDao; 3 import com.fedex.connect.common.dependencies.repository.base.BaseDao;
4 -import com.fedex.connect.common.dependencies.repository.repo.IUserRepository; 4 +import com.fedex.connect.common.dependencies.repository.repo.sys.IUserRepository;
5 import com.fedex.connect.common.model.sys.User; 5 import com.fedex.connect.common.model.sys.User;
6 import org.springframework.stereotype.Repository; 6 import org.springframework.stereotype.Repository;
7 7
......
1 package com.fedex.connect.common.dependencies.service.base; 1 package com.fedex.connect.common.dependencies.service.base;
2 2
3 -import com.fedex.connect.common.dependencies.repository.repo.IRedisSlabRepository; 3 +import com.fedex.connect.common.dependencies.repository.repo.sys.IRedisSlabRepository;
4 +import com.fedex.connect.common.dependencies.repository.repo.bi.IDictionaryEntriesRepository;
4 import org.springframework.beans.factory.annotation.Autowired; 5 import org.springframework.beans.factory.annotation.Autowired;
5 6
6 /** 7 /**
...@@ -11,4 +12,6 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -11,4 +12,6 @@ import org.springframework.beans.factory.annotation.Autowired;
11 public class BaseService { 12 public class BaseService {
12 @Autowired 13 @Autowired
13 protected IRedisSlabRepository redisSlabRepository; 14 protected IRedisSlabRepository redisSlabRepository;
15 + @Autowired
16 + protected IDictionaryEntriesRepository dictionaryEntriesRepository;
14 } 17 }
...\ No newline at end of file ...\ No newline at end of file
......
1 +package com.fedex.connect.common.dependencies.service.bi;
2 +
3 +import com.fedex.connect.common.model.bi.DictionaryEntries;
4 +
5 +import java.util.List;
6 +
7 +public interface IDictionaryEntriesService {
8 + List<DictionaryEntries> findAll();
9 +}
1 -package com.fedex.connect.manager.service.base.impl; 1 +package com.fedex.connect.common.dependencies.service.bi.impl;
2 2
3 -import com.fedex.connect.common.dependencies.config.DictionaryProvider;
4 import com.fedex.connect.common.dependencies.contants.DatabaseConstants; 3 import com.fedex.connect.common.dependencies.contants.DatabaseConstants;
5 -import com.fedex.connect.common.model.base.DictionaryEntries; 4 +import com.fedex.connect.common.dependencies.date.model.LogShowModel;
6 -import com.fedex.connect.common.model.base.DictionaryEntriesExample; 5 +import com.fedex.connect.common.dependencies.service.base.BaseService;
7 -import com.fedex.connect.manager.data.model.LogShowModel; 6 +import com.fedex.connect.common.dependencies.service.bi.IDictionaryEntriesService;
8 -import com.fedex.connect.manager.service.AbstractEtService; 7 +import com.fedex.connect.common.model.bi.DictionaryEntries;
9 -import com.fedex.connect.manager.service.base.IInitDictionaryEntriesService; 8 +import com.fedex.connect.common.model.bi.DictionaryEntriesExample;
10 import org.slf4j.Logger; 9 import org.slf4j.Logger;
11 import org.slf4j.LoggerFactory; 10 import org.slf4j.LoggerFactory;
12 -import org.springframework.core.annotation.Order; 11 +import org.springframework.stereotype.Service;
13 -import org.springframework.stereotype.Component;
14 12
15 import java.util.List; 13 import java.util.List;
16 14
17 -@Component 15 +@Service
18 -@Order(value = 1) 16 +public class DictionaryEntriesServiceImpl extends BaseService implements IDictionaryEntriesService {
19 -public class InitInitDictionaryEntriesServiceImpl extends AbstractEtService implements IInitDictionaryEntriesService {
20 17
21 - private static Logger log = LoggerFactory.getLogger(InitInitDictionaryEntriesServiceImpl.class); 18 + private static Logger log = LoggerFactory.getLogger(DictionaryEntriesServiceImpl.class);
22 19
23 public List<DictionaryEntries> findAll() { 20 public List<DictionaryEntries> findAll() {
24 try{ 21 try{
...@@ -32,10 +29,4 @@ public class InitInitDictionaryEntriesServiceImpl extends AbstractEtService impl ...@@ -32,10 +29,4 @@ public class InitInitDictionaryEntriesServiceImpl extends AbstractEtService impl
32 return null; 29 return null;
33 } 30 }
34 } 31 }
35 -
36 -
37 - public void initializeDictionary() {
38 - List<DictionaryEntries> data = findAll(); // 获取字典数据
39 - DictionaryProvider.setDictionaryData(data); // 将数据设置到字典提供者中
40 - }
41 } 32 }
......
...@@ -3,7 +3,7 @@ package com.fedex.connect.common.dependencies.util; ...@@ -3,7 +3,7 @@ package com.fedex.connect.common.dependencies.util;
3 import com.fedex.connect.common.dependencies.authentication.SecurityConstants; 3 import com.fedex.connect.common.dependencies.authentication.SecurityConstants;
4 import com.fedex.connect.common.dependencies.contants.RedisConstants; 4 import com.fedex.connect.common.dependencies.contants.RedisConstants;
5 import com.fedex.connect.common.dependencies.date.dto.SecurityUserDetails; 5 import com.fedex.connect.common.dependencies.date.dto.SecurityUserDetails;
6 -import com.fedex.connect.common.dependencies.repository.repo.IUserRepository; 6 +import com.fedex.connect.common.dependencies.repository.repo.sys.IUserRepository;
7 import com.fedex.connect.common.model.sys.User; 7 import com.fedex.connect.common.model.sys.User;
8 import io.jsonwebtoken.Claims; 8 import io.jsonwebtoken.Claims;
9 import io.jsonwebtoken.Jwts; 9 import io.jsonwebtoken.Jwts;
......
...@@ -3,7 +3,7 @@ package com.fedex.connect.manager.controller.log.impl; ...@@ -3,7 +3,7 @@ package com.fedex.connect.manager.controller.log.impl;
3 import com.fedex.connect.manager.controller.log.ILogLoginService; 3 import com.fedex.connect.manager.controller.log.ILogLoginService;
4 import com.fedex.connect.manager.data.dto.LogLoginDto; 4 import com.fedex.connect.manager.data.dto.LogLoginDto;
5 import com.fedex.connect.manager.data.model.LogShowModel; 5 import com.fedex.connect.manager.data.model.LogShowModel;
6 -import com.fedex.connect.manager.service.AbstractEtService; 6 +import com.fedex.connect.manager.service.base.AbstractEtService;
7 import org.slf4j.Logger; 7 import org.slf4j.Logger;
8 import org.slf4j.LoggerFactory; 8 import org.slf4j.LoggerFactory;
9 import org.springframework.stereotype.Service; 9 import org.springframework.stereotype.Service;
......
1 package com.fedex.connect.manager.repository.repo.sys; 1 package com.fedex.connect.manager.repository.repo.sys;
2 2
3 -import com.fedex.connect.common.model.base.DictionaryEntries; 3 +import com.fedex.connect.common.model.bi.DictionaryEntries;
4 -import com.fedex.connect.common.model.base.DictionaryEntriesExample; 4 +import com.fedex.connect.common.model.bi.DictionaryEntriesExample;
5 5
6 import java.util.List; 6 import java.util.List;
7 7
......
1 package com.fedex.connect.manager.repository.repo.sys.impl; 1 package com.fedex.connect.manager.repository.repo.sys.impl;
2 2
3 -import com.fedex.connect.common.model.base.DictionaryEntries; 3 +import com.fedex.connect.common.model.bi.DictionaryEntries;
4 -import com.fedex.connect.common.model.base.DictionaryEntriesExample; 4 +import com.fedex.connect.common.model.bi.DictionaryEntriesExample;
5 import com.fedex.connect.manager.repository.base.BaseDao; 5 import com.fedex.connect.manager.repository.base.BaseDao;
6 import com.fedex.connect.manager.repository.repo.sys.IDictionaryEntriesRepository; 6 import com.fedex.connect.manager.repository.repo.sys.IDictionaryEntriesRepository;
7 import org.springframework.stereotype.Repository; 7 import org.springframework.stereotype.Repository;
......
1 -package com.fedex.connect.manager.service; 1 +package com.fedex.connect.manager.service.base;
2 2
3 3
4 import com.fedex.connect.common.dao.log.UserLoginInfoMapper; 4 import com.fedex.connect.common.dao.log.UserLoginInfoMapper;
......
1 -package com.fedex.connect.manager.service.base;
2 -
3 -import com.fedex.connect.common.model.base.DictionaryEntries;
4 -
5 -import java.util.List;
6 -
7 -public interface IInitDictionaryEntriesService {
8 - List<DictionaryEntries> findAll();
9 -
10 - void initializeDictionary();
11 -}
...@@ -4,7 +4,7 @@ import com.fedex.connect.common.dependencies.util.GsonUtils; ...@@ -4,7 +4,7 @@ import com.fedex.connect.common.dependencies.util.GsonUtils;
4 import com.fedex.connect.common.model.sys.RedisSlab; 4 import com.fedex.connect.common.model.sys.RedisSlab;
5 import com.fedex.connect.common.model.sys.RedisSlabExample; 5 import com.fedex.connect.common.model.sys.RedisSlabExample;
6 import com.fedex.connect.manager.data.bo.RedisSlabBo; 6 import com.fedex.connect.manager.data.bo.RedisSlabBo;
7 -import com.fedex.connect.manager.service.AbstractEtService; 7 +import com.fedex.connect.manager.service.base.AbstractEtService;
8 import com.fedex.connect.manager.service.sys.IRedisUtilService; 8 import com.fedex.connect.manager.service.sys.IRedisUtilService;
9 import com.google.gson.Gson; 9 import com.google.gson.Gson;
10 import org.slf4j.Logger; 10 import org.slf4j.Logger;
......
...@@ -11,7 +11,7 @@ import com.fedex.connect.common.model.sys.RedisSlab; ...@@ -11,7 +11,7 @@ import com.fedex.connect.common.model.sys.RedisSlab;
11 import com.fedex.connect.common.model.sys.Role; 11 import com.fedex.connect.common.model.sys.Role;
12 import com.fedex.connect.common.model.sys.User; 12 import com.fedex.connect.common.model.sys.User;
13 import com.fedex.connect.manager.data.dto.LoginRequest; 13 import com.fedex.connect.manager.data.dto.LoginRequest;
14 -import com.fedex.connect.manager.service.AbstractEtService; 14 +import com.fedex.connect.manager.service.base.AbstractEtService;
15 import com.fedex.connect.manager.service.sys.IRedisUtilService; 15 import com.fedex.connect.manager.service.sys.IRedisUtilService;
16 import com.fedex.connect.manager.service.sys.ISysAuthService; 16 import com.fedex.connect.manager.service.sys.ISysAuthService;
17 import com.google.gson.JsonObject; 17 import com.google.gson.JsonObject;
......
...@@ -9,7 +9,7 @@ import com.fedex.connect.common.model.sys.RoleExample; ...@@ -9,7 +9,7 @@ import com.fedex.connect.common.model.sys.RoleExample;
9 import com.fedex.connect.common.model.sys.UserRole; 9 import com.fedex.connect.common.model.sys.UserRole;
10 import com.fedex.connect.common.model.sys.UserRoleExample; 10 import com.fedex.connect.common.model.sys.UserRoleExample;
11 import com.fedex.connect.manager.data.model.LogShowModel; 11 import com.fedex.connect.manager.data.model.LogShowModel;
12 -import com.fedex.connect.manager.service.AbstractEtService; 12 +import com.fedex.connect.manager.service.base.AbstractEtService;
13 import com.fedex.connect.manager.service.sys.ISysRoleService; 13 import com.fedex.connect.manager.service.sys.ISysRoleService;
14 import org.slf4j.Logger; 14 import org.slf4j.Logger;
15 import org.slf4j.LoggerFactory; 15 import org.slf4j.LoggerFactory;
......
...@@ -3,7 +3,7 @@ package com.fedex.connect.manager.service.sys.impl; ...@@ -3,7 +3,7 @@ package com.fedex.connect.manager.service.sys.impl;
3 import com.fedex.connect.common.dependencies.contants.DatabaseConstants; 3 import com.fedex.connect.common.dependencies.contants.DatabaseConstants;
4 import com.fedex.connect.common.model.sys.UserRole; 4 import com.fedex.connect.common.model.sys.UserRole;
5 import com.fedex.connect.manager.data.model.LogShowModel; 5 import com.fedex.connect.manager.data.model.LogShowModel;
6 -import com.fedex.connect.manager.service.AbstractEtService; 6 +import com.fedex.connect.manager.service.base.AbstractEtService;
7 import com.fedex.connect.manager.service.sys.ISysUserRoleService; 7 import com.fedex.connect.manager.service.sys.ISysUserRoleService;
8 import org.slf4j.Logger; 8 import org.slf4j.Logger;
9 import org.slf4j.LoggerFactory; 9 import org.slf4j.LoggerFactory;
......
...@@ -11,7 +11,7 @@ import com.fedex.connect.common.model.sys.User; ...@@ -11,7 +11,7 @@ import com.fedex.connect.common.model.sys.User;
11 import com.fedex.connect.common.model.sys.UserExample; 11 import com.fedex.connect.common.model.sys.UserExample;
12 import com.fedex.connect.manager.data.dto.SysUserDto; 12 import com.fedex.connect.manager.data.dto.SysUserDto;
13 import com.fedex.connect.manager.data.model.LogShowModel; 13 import com.fedex.connect.manager.data.model.LogShowModel;
14 -import com.fedex.connect.manager.service.AbstractEtService; 14 +import com.fedex.connect.manager.service.base.AbstractEtService;
15 import com.fedex.connect.manager.service.sys.ISysRoleService; 15 import com.fedex.connect.manager.service.sys.ISysRoleService;
16 import com.fedex.connect.manager.service.sys.ISysUserRoleService; 16 import com.fedex.connect.manager.service.sys.ISysUserRoleService;
17 import com.fedex.connect.manager.service.sys.ISysUserService; 17 import com.fedex.connect.manager.service.sys.ISysUserService;
......