gaodandan 5 anni fa
parent
commit
b1241fd2e4

+ 30 - 7
pom.xml

@@ -14,7 +14,7 @@
14 14
 	<parent>
15 15
 		<groupId>org.springframework.boot</groupId>
16 16
 		<artifactId>spring-boot-starter-parent</artifactId>
17
-		<version>2.0.0.RELEASE</version>
17
+		<version>2.0.4.RELEASE</version>
18 18
 		<relativePath/> <!-- lookup parent from repository -->
19 19
 	</parent>
20 20
 
@@ -22,7 +22,7 @@
22 22
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23 23
         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24 24
         <java.version>1.8</java.version>
25
-        <spring-cloud.version>Finchley.M8</spring-cloud.version>
25
+        <spring-cloud.version>Finchley.RELEASE</spring-cloud.version>
26 26
     </properties>
27 27
 
28 28
 	<dependencies>
@@ -46,6 +46,12 @@
46 46
 		    <artifactId>spring-boot-autoconfigure</artifactId>
47 47
 		</dependency>
48 48
 		
49
+		<dependency>
50
+		    <groupId>org.springframework.boot</groupId>
51
+		    <artifactId>spring-boot-devtools</artifactId>
52
+		    <optional>true</optional>
53
+		</dependency>
54
+
49 55
 		
50 56
 		<!--activiti新增的jar包   开始  -->
51 57
 		<dependency>
@@ -114,11 +120,16 @@
114 120
 		</dependency>
115 121
 		
116 122
 		<!--添加webservice-->
123
+		<dependency>
124
+		   <groupId>org.apache.cxf</groupId>
125
+		   <artifactId>cxf-spring-boot-starter-jaxws</artifactId>
126
+		   <version>3.2.4</version>
127
+        </dependency>
117 128
         <dependency>
118 129
             <groupId>org.springframework.boot</groupId>
119 130
             <artifactId>spring-boot-starter-web-services</artifactId>
120 131
         </dependency>
121
-        <dependency>
132
+        <!-- <dependency>
122 133
             <groupId>org.apache.cxf</groupId>
123 134
             <artifactId>cxf-rt-frontend-jaxws</artifactId>
124 135
             <version>3.1.6</version>
@@ -127,7 +138,7 @@
127 138
             <groupId>org.apache.cxf</groupId>
128 139
             <artifactId>cxf-rt-transports-http</artifactId>
129 140
             <version>3.1.6</version>
130
-        </dependency>
141
+        </dependency> -->
131 142
         <!--添加webservice end-->
132 143
         
133 144
 		<!-- 引入spring boot自带的pagehelper插件 -->
@@ -147,6 +158,16 @@
147 158
             <groupId>org.springframework.cloud</groupId>
148 159
             <artifactId>spring-cloud-starter-config</artifactId>
149 160
         </dependency>
161
+        
162
+        <dependency>
163
+        	<groupId>org.springframework.cloud</groupId>
164
+        	<artifactId>spring-cloud-starter-openfeign</artifactId>
165
+        </dependency>
166
+        <!-- <dependency>
167
+          <groupId>org.springframework.cloud</groupId>
168
+        	   <artifactId>spring-cloud-starter-openfeign</artifactId>
169
+        </dependency> -->
170
+
150 171
 		<dependency>
151 172
 			<groupId>org.apache.commons</groupId>
152 173
 			<artifactId>commons-lang3</artifactId>
@@ -186,11 +207,10 @@
186 207
 			<version>3.9</version>
187 208
 		</dependency>
188 209
 		
189
-		<!--<dependency>
210
+		<dependency>
190 211
 		    <groupId>org.apache.httpcomponents</groupId>
191 212
 		    <artifactId>httpclient</artifactId>
192
-		    <version>4.5.3</version>
193
-		</dependency>-->
213
+		</dependency>
194 214
 		
195 215
 		<dependency>  
196 216
 	       <groupId>log4j</groupId>  
@@ -238,6 +258,9 @@
238 258
 			<plugin>
239 259
 				<groupId>org.springframework.boot</groupId>
240 260
 				<artifactId>spring-boot-maven-plugin</artifactId>
261
+				<configuration>
262
+                    <fork>true</fork>
263
+                </configuration>
241 264
 			</plugin>
242 265
 			<!-- <plugin>
243 266
             	<groupId>org.apache.maven.plugins</groupId>

+ 6 - 4
src/main/java/com/chinaitop/depot/DepotBusinessApplication.java

@@ -9,6 +9,7 @@ import org.springframework.boot.web.servlet.ServletRegistrationBean;
9 9
 import org.springframework.cache.annotation.EnableCaching;
