Browse Source

项目分类初始化调整

dev_shibei_match
yinzuomei 4 years ago
parent
commit
306d979b44
  1. 5
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/stats/impl/CustomerProjectCategoryDictServiceImpl.java

5
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/stats/impl/CustomerProjectCategoryDictServiceImpl.java

@ -29,6 +29,7 @@ import com.epmet.entity.stats.CustomerProjectCategoryDictEntity;
import com.epmet.service.stats.CustomerProjectCategoryDictService; import com.epmet.service.stats.CustomerProjectCategoryDictService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@ -71,13 +72,15 @@ public class CustomerProjectCategoryDictServiceImpl extends BaseServiceImpl<Cust
entity.setCategoryCode(updatedEntity.getCategoryCode()); entity.setCategoryCode(updatedEntity.getCategoryCode());
entity.setCategoryName(updatedEntity.getCategoryName()); entity.setCategoryName(updatedEntity.getCategoryName());
entity.setParentCategoryCode(updatedEntity.getParentCategoryCode()); entity.setParentCategoryCode(updatedEntity.getParentCategoryCode());
if (StringUtils.isNotBlank(updatedEntity.getCategoryType())) {
entity.setLevel(Integer.valueOf(updatedEntity.getCategoryType())); entity.setLevel(Integer.valueOf(updatedEntity.getCategoryType()));
}
entity.setSort(updatedEntity.getSort()); entity.setSort(updatedEntity.getSort());
entity.setIsDisable(updatedEntity.getIsDisable()); entity.setIsDisable(updatedEntity.getIsDisable());
entity.setOriginCreatedTime(updatedEntity.getCreatedTime()); entity.setOriginCreatedTime(updatedEntity.getCreatedTime());
entity.setOriginUpdatedTime(updatedEntity.getUpdatedTime()); entity.setOriginUpdatedTime(updatedEntity.getUpdatedTime());
}
baseDao.updateById(entity); baseDao.updateById(entity);
}
}); });
} }

Loading…
Cancel
Save