|
|
@@ -70,6 +70,8 @@ public class BgServiceImpl implements BgService {
|
|
|
private VideoInfoUncensoredMapper videoInfoUncensoredMapper;
|
|
|
@Resource
|
|
|
private VideoInfoInfantryMapper videoInfoInfantryMapper;
|
|
|
+ @Resource
|
|
|
+ private CrawlerLoveFootMapper crawlerLoveFootMapper;
|
|
|
|
|
|
@Value("${spring.profiles.active}")
|
|
|
private String env;
|
|
|
@@ -206,6 +208,52 @@ public class BgServiceImpl implements BgService {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * findVideoInfoLoveFoot
|
|
|
+ *
|
|
|
+ * @author lvzhiqiang
|
|
|
+ * 2022/12/34 18:08
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public String findVideoInfoLoveFoot(String identificationCode, Integer type, String order, String crudT) throws IllegalAccessException {
|
|
|
+ if ("2".equals(crudT)) {
|
|
|
+ //更新
|
|
|
+ if (StringUtils.isEmpty(identificationCode) || null == type) {
|
|
|
+ return "identificationCode和type不能为空";
|
|
|
+ }
|
|
|
+ crawlerLoveFootMapper.updateTypeByCode(identificationCode, type);
|
|
|
+ return "success";
|
|
|
+ }
|
|
|
+ if ("3".equals(crudT)) {
|
|
|
+ //删除
|
|
|
+ if (StringUtils.isEmpty(identificationCode)) {
|
|
|
+ return "dentificationCode不能为空";
|
|
|
+ }
|
|
|
+ crawlerLoveFootMapper.delByCode(identificationCode);
|
|
|
+ return "success";
|
|
|
+ }
|
|
|
+
|
|
|
+ List<CrawlerLoveFoot> crawlerLoveFootList = crawlerLoveFootMapper.findByCodeAndType(identificationCode, type, order);
|
|
|
+
|
|
|
+ StringBuffer sb = new StringBuffer("total:".concat(String.valueOf(crawlerLoveFootList.size())).concat("<br/>"));
|
|
|
+ for (CrawlerLoveFoot crawlerLoveFoot : crawlerLoveFootList) {
|
|
|
+ sb.append("<table border=\"1\" cellspacing=\"0\"><tr><th>key</th><th>value</th></tr>");
|
|
|
+
|
|
|
+ Field[] fields = crawlerLoveFoot.getClass().getDeclaredFields();
|
|
|
+ for (Field field : fields) {
|
|
|
+ field.setAccessible(true);
|
|
|
+ sb.append("<tr>");
|
|
|
+ sb.append("<td>").append(field.getName()).append("</td>");
|
|
|
+ sb.append("<td>").append(field.get(crawlerLoveFoot)).append("</td>");
|
|
|
+ sb.append("</tr>");
|
|
|
+ }
|
|
|
+ sb.append("</table>");
|
|
|
+ }
|
|
|
+
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
* findVideoInfo
|
|
|
*
|
|
|
* @author lvzhiqiang
|