|
|
@@ -1,6 +1,5 @@
|
|
1
|
1
|
package com.chinaitop.depot.business.service.impl;
|
|
2
|
2
|
|
|
3
|
|
-import java.text.SimpleDateFormat;
|
|
4
|
3
|
import java.util.Date;
|
|
5
|
4
|
import java.util.HashMap;
|
|
6
|
5
|
import java.util.List;
|
|
|
@@ -21,6 +20,7 @@ import com.chinaitop.depot.business.model.BusinessNoticeReceiveExample.Criteria;
|
|
21
|
20
|
import com.chinaitop.depot.business.service.FeignAgileService;
|
|
22
|
21
|
import com.chinaitop.depot.business.service.FeignBasicService;
|
|
23
|
22
|
import com.chinaitop.depot.business.service.ReceiveNoticeService;
|
|
|
23
|
+import com.chinaitop.depot.utils.ParameterUtil;
|
|
24
|
24
|
import com.github.pagehelper.PageHelper;
|
|
25
|
25
|
|
|
26
|
26
|
@Service
|
|
|
@@ -194,19 +194,7 @@ public class ReceiveNoticeServiceImpl implements ReceiveNoticeService {
|
|
194
|
194
|
Integer scnf = Integer.parseInt(map.get("scnf")+"");
|
|
195
|
195
|
Date date = null;
|
|
196
|
196
|
if(inputTime!=null){
|
|
197
|
|
- //String year=String.format("%tY", inputTime);
|
|
198
|
|
-
|
|
199
|
|
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
200
|
|
- date = sdf.parse(inputTime);
|
|
201
|
|
- // 获取String字符串中的年
|
|
202
|
|
- //SimpleDateFormat y = new SimpleDateFormat("yyyy");
|
|
203
|
|
- //System.out.println(y.format(date));
|
|
204
|
|
- //String enumName = y.format(date);
|
|
205
|
|
-
|
|
206
|
|
- //Integer parentId = 1004;
|
|
207
|
|
- //Map<String, Object> basicMap = feignBasicService.getIdByNameAndParentId(parentId, enumName, null);//1004是生产年份的父ID
|
|
208
|
|
- //Integer productiveYear = (Integer) basicMap.get("enumId");
|
|
209
|
|
-
|
|
|
197
|
+ date = ParameterUtil.string2datetime(inputTime);
|
|
210
|
198
|
businessNoticeReceive.setInputTime(date);//入库时间
|
|
211
|
199
|
}
|
|
212
|
200
|
businessNoticeReceive.setProductiveYear(scnf);//生产年份
|