diff --git a/pom.xml b/pom.xml
index b9f0cc7..edecd81 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,11 +4,11 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
-
- com.chinaunicom.ebtp
- mall-ebtp-cloud-parent
- 2.4.1-zyhy-SNAPSHOT
-
+
+ com.chinaunicom.ebtp
+ mall-ebtp-cloud-parent
+ 2.4.1-zyhy-SNAPSHOT
+
com.chinaunicom.mall.ebtp
biz_service_ebtp_extend
@@ -17,23 +17,23 @@
-
- com.chinaunicom.mall.ebtp
- uboot-core
- 2.4.1-zyhy-SNAPSHOT
-
+
+ com.chinaunicom.mall.ebtp
+ uboot-core
+ 2.4.1-zyhy-SNAPSHOT
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
com.deepoove
poi-tl
1.9.1
@@ -75,11 +75,11 @@
${basedir}/lib/access_token1.3.jar
-
-
-
-
-
+
+
+
+
+
org.apache.velocity
velocity-tools
@@ -91,11 +91,11 @@
-
-
-
-
-
+
+
+
+
+
org
@@ -109,21 +109,24 @@
aliyun-sdk-oss
3.10.2
+
+
+
-
-
- maven-snapshot-local
- maven-snapshot-local
- http://ccp.tianti.tg.unicom.local/artifactory/tianti-maven-snapshot-local/
-
- false
-
-
- true
- always
-
-
+
+
+ maven-snapshot-local
+ maven-snapshot-local
+ http://ccp.tianti.tg.unicom.local/artifactory/tianti-maven-snapshot-local/
+
+ false
+
+
+ true
+ always
+
+
com.e-iceblue
@@ -133,7 +136,7 @@
maven-virtual
http://ccp.tianti.tg.unicom.local/artifactory/maven-virtual
-
+
@@ -155,12 +158,12 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/BizServiceEbtpExtendApplication.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/BizServiceEbtpExtendApplication.java
index e799bce..0b98460 100644
--- a/src/main/java/com/chinaunicom/mall/ebtp/extend/BizServiceEbtpExtendApplication.java
+++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/BizServiceEbtpExtendApplication.java
@@ -3,7 +3,6 @@ package com.chinaunicom.mall.ebtp.extend;
import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
-import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import io.micrometer.core.instrument.MeterRegistry;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
@@ -12,7 +11,6 @@ import org.springframework.boot.actuate.autoconfigure.metrics.MeterRegistryCusto
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
-import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
@@ -20,7 +18,6 @@ import org.springframework.scheduling.annotation.EnableAsync;
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, DruidDataSourceAutoConfigure.class})
@EnableFeignClients
-@EnableEurekaClient
@MapperScan({"com.chinaunicom.mall.ebtp.extend.**.dao"})
@ComponentScan("com.chinaunicom.mall.ebtp.*")
@EnableAsync
diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/bizbidnotice/controller/BizBidNoticeController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/bizbidnotice/controller/BizBidNoticeController.java
index b17fb7d..a7563a2 100644
--- a/src/main/java/com/chinaunicom/mall/ebtp/extend/bizbidnotice/controller/BizBidNoticeController.java
+++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/bizbidnotice/controller/BizBidNoticeController.java
@@ -13,7 +13,6 @@ import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@@ -64,7 +63,6 @@ public class BizBidNoticeController {
* @return
*/
@ApiOperation("查询所有列表")
- @PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
@PostMapping("/allList")
public BaseResponse> getAll(@RequestBody BizBidNoticeVO bizBidNotice) {
@@ -85,7 +83,6 @@ public class BizBidNoticeController {
* @return
*/
@ApiOperation("插入新数据")
- @PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
@PostMapping("/add")
public BaseResponse insert(
@ApiParam(value = "对象数据", required = true) @RequestBody @Valid BizBidNotice bizBidNotice) {
@@ -103,7 +100,6 @@ public class BizBidNoticeController {
* @return
*/
@ApiOperation("修改数据")
- @PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
@PostMapping("/update")
public BaseResponse update(
@ApiParam(value = "对象数据", required = true) @RequestBody BizBidNotice bizBidNotice) {
@@ -118,7 +114,6 @@ public class BizBidNoticeController {
* @return
*/
@ApiOperation("发布数据")
- @PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
@PostMapping("/fabu/{id}")
public BaseResponse fabu(@ApiParam(value = "主键id", required = true) @PathVariable String id) {
BizBidNotice notice = new BizBidNotice();
@@ -134,7 +129,6 @@ public class BizBidNoticeController {
* @return
*/
@ApiOperation("发布数据")
- @PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
@PostMapping("/qxfabu/{id}")
public BaseResponse qxfabu(@ApiParam(value = "主键id", required = true) @PathVariable String id) {
@@ -151,7 +145,6 @@ public class BizBidNoticeController {
* @return
*/
@ApiOperation("置顶数据")
- @PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
@PostMapping("/top/{id}")
public BaseResponse top(@ApiParam(value = "主键id", required = true) @PathVariable String id) {
@@ -169,7 +162,6 @@ public class BizBidNoticeController {
* @return
*/
@ApiOperation("取消置顶数据")
- @PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
@PostMapping("/qxtop/{id}")
public BaseResponse qxtop(@ApiParam(value = "主键id", required = true) @PathVariable String id) {
@@ -198,7 +190,6 @@ public class BizBidNoticeController {
* @return
*/
@ApiOperation("删除数据")
- @PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
@PostMapping("/delete/{id}")
public BaseResponse delete(@ApiParam(value = "主键id", required = true) @PathVariable String id) {
return BaseResponse.success(ibizBidNoticeService.removeById(id));
diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/bizbidshared/controller/BizBidSharedController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/bizbidshared/controller/BizBidSharedController.java
index 4a166c6..29be20c 100644
--- a/src/main/java/com/chinaunicom/mall/ebtp/extend/bizbidshared/controller/BizBidSharedController.java
+++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/bizbidshared/controller/BizBidSharedController.java
@@ -12,7 +12,6 @@ import com.chinaunicom.mall.ebtp.extend.bizbidshared.service.IBizBidSharedServic
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
-import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;
@@ -47,7 +46,6 @@ public class BizBidSharedController {
* @return
*/
@ApiOperation("插入新数据")
- @PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
@PostMapping("/add")
public BaseResponse insert(@ApiParam(value = "对象数据", required = true) @RequestBody @Valid BizBidShared bizBidShared) {
if (StringUtils.isEmpty(bizBidShared.getId())) {
@@ -67,7 +65,6 @@ public class BizBidSharedController {
* @return
*/
@ApiOperation("修改数据")
- @PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
@PostMapping("")
public BaseResponse update(@ApiParam(value = "对象数据", required = true) @RequestBody BizBidShared bizBidShared) {
return BaseResponse.success(ibizBidSharedService.updateById(bizBidShared));
@@ -92,7 +89,6 @@ public class BizBidSharedController {
* @return
*/
@ApiOperation("删除数据")
- @PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
@PostMapping("/delete/{id}")
public BaseResponse delete(@ApiParam(value = "主键id", required = true) @PathVariable String id) {
return BaseResponse.success(ibizBidSharedService.removeById(id));
diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/bizbidsharedrecord/controller/BizBidSharedRecordController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/bizbidsharedrecord/controller/BizBidSharedRecordController.java
index 10f090b..9706e08 100644
--- a/src/main/java/com/chinaunicom/mall/ebtp/extend/bizbidsharedrecord/controller/BizBidSharedRecordController.java
+++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/bizbidsharedrecord/controller/BizBidSharedRecordController.java
@@ -12,7 +12,6 @@ import com.chinaunicom.mall.ebtp.extend.bizbidsharedrecord.service.IBizBidShared
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
-import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@@ -35,7 +34,6 @@ public class BizBidSharedRecordController {
* @return
*/
@ApiOperation("查询数据列表")
- @PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
@PostMapping("/list/{id}")
public BasePageResponse getList(@PathVariable("id") String id,
@ApiParam(value = "对象数据", required = true) @RequestBody @Valid BizBidSharedRecordVO bizBidShared) {
@@ -75,7 +73,6 @@ public class BizBidSharedRecordController {
* @return
*/
@ApiOperation("修改数据")
- @PreAuthorize("hasAnyAuthority('ebtp-system-admin')")
@PostMapping("/update")
public BaseResponse update(
@ApiParam(value = "对象数据", required = true) @RequestBody BizBidSharedRecord bizBidSharedRecord) {
diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/bizmessage/controller/AuthorizeController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/bizmessage/controller/AuthorizeController.java
index e0e5958..23066f6 100644
--- a/src/main/java/com/chinaunicom/mall/ebtp/extend/bizmessage/controller/AuthorizeController.java
+++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/bizmessage/controller/AuthorizeController.java
@@ -4,8 +4,6 @@ import com.chinaunicom.mall.ebtp.common.base.entity.BaseCacheUser;
import com.chinaunicom.mall.ebtp.common.base.service.IBaseCacheUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
-import org.springframework.security.core.Authentication;
-import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
@@ -24,11 +22,11 @@ public class AuthorizeController {
@ResponseStatus(code = HttpStatus.OK)
public Object user(Principal principal) {
BaseCacheUser cacheUser = service.getCacheUser();
- Authentication auth = SecurityContextHolder.getContext().getAuthentication();
-
- System.out.println(auth.getName());
- System.out.println(auth.getAuthorities());
- System.out.println(principal);
+// Authentication auth = SecurityContextHolder.getContext().getAuthentication();
+//
+// System.out.println(auth.getName());
+// System.out.println(auth.getAuthorities());
+// System.out.println(principal);
return cacheUser;
}
diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/config/SeataInterceptorConfig.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/config/SeataInterceptorConfig.java
deleted file mode 100644
index 1243f01..0000000
--- a/src/main/java/com/chinaunicom/mall/ebtp/extend/config/SeataInterceptorConfig.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package com.chinaunicom.mall.ebtp.extend.config;
-
-import io.seata.core.context.RootContext;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.web.servlet.HandlerInterceptor;
-import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
-import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import java.util.Objects;
-
-/**
- * seata拦截器配置类 解除seata绑定
- *
- * @author fqj
- * @date 2022-01-13
- */
-@Configuration
-public class SeataInterceptorConfig implements WebMvcConfigurer {
-
- @Override
- public void addInterceptors(InterceptorRegistry registry) {
- InterceptorRegistration interceptor = registry.addInterceptor(new HandlerInterceptor() {
- @Override
- public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
- if (!Objects.isNull(RootContext.getXID())) {
- RootContext.unbind();
- }
- return true;
- }
- });
- interceptor.addPathPatterns("/**");
- }
-}
diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/crypto/helper/Utils.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/crypto/helper/Utils.java
index 9dd156d..e28df06 100644
--- a/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/crypto/helper/Utils.java
+++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/crypconfigure/crypto/helper/Utils.java
@@ -14,8 +14,6 @@
package com.chinaunicom.mall.ebtp.extend.crypconfigure.crypto.helper;
-import com.google.protobuf.ByteString;
-import com.google.protobuf.Timestamp;
import org.apache.commons.io.IOUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -221,16 +219,6 @@ public final class Utils {
return UUID.randomUUID().toString();
}
- /**
- * Create a new {@link Timestamp} instance based on the current time
- *
- * @return timestamp
- */
- public static Timestamp generateTimestamp() {
- Instant time = Instant.now();
- return Timestamp.newBuilder().setSeconds(time.getEpochSecond())
- .setNanos(time.getNano()).build();
- }
/**
* Delete a file or directory
@@ -378,15 +366,6 @@ public final class Utils {
return values;
}
- public static String toHexString(ByteString byteString) {
- if (byteString == null) {
- return null;
- }
-
- return encodeHexString(byteString.toByteArray());
-
- }
-
public static String toHexString(byte[] bytes) {
if (bytes == null) {
return null;
diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/export/controller/ExportController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/export/controller/ExportController.java
index 7d3b597..d58a754 100644
--- a/src/main/java/com/chinaunicom/mall/ebtp/extend/export/controller/ExportController.java
+++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/export/controller/ExportController.java
@@ -7,7 +7,7 @@ import com.chinaunicom.mall.ebtp.extend.export.service.ExportServiceFactory;
import com.chinaunicom.mall.ebtp.extend.export.service.dict.IBizExportDictService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.security.access.prepost.PreAuthorize;
+//import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -39,7 +39,7 @@ public class ExportController {
* @param request
* @param response
*/
- @PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
+// @PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
@GetMapping(value = "/{type}")
public void export(@PathVariable String type, ExportParam param, HttpServletRequest request, HttpServletResponse response) {
exportServiceFactory.getService(type).doExport(param, request, response);
@@ -51,7 +51,7 @@ public class ExportController {
* @param roomId
* @return
*/
- @PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
+// @PreAuthorize("hasAnyAuthority('ebtp-purchase','ebtp-agency-project-manager')")
@GetMapping("/list/{roomId}")
public BaseResponse