Commit f456d403 authored by shiyu's avatar shiyu

二期版本

parent 469bbe6a
...@@ -2,14 +2,11 @@ package com.wwdz.ch.admin.job; ...@@ -2,14 +2,11 @@ package com.wwdz.ch.admin.job;
import com.wwdz.ch.db.dao.CategoryDao; import com.wwdz.ch.db.dao.CategoryDao;
import com.wwdz.ch.db.domain.Category; import com.wwdz.ch.db.domain.Category;
import com.wwdz.ch.db.domain.CategoryTemp;
import com.wwdz.ch.db.mapper.CategoryMapper; import com.wwdz.ch.db.mapper.CategoryMapper;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
...@@ -21,9 +18,6 @@ public class SynCategoryInfo { ...@@ -21,9 +18,6 @@ public class SynCategoryInfo {
@Autowired @Autowired
CategoryDao categoryDao; CategoryDao categoryDao;
@Resource
CategoryMapper categoryMapper;
public void execute(int id) { public void execute(int id) {
Category category = categoryDao.findById(id); Category category = categoryDao.findById(id);
...@@ -39,17 +33,5 @@ public class SynCategoryInfo { ...@@ -39,17 +33,5 @@ public class SynCategoryInfo {
} }
/* public void repair(int id) {
List<CategoryTemp> categoryTempList = categoryDao.queryByPidForTemp(id);
logger.info("模板id:{}, 子类目数量:{}", id, categoryTempList.size());
categoryTempList.forEach(categoryTemp -> {
Category category = new Category();
category.setId(categoryTemp.getId());
category.setIcon(categoryTemp.getIcon());
categoryDao.updateById(category);
logger.info("类目id:{}, 更新内容:{}", category.getId(), category);
});
}*/
} }
package com.wwdz.ch.db.dao; package com.wwdz.ch.db.dao;
import com.wwdz.ch.db.domain.Category; import com.wwdz.ch.db.domain.Category;
import com.wwdz.ch.db.domain.CategoryTemp;
import com.wwdz.ch.db.dto.request.CategorySearchRequestDto; import com.wwdz.ch.db.dto.request.CategorySearchRequestDto;
import java.util.List; import java.util.List;
......
package com.wwdz.ch.db.impl; package com.wwdz.ch.db.impl;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.wwdz.ch.db.domain.CategoryTemp;
import com.wwdz.ch.db.domain.CategoryTempExample;
import com.wwdz.ch.db.dto.request.CategorySearchRequestDto; import com.wwdz.ch.db.dto.request.CategorySearchRequestDto;
import com.wwdz.ch.db.mapper.CategoryMapper; import com.wwdz.ch.db.mapper.CategoryMapper;
import com.wwdz.ch.db.domain.Category; import com.wwdz.ch.db.domain.Category;
import com.wwdz.ch.db.domain.CategoryExample; import com.wwdz.ch.db.domain.CategoryExample;
import com.wwdz.ch.db.dao.CategoryDao; import com.wwdz.ch.db.dao.CategoryDao;
import com.wwdz.ch.db.mapper.CategoryTempMapper;
import com.xxdxxs.db.component.JdbcHelper; import com.xxdxxs.db.component.JdbcHelper;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.Date; import java.util.Date;
...@@ -26,8 +22,6 @@ public class CategoryDaoImpl implements CategoryDao { ...@@ -26,8 +22,6 @@ public class CategoryDaoImpl implements CategoryDao {
@Resource @Resource
private CategoryMapper categoryMapper; private CategoryMapper categoryMapper;
@Resource
CategoryTempMapper categoryTempMapper;
/** /**
* 根据层级查询类目,默认返回第一页 10个商品 * 根据层级查询类目,默认返回第一页 10个商品
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment