|
|
@ -27,7 +27,9 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import javax.xml.crypto.Data; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
@ -119,6 +121,13 @@ public class IcCommunitySelfOrganizationServiceImpl extends BaseServiceImpl<IcCo |
|
|
|
} |
|
|
|
orgEntity.setPid(agencyInfo.getPid()); |
|
|
|
orgEntity.setPids(agencyInfo.getPids()); |
|
|
|
// 保持时间统一
|
|
|
|
if (null == formDTO.getOrganizationCreatedTime()){ |
|
|
|
Date date = new Date(); |
|
|
|
orgEntity.setOrganizationCreatedTime(date); |
|
|
|
orgEntity.setCreatedTime(date); |
|
|
|
orgEntity.setUpdatedTime(date); |
|
|
|
} |
|
|
|
baseDao.insert(orgEntity); |
|
|
|
if(CollectionUtils.isNotEmpty(formDTO.getOrganizationPersonnel())){ |
|
|
|
List<IcCommunitySelfOrganizationPersonnelEntity> persons = ConvertUtils.sourceToTarget(formDTO.getOrganizationPersonnel(), IcCommunitySelfOrganizationPersonnelEntity.class); |
|
|
|