fanxw před 1 týdnem
rodič
revize
97e4cf8151

+ 4 - 0
pom.xml

@@ -35,6 +35,10 @@
35 35
 			<artifactId>mybatis-spring-boot-starter</artifactId>
36 36
 			<version>1.3.1</version>
37 37
 		</dependency>
38
+		<dependency>  
39
+		    <groupId>org.springframework.boot</groupId>  
40
+		    <artifactId>spring-boot-starter-security</artifactId>  
41
+		</dependency>
38 42
 		<!-- gbase依赖包 -->
39 43
 		<dependency>
40 44
 	      	<groupId>com.gbase8s</groupId>

+ 24 - 0
src/main/java/com/chinaitop/agile/WebSecurityConfig.java

@@ -0,0 +1,24 @@
1
+package com.chinaitop.agile;
2
+
3
+import org.springframework.context.annotation.Configuration;
4
+import org.springframework.security.config.annotation.web.builders.HttpSecurity;
5
+import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
6
+import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
7
+
8
+@Configuration
9
+@EnableWebSecurity
10
+public class WebSecurityConfig 
11
+extends WebSecurityConfigurerAdapter 
12
+{
13
+
14
+	@Override
15
+    protected void configure(HttpSecurity http) throws Exception {
16
+		http.authorizeRequests()
17
+		.antMatchers("/**")
18
+		.permitAll() //允许所有用户访问所有资源
19
+        .and()
20
+        .csrf().disable(); // 禁用CSRF(防止伪造的跨域攻击)
21
+
22
+        super.configure(http);
23
+    }
24
+}

+ 1 - 1
src/main/java/com/chinaitop/agile/mapper/BgmxzMapper.xml

@@ -85,7 +85,7 @@
85 85
         d.y_dataid ydataid
86 86
         from lsreport_ts:data_kcgl_fcbgz_default a
87 87
         left join lsreport_ts:data_kcgl_xckc_default b on b.dataid=a.dataid
88
-        left join depot:business_delivery_storage_notice c on c.bill_number=b.tzdh and c.org_id=b.unitid
88
+        left join (select org_id,bill_number,lqss from depot:business_delivery_storage_notice where changing=0) c on c.bill_number=b.tzdh and c.org_id=b.unitid
89 89
         left join depot:storage_keep_voucher d on d.y_dataid=a.DataID
90 90
         where 1=1 and (a.srsl > 0.0  or a.zcsl > 0.0) AND a.Direction = 1
91 91
         <if test="ch != null">

+ 3 - 1
src/main/java/com/chinaitop/agile/mapper/CrkRecordMapper.xml

@@ -14,6 +14,7 @@
14 14
 			a.lspz AS lspzid,
15 15
 			e1.enumname as lspz,
16 16
 			e2.gbcode as mxpz,
17
+			e2.enumname as mxpzmc,
17 18
 			e3.gbcode as lsxz,
18 19
 			e4.enumname as scnf,
19 20
 			'入仓' as ywlx,
@@ -23,7 +24,7 @@
23 24
 			b.sjhwID as wareid,
24 25
 			b.sjhwbh as warename,
25 26
 			b.BuildDate as rq,
26
-			d.lsdj as lsdj
27
+			a.lydj as lsdj
27 28
 		FROM lsreport_ts:data_crkyw_rmdj_default a
28 29
 		inner JOIN lsreport_ts:data_crkyw_cpz_default b ON a.BizNo = b.BizNo
29 30
 		LEFT JOIN depot:basic_enum e1 on a.lspz = e1.enumid
@@ -50,6 +51,7 @@
50 51
 			a.lspz AS lspzid,
51 52
 			e1.enumname as lspz,
52 53
 			e2.gbcode as mxpz,
54
+			e2.enumname as mxpzmc,
53 55
 			e3.gbcode as lsxz,
54 56
 			'' as scnf,
55 57
 			'出仓' as ywlx,

+ 8 - 4
src/main/resources/bootstrap.yml

@@ -7,7 +7,7 @@ server:
7 7
 eureka:
8 8
   client:
9 9
     service-url:
10
-      defaultZone: http://localhost:9001/eureka/
10
+      defaultZone: http://tj_admin:Admin_1234@${eureka.instance.hostname}:9001/eureka/
11 11
   instance:
12 12
     hostname: 172.16.0.16
13 13
     #prefer-ip-address: true
@@ -20,6 +20,10 @@ eureka:
20 20
 mybatis:
21 21
   config-location: classpath:mybatis/mybatis-config.xml
22 22
 
23
+management:
24
+  server:
25
+    port: -1
26
+
23 27
 spring:
24 28
   #profiles: local
25 29
   application:
@@ -33,9 +37,9 @@ spring:
33 37
     username: gbasedbt
34 38
     password: cDbK2S0go8
35 39
     #政务云数据库
36
-    #url: jdbc:gbasedbt-sqli://111.164.113.172:666/lsreport_ts:INFORMIXSERVER=gbaseserver;NEWCODESET=GBK,8859-1,819;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
40
+    #url: jdbc:gbasedbt-sqli://10.223.3.63:9088/lsreport_ts:INFORMIXSERVER=gbaseserver;NEWCODESET=GBK,8859-1,819;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
37 41
     #username: gbasedbt
38
-    #password: GBase123
42
+    #password: 4E7#8x8Yut
39 43
 
40 44
   # 缓存配置
41 45
   session:
@@ -64,4 +68,4 @@ spring:
64 68
     static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
65 69
 
66 70
 web:
67
-  upload-path: /home/depot/depot-web/apache-tomcat-8.0.53/webapps/ROOT/WEB-INF/classes/static
71
+  upload-path: /home/depot/depot-web/depot-file