|
@@ -107,18 +107,25 @@ public class RmsConsigneeServiceImpl implements IRmsConsigneeService {
|
|
|
String consigneeRegisteredAddress=(String) mapVal.get("consigneeRegisteredAddress");
|
|
|
String consigneeReceiveAddress=(String) mapVal.get("consigneeReceiveAddress");
|
|
|
String consigneeRegistrationTime=(String)mapVal.get("consigneeRegistrationTime");
|
|
|
- Date time = simpleDateFormat.parse(consigneeRegistrationTime);
|
|
|
+ RmsConsignee rmsConsignee=new RmsConsignee();
|
|
|
+ if(consigneeRegistrationTime!=null){
|
|
|
+ Date time = simpleDateFormat.parse(consigneeRegistrationTime);
|
|
|
+ rmsConsignee.setConsigneeRegistrationTime(time);
|
|
|
+ }else{
|
|
|
+ rmsConsignee.setConsigneeRegistrationTime(new Date());
|
|
|
+ }
|
|
|
+
|
|
|
String consigneeContactName=(String) mapVal.get("consigneeContactName");
|
|
|
String consigneeContactTel=(String)mapVal.get("consigneeContactTel");
|
|
|
//收货客户父节点
|
|
|
BigDecimal consigneeFarId=DataChange.dataToBigDecimal(mapVal.get("consigneeFarId"));
|
|
|
- RmsConsignee rmsConsignee=new RmsConsignee();
|
|
|
+
|
|
|
rmsConsignee.setConsigneeId(consigneeId);
|
|
|
rmsConsignee.setConsigneeCompanyName(companyName);
|
|
|
rmsConsignee.setConsigneeAbbreviation(consigneeAbbreviation);
|
|
|
rmsConsignee.setConsigneeRegisteredAddress(consigneeRegisteredAddress);
|
|
|
rmsConsignee.setConsigneeReceiveAddress(consigneeReceiveAddress);
|
|
|
- rmsConsignee.setConsigneeRegistrationTime(time);
|
|
|
+
|
|
|
rmsConsignee.setConsigneeContactName(consigneeContactName);
|
|
|
rmsConsignee.setConsigneeContactTel(consigneeContactTel);
|
|
|
rmsConsignee.setConsigneeFarId(consigneeFarId);
|