|
|
@@ -10,6 +10,7 @@ import java.util.Map;
|
|
|
import java.util.UUID;
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
@@ -312,6 +313,7 @@ public class DemandServiceImpl extends BaseMybatisDao<DemandMapper> implements D
|
|
|
now.set(Calendar.MILLISECOND, 0);
|
|
|
for (DemandImportBo bo : data){
|
|
|
d = new Demand();
|
|
|
+ BeanUtils.copyProperties(bo, d);
|
|
|
d.setId(UUID.randomUUID().toString());
|
|
|
d.setReleaseStatus(DemandReleaseStatus.UNRELEASE.getCode());
|
|
|
d.setCreateTime(now.getTime());
|