Commit b790063d by 郑勇

feat: [none] 世纪华阳

parent bc2950dd
package com.pcloud.book.base.enums;
import java.util.List;
import cn.hutool.core.collection.CollUtil;
/**
* 魔方书枚举类
*/
public enum MofangBookTypeEnum {
/**
* 1-北教小雨
*/
BJXY(1),
/**
* 2-世纪华阳
*/
SJHY(2),
/**
* 3-邹慕白
*/
ZMB(3),
/**
* 4-万有文化
*/
WYWH(4)
;
public final Integer value;
private MofangBookTypeEnum(Integer value) {
this.value = value;
}
public static final List<Integer> bjxyType= CollUtil.toList(BJXY.value,SJHY.value);
public static final List<Integer> zmbType=CollUtil.toList(ZMB.value,WYWH.value);
}
......@@ -25,6 +25,7 @@ import com.pcloud.book.applet.entity.AppletUserLabelRelation;
import com.pcloud.book.applet.enums.LabelTypeEnum;
import com.pcloud.book.base.enums.BookStatusEnum;
import com.pcloud.book.base.enums.BookTypeEnum;
import com.pcloud.book.base.enums.MofangBookTypeEnum;
import com.pcloud.book.base.exception.BookBizException;
import com.pcloud.book.book.biz.BookAdviserBiz;
import com.pcloud.book.book.biz.BookAdviserErpBiz;
......@@ -4806,10 +4807,10 @@ public class BookBizImpl implements BookBiz {
}
private void fillSceneInfo(List<MoFangBookDto> list,Integer type) {
if(type==1) {
if(MofangBookTypeEnum.bjxyType.contains(type)) {
dealXy(list);
}
if(zouMuBaiTypeList.contains(type)){
if(MofangBookTypeEnum.zmbType.contains(type)){
dealZmb(list);
}
}
......
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