lvzhikai преди 4 години
родител
ревизия
919b0d84de

+ 5 - 7
src/main/java/com/chinaitop/depot/business/controller/BusinessPlanController.java

@@ -11,6 +11,7 @@ import com.chinaitop.depot.business.service.BusinessFileService;
11 11
 import com.chinaitop.depot.business.service.BusinessPlanService;
12 12
 import com.chinaitop.depot.business.service.BusinessStoreWareDetailService;
13 13
 import com.chinaitop.depot.utils.HTTPUtils;
14
+import com.chinaitop.depot.utils.ParameterUtil;
14 15
 import com.fasterxml.jackson.core.JsonParseException;
15 16
 import com.fasterxml.jackson.core.type.TypeReference;
16 17
 import com.fasterxml.jackson.databind.JsonMappingException;
@@ -24,9 +25,7 @@ import io.swagger.annotations.ApiOperation;
24 25
 import org.springframework.beans.factory.annotation.Autowired;
25 26
 import org.springframework.beans.factory.annotation.Value;
26 27
 import org.springframework.http.MediaType;
27
-import org.springframework.web.bind.annotation.RequestMapping;
28
-import org.springframework.web.bind.annotation.RequestMethod;
29
-import org.springframework.web.bind.annotation.RestController;
28
+import org.springframework.web.bind.annotation.*;
30 29
 
31 30
 import javax.annotation.Resource;
32 31
 import javax.servlet.http.HttpServletRequest;
@@ -438,7 +437,7 @@ public class BusinessPlanController {
438 437
                 	plan.setProvinceRemark(provinceRemark);
439 438
                 }
440 439
                 if(sendTime!=null){
441
-                	plan.setSendDate(Timestamp.valueOf(sendTime));
440
+                	plan.setSendDate(ParameterUtil.string2date(sendTime));
442 441
                 }
443 442
                 businessPlanService.updatePlanStatus(plan);
444 443
                 modelMap.put("plan", plan);
@@ -507,11 +506,10 @@ public class BusinessPlanController {
507 506
      * @return
508 507
      * @throws Exception
509 508
      */
510
-    @RequestMapping(value="/reportSave",produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.POST)
509
+    @RequestMapping(value="/reportSave", produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.POST)
511 510
     @ApiOperation(value="计划申请列表", notes = "查询数据列表,支持分页")
512 511
     @ApiImplicitParams({
513
-            @ApiImplicitParam(name = "businessPlan", value = "计划", paramType = "query")
514
-
512
+            @ApiImplicitParam(name = "businessPlan", value = "计划", paramType = "from")
515 513
     })
516 514
     public Map<String, Object> reportSave(String businessPlan) throws Exception {
517 515
         // Integer userId = userInfo.getUserId();

+ 5 - 3
src/main/java/com/chinaitop/depot/pushs/service/impl/PushServiceImpl.java

@@ -127,7 +127,7 @@ public class PushServiceImpl implements PushsService{
127 127
 	@Transactional(rollbackFor = Exception.class)
128 128
 	@Override
129 129
 	public String updateNoticeState(String inApplicationJson) {
130
-
130
+		Map<String,Object> mapData = new HashMap<String, Object>();
131 131
 		if (null != inApplicationJson) {
132 132
 			/* 将获取到的json串转换成json数组 */
133 133
 			JSONArray json_array = JSONArray.parseArray(inApplicationJson);
@@ -144,6 +144,10 @@ public class PushServiceImpl implements PushsService{
144 144
 
145 145
 				//获取数据
146 146
 //				String ids = json_object.get("tzdId").toString();
147
+				if (ParameterUtil.isnull(json_object.get("tzdNumber"))) {
148
+					mapData.put("status", "tzdNumber");
149
+					return JSON.toJSONString(ResponseEntity.ok(mapData));
150
+				}
147 151
 				String numbers = json_object.get("tzdNumber").toString();
148 152
 				String inApplication = json_object.get("inApplication").toString();
149 153
 
@@ -163,8 +167,6 @@ public class PushServiceImpl implements PushsService{
163 167
 			}
164 168
 		}
165 169
 
166
-
167
-		Map<String,Object> mapData = new HashMap<String, Object>();
168 170
 		mapData.put("status", "success");
169 171
 		return JSON.toJSONString(ResponseEntity.ok(mapData));
170 172
 	}

+ 1 - 1
src/main/java/com/chinaitop/depot/unissoft/webservice/NoticePassService.java

@@ -30,7 +30,7 @@ public interface NoticePassService {
30 30
     //接收出入库下发的通知单
31 31
     public String uploadNoticeDatas(@WebParam(name = "org_id") String org_id,@WebParam(name = "data") String data);
32 32
 
33
-    //接收出入库下发的通知单
33
+    //接收出入库损益时修改状态
34 34
     public String uploadNoticeUnwind(@WebParam(name = "orgId") String orgId,@WebParam(name = "houseId") String houseId);
35 35
 
36 36
 }