|
|
@@ -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();
|