|
|
@@ -114,7 +114,24 @@ public class BgServiceImpl implements BgService {
|
|
|
* 2022/5/3 17:37
|
|
|
*/
|
|
|
@Override
|
|
|
- public String findIcodePool(String identificationCode, Integer status, String order) throws IllegalAccessException {
|
|
|
+ public String findIcodePool(String identificationCode, Integer status, String order, String crudT) throws IllegalAccessException {
|
|
|
+ if ("2".equals(crudT)) {
|
|
|
+ //更新
|
|
|
+ if (StringUtils.isEmpty(identificationCode) || null == status) {
|
|
|
+ return "identificationCode和status不能为空";
|
|
|
+ }
|
|
|
+ icodePoolMapper.updateStatusByCode(identificationCode, status);
|
|
|
+ return "success";
|
|
|
+ }
|
|
|
+ if ("3".equals(crudT)) {
|
|
|
+ //删除
|
|
|
+ if (StringUtils.isEmpty(identificationCode)) {
|
|
|
+ return "dentificationCode不能为空";
|
|
|
+ }
|
|
|
+ icodePoolMapper.delByCode(identificationCode);
|
|
|
+ return "success";
|
|
|
+ }
|
|
|
+
|
|
|
List<IcodePool> icodePoolList = icodePoolMapper.findByCodeAndStatus(identificationCode, status, order);
|
|
|
|
|
|
StringBuffer sb = new StringBuffer("total:".concat(String.valueOf(icodePoolList.size())).concat("<br/>"));
|
|
|
@@ -878,7 +895,7 @@ public class BgServiceImpl implements BgService {
|
|
|
}
|
|
|
|
|
|
// 名称
|
|
|
- String h3 = container.select("h3").first().text();
|
|
|
+ String h3 = container.select("h3").first().text().replace("/", "");
|
|
|
String[] nameArr = h3.split("\\s+");
|
|
|
if (nameArr.length > 1) {
|
|
|
videoInfoPool.setName(h3.substring(nameArr[0].length()).trim());
|