10 10
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
11 11
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
12
+import org.springframework.cloud.openfeign.EnableFeignClients;
12 13
 import org.springframework.context.annotation.Bean;
13 14
 import org.springframework.context.annotation.ComponentScan;
14 15
 import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
@@ -23,6 +24,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
23 24
 @EnableDiscoveryClient
24 25
 @EnableCaching
25 26
 @EnableRedisHttpSession
27
+@EnableFeignClients
26 28
 @EnableSwagger2
27 29
 @SpringBootApplication(
28 30
 		//exclude = {DataSourceAutoConfiguration.class}	// 禁止自动配置数据源,多数据源需采用手动配置
@@ -40,7 +42,7 @@ public class DepotBusinessApplication {
40 42
 	/**
41 43
 	 * 注册一个dispatcherServlet,解决增加ws之后https接口访问不了问题
42 44
 	 */
43
-	@Bean
45
+	/*@Bean
44 46
 	public ServletRegistrationBean restServlet(){
45 47
 		//注解扫描上下文
46 48
 		AnnotationConfigWebApplicationContext applicationContext = new AnnotationConfigWebApplicationContext();
@@ -57,11 +59,11 @@ public class DepotBusinessApplication {
57 59
 		registrationBean.setName("rest");
58 60
 		return registrationBean;
59 61
 	}
60
-
61
-	@Bean
62
+*/
63
+	/*@Bean
62 64
 	public ThreadPoolTaskScheduler threadPoolTaskScheduler() {
63 65
 		return new ThreadPoolTaskScheduler();
64
-	}
66
+	}*/
65 67
 	
66 68
 
67 69
 }

+ 3 - 5
src/main/java/com/chinaitop/depot/act/controller/ActTemplateController.java

@@ -2,12 +2,10 @@ package com.chinaitop.depot.act.controller;
2 2
 
3 3
 import java.io.UnsupportedEncodingException;
4 4
 
5
-import javax.servlet.http.HttpServletRequest;
6 5
 import javax.xml.stream.XMLStreamException;
7 6
 
8 7
 import org.apache.commons.lang3.StringUtils;
9 8
 import org.springframework.beans.factory.annotation.Autowired;
10
-import org.springframework.http.MediaType;
11 9
 import org.springframework.web.bind.annotation.RequestMapping;
12 10
 import org.springframework.web.bind.annotation.RequestMethod;
13 11
 import org.springframework.web.bind.annotation.RestController;
@@ -21,15 +19,15 @@ public class ActTemplateController {
21 19
 	@Autowired
22 20
 	private ActTemplateService actTemplateService;
23 21
 	
24
-	@RequestMapping(value = "/deploy", method=RequestMethod.POST)
25
-	public String deploy( MultipartFile file, RedirectAttributes redirectAttributes, HttpServletRequest request) {
22
+	@RequestMapping(value = "/actDeploy",method=RequestMethod.POST)
23
+	public String deploy(MultipartFile file,RedirectAttributes redirectAttributes, Integer orgId) {
26 24
 
27 25
 		String fileName = file.getOriginalFilename();
28 26
 		
29 27
 		if (StringUtils.isBlank(fileName)){
30 28
 			redirectAttributes.addFlashAttribute("message", "请选择要部署的流程文件");
31 29
 		}else{
32
-			String message = actTemplateService.deploy(file,request);
30
+			String message = actTemplateService.deploy(file,orgId);
33 31
 			return message;
34 32
 		}
35 33
 		return null;

+ 3 - 5
src/main/java/com/chinaitop/depot/act/service/ActTemplateService.java

@@ -38,7 +38,7 @@ public class ActTemplateService {
38 38
 	 * @return
39 39
 	 */
40 40
 	@Transactional(readOnly = false)
41
-	public String deploy(MultipartFile file, HttpServletRequest request) {
41
+	public String deploy(MultipartFile file,Integer orgId) {
42 42
 
43 43
 		String message = "";
44 44
 		
@@ -64,13 +64,11 @@ public class ActTemplateService {
64 64
 			
65 65
 			List<ProcessDefinition> list = repositoryService.createProcessDefinitionQuery().deploymentId(deployment.getId()).list();
66 66
 			
67
-			Integer depotId =(Integer) request.getSession().getAttribute("depotId");
68
-			
69 67
 				// 设置流程分类
70 68
 			for (ProcessDefinition processDefinition : list) {
71 69
 	//				ActUtils.exportDiagramToFile(repositoryService, processDefinition, exportDir);
72
-				repositoryService.setProcessDefinitionCategory(processDefinition.getId(), depotId.toString());
73
-				message += "部署成功,流程ID=" + processDefinition.getId() + "<br/>";
70
+				repositoryService.setProcessDefinitionCategory(processDefinition.getId(), orgId.toString());
71
+				message += "部署成功,流程ID=" + processDefinition.getId();
74 72
 			}
75 73
 			if (list.size() == 0){
76 74
 				message = "部署失败,没有流程。";

+ 47 - 0
src/main/java/com/chinaitop/depot/business/controller/RoleInfoController.java

@@ -0,0 +1,47 @@
1
+package com.chinaitop.depot.business.controller;
2
+
3
+import com.chinaitop.depot.business.model.RoleInfo;
4
+import com.chinaitop.depot.business.model.RoleInfoExample;
5
+import com.chinaitop.depot.business.model.RoleInfoExample.Criteria;
6
+import com.chinaitop.depot.business.service.RoleInfoService;
7
+import com.github.pagehelper.PageHelper;
8
+import com.github.pagehelper.PageInfo;
9
+import org.apache.commons.lang3.StringUtils;
10
+import org.springframework.web.bind.annotation.RequestMapping;
11
+import org.springframework.web.bind.annotation.RestController;
12
+
13
+import javax.annotation.Resource;
14
+import javax.servlet.http.HttpServletRequest;
15
+
16
+import java.util.List;
17
+
18
+@RestController
19
+@RequestMapping(value="/roleInfo")
20
+public class RoleInfoController {
21
+	
22
+	@Resource
23
+	private RoleInfoService roleInfoService;
24
+	
25
+	
26
+	/**
27
+	 * 查找角色信息
28
+	 * @param pageNum	页码
29
+	 * @param pageSize	每页条数
30
+	 * @return
31
+	 */
32
+	@RequestMapping(value="/getRole")
33
+	public PageInfo<RoleInfo> getRoleInfo(HttpServletRequest request) {
34
+		RoleInfoExample example = new RoleInfoExample();
35
+		Criteria criteria = example.createCriteria();
36
+		Integer orgId = (Integer)request.getSession().getAttribute("orgId");
37
+		if (orgId != null) {
38
+			criteria.andOrgIdEqualTo(orgId);
39
+		}
40
+		List<RoleInfo> list = roleInfoService.queryByExample(example);	
41
+		PageInfo<RoleInfo> pageInfo = new PageInfo<RoleInfo>(list);
42
+		return pageInfo;
43
+	}
44
+
45
+	
46
+
47
+}

+ 5 - 74
src/main/java/com/chinaitop/depot/business/controller/UserInfoController.java

@@ -77,86 +77,17 @@ public class UserInfoController {
77 77
 	 */
78 78
 	@RequestMapping(value="/getUser", method = RequestMethod.GET)
79 79
 	@ApiOperation(value="查询用户信息", notes = "查询用户信息列表,支持分页")
80
-	@ApiImplicitParams({
81
-			@ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
82
-			@ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
83
-			@ApiImplicitParam(name = "username", value = "用户名", paramType = "query"),
84
-			@ApiImplicitParam(name = "realName", value = "用户真实姓名", paramType = "query")
85
-	})
86
-	public PageInfo<UserInfo> getUserInfo(HttpServletRequest request, Integer pageNum, Integer pageSize,
87
-                                          String username, String realName, Integer roleId, String orgIds) {
88
-		
89
-		if (pageNum!=null && pageSize!=null) {
90
-			PageHelper.startPage(pageNum, pageSize);
91
-		}
92
-		
80
+	public PageInfo<UserInfo> getUserInfo(HttpServletRequest request) {
81
+                                          
93 82
 		HashMap<Object, Object> map = new HashMap<Object, Object>();
94
-		map.put("username", username);
95
-		map.put("realName", realName);
96
-		map.put("roleId", roleId);
83
+		Integer orgId = (Integer)request.getSession().getAttribute("orgId");
84
+		map.put("orgIds", orgId);
97 85
 		List<UserInfo> listAll=userInfoService.queryAll(map);
98 86
 		PageInfo<UserInfo> pageInfo = new PageInfo<UserInfo>(listAll);
99 87
 		return pageInfo;
100 88
 	}
101 89
 
102
-	/**
103
-	 * 用户登录
104
-	 * @param request
105
-	 * @param username	用户名
106
-	 * @param password	密码
107
-	 * @return
108
-	 */
109
-	@RequestMapping(value="/login", method = RequestMethod.POST)
110
-	@ApiOperation(value="用户登录", notes = "用户登录")
111
-	@ApiImplicitParams({
112
-			@ApiImplicitParam(name = "username", value = "用户名", paramType = "form"),
113
-			@ApiImplicitParam(name = "password", value = "密码", paramType = "form"),
114
-			@ApiImplicitParam(name = "yzm", value = "验证码", paramType = "form"),
115
-			@ApiImplicitParam(name = "from", value = "来源,app代表来自于移动端", paramType = "form")
116
-	})
117
-	public Map<String, Object> Login(HttpServletRequest request, String username, String password, String yzm, String from) {
118
-		Map<String, Object> map = new HashMap<String, Object>();
119
-		if (StringUtils.isBlank(from) || from.compareTo("app")!=0) {
120
-			String yzm_code = (String) request.getSession().getAttribute("Service_Code");
121
-			if (!yzm_code.equals(yzm)) {
122
-				map.put("status", false);
123
-				map.put("success", "验证码输入错误!");
124
-				return map;
125
-			}
126
-		}
127
-		UserInfo userInfo = userInfoService.valid(username, password);
128
-		if (userInfo != null) {
129
-			//把对象转变成一个json
130
-			ObjectMapper mapper = new ObjectMapper();
131
-			try {
132
-				String userInfoObject = mapper.writeValueAsString(userInfo);
133
-				// 当前登录用户
134
-				request.getSession().setAttribute("userInfo", userInfoObject);
135
-				// 当前登录用户id
136
-				request.getSession().setAttribute("userId", userInfo.getUserId());
137
-				// 当前组织信息
138
-				OrgInfo orgInfo = orgInfoService.findById(userInfo.getOrgId());
139
-				String orgInfoObject = mapper.writeValueAsString(orgInfo);
140
-				request.getSession().setAttribute("orgInfo", orgInfoObject);
141
-				// 当前用户所属的库信息及库编号
142
-				OrgInfo depotInfo = orgInfoService.getDepotInfo(orgInfo);
143
-				if(depotInfo!=null){
144
-					String depotInfoObject = mapper.writeValueAsString(depotInfo);
145
-					request.getSession().setAttribute("depotInfo", depotInfoObject);
146
-					request.getSession().setAttribute("depotId", depotInfo.getOrgId());
147
-				}
148
-			} catch (JsonProcessingException e) {
149
-				e.printStackTrace();
150
-			}
151
-			map.put("status", true);
152
-			map.put("userInfo", userInfo);
153
-		} else {
154
-			map.put("status", false);
155
-			map.put("success", "用户名或密码错误,登录失败!");
156
-		}
157
-		return map;
158
-	}
159
-
90
+	
160 91
 	/**
161 92
 	 * 获取用户登录信息,包括当前用户、当前组织、当前库、当前库编号
162 93
 	 * @param request

+ 27 - 28
src/main/java/com/chinaitop/depot/business/model/BusinessScedule.java

@@ -1,15 +1,15 @@
1 1
 /**
2 2
  * 
3
- *//*
3
+ */
4 4
 package com.chinaitop.depot.business.model;
5 5
 
6
-*//**
6
+/**
7 7
  * 粮食业务管理,进度查询.
8 8
  * <p>Title: BusinessScedule</p>
9 9
  * <p>Description: </p>
10 10
  * @author yaoyabin
11 11
  * @date 2017年11月1日 下午8:04:31
12
- *//*
12
+ */
13 13
 
14 14
 public class BusinessScedule {
15 15
     // 可研报告号 对应 粮食业务管理中的计划id
@@ -25,79 +25,78 @@ public class BusinessScedule {
25 25
     private String sumRksl;
26 26
     // 出库数量.
27 27
     private String sumCksl;
28
-    *//**
28
+    /**
29 29
      * @return the jhId
30
-     *//*
30
+     */
31 31
     public String getJhId() {
32 32
         return jhId;
33 33
     }
34
-    *//**
34
+    /**
35 35
      * @param jhId the jhId to set
36
-     *//*
36
+     */
37 37
     public void setJhId(String jhId) {
38 38
         this.jhId = jhId;
39 39
     }
40
-    *//**
40
+    /**
41 41
      * @return the htId
42
-     *//*
42
+     */
43 43
     public String getHtId() {
44 44
         return htId;
45 45
     }
46
-    *//**
46
+    /**
47 47
      * @param htId the htId to set
48
-     *//*
48
+     */
49 49
     public void setHtId(String htId) {
50 50
         this.htId = htId;
51 51
     }
52
-    *//**
52
+    /**
53 53
      * @return the tzdId
54
-     *//*
54
+     */
55 55
     public String getTzdId() {
56 56
         return tzdId;
57 57
     }
58
-    *//**
58
+    /**
59 59
      * @param tzdId the tzdId to set
60
-     *//*
60
+     */
61 61
     public void setTzdId(String tzdId) {
62 62
         this.tzdId = tzdId;
63 63
     }
64
-    *//**
64
+    /**
65 65
      * @return the sumRksl
66
-     *//*
66
+     */
67 67
     public String getSumRksl() {
68 68
         return sumRksl;
69 69
     }
70
-    *//**
70
+    /**
71 71
      * @param sumRksl the sumRksl to set
72
-     *//*
72
+     */
73 73
     public void setSumRksl(String sumRksl) {
74 74
         this.sumRksl = sumRksl;
75 75
     }
76
-    *//**
76
+    /**
77 77
      * @return the sumCksl
78
-     *//*
78
+     */
79 79
     public String getSumCksl() {
80 80
         return sumCksl;
81 81
     }
82
-    *//**
82
+    /**
83 83
      * @param sumCksl the sumCksl to set
84
-     *//*
84
+     */
85 85
     public void setSumCksl(String sumCksl) {
86 86
         this.sumCksl = sumCksl;
87 87
     }
88
-    *//**
88
+    /**
89 89
      * @return the crkLx
90
-     *//*
90
+     */
91 91
     public String getCrkLx() {
92 92
         return crkLx;
93 93
     }
94
-    *//**
94
+    /**
95 95
      * @param crkLx the crkLx to set
96
-     *//*
96
+     */
97 97
     public void setCrkLx(String crkLx) {
98 98
         this.crkLx = crkLx;
99 99
     }
100 100
     
101 101
     
102 102
 }
103
-*/

+ 9 - 10
src/main/java/com/chinaitop/depot/business/service/BusinessSceduleService.java

@@ -1,4 +1,4 @@
1
-/*package com.chinaitop.depot.business.service;
1
+package com.chinaitop.depot.business.service;
2 2
 
3 3
 import java.util.List;
4 4
 import java.util.Map;
@@ -7,34 +7,33 @@ import com.chinaitop.depot.business.model.BusinessScedule;
7 7
 
8 8
 public interface BusinessSceduleService {
9 9
 
10
-    *//**
10
+    /**
11 11
      * 通过多个计划id,获取这多个计划的出入库类型,出库总数量,入库总数量.
12 12
      * @param planIds
13 13
      * @return
14
-     *//*
14
+     */
15 15
     List<BusinessScedule> getPlanSceduleInPlanId(String planIds);
16 16
     
17
-    *//**
17
+    /**
18 18
      * 通过多个合同id,获取这多个合同的出入库类型,出库总数量,入库总数量.
19 19
      * @param planIds
20 20
      * @return
21
-     *//*
21
+     */
22 22
     List<BusinessScedule> getContractSceduleInContractId(String contractIds);
23 23
     
24
-    *//**
24
+    /**
25 25
      * 通过多个通知单id,获取这多个通知单的出入库类型,出库总数量,入库总数量.
26 26
      * @param planIds
27 27
      * @return
28
-     *//*
28
+     */
29 29
     List<BusinessScedule> getNoticeSceduleInNoticeId(String noticeIds);
30 30
 
31
-    *//**
31
+    /**
32 32
      * 根据粮库业务管理中出入库通知单id,修改出入库系统中,通知单状态. 
33 33
      * 修改出入库表  data_crkyw_tzdxx_default中tzdh等于 这边的 通知单id获取到DataID 
34 34
      * 通过DataID 链接 fl_bill_relation 修改字段FLOWSTATUS
35 35
      * @param paramMap 通知单id. 通知单状态.
36
-     *//*
36
+     */
37 37
     void updateNoticeStatus(Map<String, Object> paramMap);
38 38
 
39 39
 }
40
-*/

+ 9 - 1
src/main/java/com/chinaitop/depot/business/service/impl/BusinessContractServiceImpl.java

@@ -17,8 +17,8 @@ import org.springframework.transaction.annotation.Transactional;
17 17
 
18 18
 import com.alibaba.fastjson.JSONObject;
19 19
 import com.chinaitop.depot.act.service.ActTaskService;
20
-import com.chinaitop.depot.agile.model.BusinessScedule;
21 20
 import com.chinaitop.depot.agile.service.BusinessSceduleService;
21
+import com.chinaitop.depot.agile.model.BusinessScedule;
22 22
 import com.chinaitop.depot.business.mapper.BusinessContractMapper;
23 23
 import com.chinaitop.depot.business.model.BusinessApproval;
24 24
 import com.chinaitop.depot.business.model.BusinessContract;
@@ -61,6 +61,8 @@ public class BusinessContractServiceImpl implements BusinessContractService {
61 61
     private BusinessStoreWareDetailService businessStoreWareDetailService;
62 62
     @Resource
63 63
     private BusinessContractService contractService;
64
+    /*@Resource
65
+    private ServerApi serverApi;*/
64 66
     @Resource
65 67
     private BusinessSceduleService businessSceduleService;
66 68
     @Resource
@@ -842,6 +844,7 @@ public class BusinessContractServiceImpl implements BusinessContractService {
842 844
                 paramMap.put("FLOWSTATUS", CrkNoticeStatus.ZHIXINGZHONG.getCrkNoticeCode());
843 845
                 // 修改出入库系统的 通知单状态.
844 846
                 businessSceduleService.updateNoticeStatus(paramMap);
847
+                //serverApi.updateNoticeStatus(paramMap);
845 848
             }
846 849
         }
847 850
         return returnMap;
@@ -882,6 +885,7 @@ public class BusinessContractServiceImpl implements BusinessContractService {
882 885
                 paramMap.put("FLOWSTATUS", CrkNoticeStatus.ZANTING.getCrkNoticeCode());
883 886
                 // 修改出入库系统的 通知单状态.
884 887
                 businessSceduleService.updateNoticeStatus(paramMap);
888
+                //serverApi.updateNoticeStatus(paramMap);
885 889
             }
886 890
         }
887 891
     }
@@ -921,6 +925,7 @@ public class BusinessContractServiceImpl implements BusinessContractService {
921 925
                 paramMap.put("FLOWSTATUS", CrkNoticeStatus.ZHONGZHI.getCrkNoticeCode());
922 926
                 // 修改出入库系统的 通知单状态.
923 927
                 businessSceduleService.updateNoticeStatus(paramMap);
928
+               // serverApi.updateNoticeStatus(paramMap);
924 929
             }
925 930
         }
926 931
     }
@@ -991,13 +996,16 @@ public class BusinessContractServiceImpl implements BusinessContractService {
991 996
             fyzz.append(")");
992 997
             dzzz.append(")");
993 998
             List<BusinessScedule> businessSceduleList = businessSceduleService.getContractSceduleInContractId(sb.toString()); //合同
999
+            //List<BusinessScedule> businessSceduleList = serverApi.getContractSceduleInContractId(sb.toString());
994 1000
             List<BusinessScedule> dzContractSceduleList = null ;
995 1001
             List<BusinessScedule> fyContractSceduleList = null;
996 1002
             if(dzzz.indexOf(",")!=-1){
997 1003
             	 dzContractSceduleList = businessSceduleService.getDzContractSceduleInContractId(dzzz.toString()); //到站中转的合同
1004
+            	//dzContractSceduleList = serverApi.getDzContractSceduleInContractId(dzzz.toString());
998 1005
             }
999 1006
             if(fyzz.indexOf(",")!=-1){
1000 1007
             	 fyContractSceduleList = businessSceduleService.getFyContractSceduleInContractId(fyzz.toString()); //发运中转的合同
1008
+            	 //fyContractSceduleList = serverApi.getFyContractSceduleInContractId(fyzz.toString()); //发运中转的合同
1001 1009
             }
1002 1010
             if(dzContractSceduleList!=null && dzContractSceduleList.size()>0){
1003 1011
             	for (BusinessScedule dzScedule : dzContractSceduleList) {

+ 7 - 1
src/main/java/com/chinaitop/depot/business/service/impl/BusinessDeliveryStorageNoticeServiceImpl.java

@@ -16,8 +16,8 @@ import org.springframework.transaction.annotation.Transactional;
16 16
 
17 17
 import com.alibaba.fastjson.JSONObject;
18 18
 import com.chinaitop.depot.act.service.ActTaskService;
19
-import com.chinaitop.depot.agile.model.BusinessScedule;
20 19
 import com.chinaitop.depot.agile.service.BusinessSceduleService;
20
+import com.chinaitop.depot.agile.model.BusinessScedule;
21 21
 import com.chinaitop.depot.business.mapper.BusinessDeliveryStorageNoticeMapper;
22 22
 import com.chinaitop.depot.business.model.BusinessApproval;
23 23
 import com.chinaitop.depot.business.model.BusinessContract;
@@ -57,6 +57,8 @@ public class BusinessDeliveryStorageNoticeServiceImpl implements BusinessDeliver
57 57
     private BusinessPlanService planService;
58 58
     @Resource
59 59
     private BusinessContractService contractService;
60
+    /*@Resource
61
+    private ServerApi serverApi;*/
60 62
     @Resource
61 63
     private BusinessSceduleService businessSceduleService;
62 64
     @Resource
@@ -657,6 +659,7 @@ public class BusinessDeliveryStorageNoticeServiceImpl implements BusinessDeliver
657 659
         paramMap.put("FLOWSTATUS", CrkNoticeStatus.ZHIXINGZHONG.getCrkNoticeCode());
658 660
         // 修改出入库系统的 通知单状态.
659 661
         businessSceduleService.updateNoticeStatus(paramMap);
662
+         //serverApi.updateNoticeStatus(paramMap);
660 663
         return returnMap;
661 664
     }
662 665
 
@@ -690,6 +693,7 @@ public class BusinessDeliveryStorageNoticeServiceImpl implements BusinessDeliver
690 693
         paramMap.put("FLOWSTATUS", CrkNoticeStatus.ZANTING.getCrkNoticeCode());
691 694
         // 修改出入库系统的 通知单状态.
692 695
         businessSceduleService.updateNoticeStatus(paramMap);
696
+        //serverApi.updateNoticeStatus(paramMap);
693 697
     }
694 698
     
695 699
     /**
@@ -723,6 +727,7 @@ public class BusinessDeliveryStorageNoticeServiceImpl implements BusinessDeliver
723 727
         paramMap.put("FLOWSTATUS", CrkNoticeStatus.ZHONGZHI.getCrkNoticeCode());
724 728
         // 修改出入库系统的 通知单状态.
725 729
         businessSceduleService.updateNoticeStatus(paramMap);
730
+        //serverApi.updateNoticeStatus(paramMap);
726 731
     }
727 732
 
728 733
     /**
@@ -775,6 +780,7 @@ public class BusinessDeliveryStorageNoticeServiceImpl implements BusinessDeliver
775 780
             sb = new StringBuffer(substring);
776 781
             sb.append(")");
777 782
             List<BusinessScedule> businessSceduleList = businessSceduleService.getNoticeSceduleInNoticeId(sb.toString());
783
+            //List<BusinessScedule> businessSceduleList = serverApi.getNoticeSceduleInNoticeId(sb.toString());
778 784
             // 通过通知单id,去出入库查询.
779 785
             if (businessSceduleList != null && businessSceduleList.size() > 0) {
780 786
                 // 循环通知单list.

+ 7 - 1
src/main/java/com/chinaitop/depot/business/service/impl/BusinessPlanServiceImpl.java

@@ -17,8 +17,8 @@ import org.springframework.transaction.annotation.Transactional;
17 17
 
18 18
 import com.alibaba.fastjson.JSONObject;
19 19
 import com.chinaitop.depot.act.service.ActTaskService;
20
-import com.chinaitop.depot.agile.model.BusinessScedule;
21 20
 import com.chinaitop.depot.agile.service.BusinessSceduleService;
21
+import com.chinaitop.depot.agile.model.BusinessScedule;
22 22
 import com.chinaitop.depot.business.mapper.BusinessPlanMapper;
23 23
 import com.chinaitop.depot.business.model.BusinessApproval;
24 24
 import com.chinaitop.depot.business.model.BusinessContract;
@@ -69,6 +69,8 @@ public class BusinessPlanServiceImpl implements BusinessPlanService {
69 69
     private ActTaskService actTaskService;
70 70
     @Resource
71 71
     private BusinessApprovalService businessApprovalService;
72
+    /*@Resource
73
+    private ServerApi serverApi;*/
72 74
     @Resource
73 75
     private BusinessSceduleService businessSceduleService;
74 76
     @Resource
@@ -497,6 +499,7 @@ public class BusinessPlanServiceImpl implements BusinessPlanService {
497 499
                 paramMap.put("FLOWSTATUS", CrkNoticeStatus.ZHIXINGZHONG.getCrkNoticeCode());
498 500
                 // 修改出入库系统的 通知单状态.
499 501
                 businessSceduleService.updateNoticeStatus(paramMap);
502
+                //serverApi.updateNoticeStatus(paramMap);
500 503
             }
501 504
         }
502 505
     }
@@ -534,6 +537,7 @@ public class BusinessPlanServiceImpl implements BusinessPlanService {
534 537
                 paramMap.put("FLOWSTATUS", CrkNoticeStatus.ZANTING.getCrkNoticeCode());
535 538
                 // 修改出入库系统的 通知单状态.
536 539
                 businessSceduleService.updateNoticeStatus(paramMap);
540
+                //serverApi.updateNoticeStatus(paramMap);
537 541
             }
538 542
         }
539 543
     }
@@ -570,6 +574,7 @@ public class BusinessPlanServiceImpl implements BusinessPlanService {
570 574
                 paramMap.put("FLOWSTATUS", CrkNoticeStatus.ZHONGZHI.getCrkNoticeCode());
571 575
                 // 修改出入库系统的 通知单状态.
572 576
                 businessSceduleService.updateNoticeStatus(paramMap);
577
+                //serverApi.updateNoticeStatus(paramMap);
573 578
             }
574 579
         }
575 580
     }
@@ -616,6 +621,7 @@ public class BusinessPlanServiceImpl implements BusinessPlanService {
616 621
             sb = new StringBuffer(substring);
617 622
             sb.append(")");
618 623
             List<BusinessScedule> businessSceduleList = businessSceduleService.getPlanSceduleInPlanId(sb.toString());
624
+            //List<BusinessScedule> businessSceduleList = serverApi.getPlanSceduleInPlanId(sb.toString());
619 625
             // 通过计划id,去出入库查询.
620 626
             if (businessSceduleList != null && businessSceduleList.size() > 0) {
621 627
                 // 循环计划list.

+ 4 - 3
src/main/java/com/chinaitop/depot/config/DataSourceConfig.java

@@ -1,4 +1,4 @@
1
-package com.chinaitop.depot.config;
1
+/*package com.chinaitop.depot.config;
2 2
 
3 3
 import javax.sql.DataSource;
4 4
 
@@ -8,11 +8,11 @@ import org.springframework.context.annotation.Bean;
8 8
 import org.springframework.context.annotation.Configuration;
9 9
 import org.springframework.context.annotation.Primary;
10 10
 
11
-/**
11
+*//**
12 12
  * 配置多数据源
13 13
  * @author XUEENXI
14 14
  *
15
- */
15
+ *//*
16 16
 @Configuration
17 17
 public class DataSourceConfig {
18 18
 
@@ -30,3 +30,4 @@ public class DataSourceConfig {
30 30
     }
31 31
 
32 32
 }
33
+*/

+ 2 - 1
src/main/java/com/chinaitop/depot/config/MybatisAgileDBConfig.java

@@ -1,4 +1,4 @@
1
-package com.chinaitop.depot.config;
1
+/*package com.chinaitop.depot.config;
2 2
 
3 3
 import javax.sql.DataSource;
4 4
 
@@ -38,3 +38,4 @@ public class MybatisAgileDBConfig {
38 38
         return template;
39 39
     }
40 40
 }
41
+*/

+ 2 - 1
src/main/java/com/chinaitop/depot/config/MybatisDepotDBConfig.java

@@ -1,4 +1,4 @@
1
-package com.chinaitop.depot.config;
1
+/*package com.chinaitop.depot.config;
2 2
 
3 3
 import javax.sql.DataSource;
4 4
 
@@ -44,3 +44,4 @@ public class MybatisDepotDBConfig {
44 44
         return template;
45 45
     }
46 46
 }
47
+*/

+ 2 - 4
src/main/java/com/chinaitop/depot/unissoft/serviceconfig/CxfConfig.java

@@ -7,8 +7,6 @@ import com.chinaitop.depot.unissoft.webservice.NoticePassServiceImpl;
7 7
 import org.apache.cxf.Bus;
8 8
 import org.apache.cxf.bus.spring.SpringBus;
9 9
 import org.apache.cxf.jaxws.EndpointImpl;
10
-import org.apache.cxf.transport.servlet.CXFServlet;
11
-import org.springframework.boot.web.servlet.ServletRegistrationBean;
12 10
 import org.springframework.context.annotation.Bean;
13 11
 import org.springframework.context.annotation.Configuration;
14 12
 
@@ -16,10 +14,10 @@ import javax.xml.ws.Endpoint;
16 14
 
17 15
 @Configuration
18 16
 public class CxfConfig {
19
-    @Bean
17
+    /*@Bean
20 18
     public ServletRegistrationBean dispatcherServlet() {
21 19
         return new ServletRegistrationBean(new CXFServlet(),"/business/*");
22
-    }
20
+    }*/
23 21
     @Bean(name = Bus.DEFAULT_BUS_ID)
24 22
     public SpringBus springBus() {
25 23
         return new SpringBus();

+ 2 - 1
src/main/resources/bootstrap.yml

@@ -50,7 +50,8 @@ spring:
50 50
   
51 51
 web:
52 52
   upload-path: /home/depot/depot-web/apache-tomcat-8.0.53/webapps/ROOT/WEB-INF/classes/static
53
-
53
+cxf:
54
+  path: /business
54 55
 
55 56
         
56 57