|
|
@ -25,15 +25,12 @@ import com.epmet.constant.DataSourceConstant; |
|
|
|
import com.epmet.dao.evaluationindex.extract.FactOriginProjectCategoryDailyDao; |
|
|
|
import com.epmet.dto.ProjectCategoryDTO; |
|
|
|
import com.epmet.dto.extract.form.ExtractOriginFormDTO; |
|
|
|
import com.epmet.dto.extract.form.IssueMainDailyFormDTO; |
|
|
|
import com.epmet.entity.evaluationindex.extract.FactOriginProjectCategoryDailyEntity; |
|
|
|
import com.epmet.entity.issue.IssueProjectCategoryDictEntity; |
|
|
|
import com.epmet.service.Issue.IssueProjectCategoryDictService; |
|
|
|
import com.epmet.service.Issue.IssueService; |
|
|
|
import com.epmet.service.evaluationindex.extract.todata.FactOriginProjectCategoryDailyService; |
|
|
|
import com.epmet.service.project.ProjectService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
@ -85,12 +82,7 @@ public class FactOriginProjectCategoryDailyServiceImpl extends BaseServiceImpl<F |
|
|
|
insertEntity.setCategoryCode(categoryDictEntity.getCategoryCode()); |
|
|
|
insertEntity.setParentCategoryCode(categoryDictEntity.getParentCategoryCode()); |
|
|
|
insertEntity.setCustomerId(customerId); |
|
|
|
//如果pid为0,说明是1级分类
|
|
|
|
if (NumConstant.ZERO_STR.equals(categoryDictEntity.getPid())){ |
|
|
|
insertEntity.setLevel(1); |
|
|
|
}else { |
|
|
|
insertEntity.setLevel(2); |
|
|
|
} |
|
|
|
insertEntity.setLevel(Integer.valueOf(categoryDictEntity.getCategoryType())); |
|
|
|
insertEntity.setCreatedTime(data.getCreatedTime()); |
|
|
|
entities.add(insertEntity); |
|
|
|
}); |
|
|
|