|
@ -9,6 +9,7 @@ import com.yihu.mysql.query.BaseJpaService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.transaction.Transactional;
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLDecoder;
|
|
|
import java.util.Date;
|
|
@ -48,6 +49,7 @@ public class KnowledgeCategoryService extends BaseJpaService<KnowledgeCategoryDO
|
|
|
return knowledgeCategoryDao.save(knowledgeCategoryDO);
|
|
|
}
|
|
|
|
|
|
@Transactional
|
|
|
public Boolean updateDel(String code) {
|
|
|
List<KnowledgeArticleDO> byCategory = articleDao.findByCategory(code);
|
|
|
if (null != byCategory && byCategory.size() > 0) {
|