|
@@ -7,7 +7,6 @@ import com.gree.mall.manager.bean.common.AmityUrlVO;
|
|
|
import com.gree.mall.manager.bean.common.ImgCarouselManageBean;
|
|
import com.gree.mall.manager.bean.common.ImgCarouselManageBean;
|
|
|
import com.gree.mall.manager.commonmapper.CommonMapper;
|
|
import com.gree.mall.manager.commonmapper.CommonMapper;
|
|
|
import com.gree.mall.manager.enums.IsYesNoEnum;
|
|
import com.gree.mall.manager.enums.IsYesNoEnum;
|
|
|
-import com.gree.mall.manager.enums.StatusEnum;
|
|
|
|
|
import com.gree.mall.manager.exception.RemoteServiceException;
|
|
import com.gree.mall.manager.exception.RemoteServiceException;
|
|
|
import com.gree.mall.manager.plus.entity.AmityUrl;
|
|
import com.gree.mall.manager.plus.entity.AmityUrl;
|
|
|
import com.gree.mall.manager.plus.entity.CompanyRecordManage;
|
|
import com.gree.mall.manager.plus.entity.CompanyRecordManage;
|
|
@@ -137,6 +136,9 @@ public class CompanyRecordLogic {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void addAmity(AmityUrl amityUrl) {
|
|
public void addAmity(AmityUrl amityUrl) {
|
|
|
|
|
+ if (StringUtils.isEmpty(amityUrl.getAmityPositionType())) {
|
|
|
|
|
+ throw new RemoteServiceException("请选择位置类型");
|
|
|
|
|
+ }
|
|
|
if (StringUtils.isEmpty(amityUrl.getAmityUrlName())) {
|
|
if (StringUtils.isEmpty(amityUrl.getAmityUrlName())) {
|
|
|
throw new RemoteServiceException("友链名称");
|
|
throw new RemoteServiceException("友链名称");
|
|
|
}
|
|
}
|
|
@@ -147,6 +149,9 @@ public class CompanyRecordLogic {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void updateAmity(AmityUrl amityUrl) {
|
|
public void updateAmity(AmityUrl amityUrl) {
|
|
|
|
|
+ if (StringUtils.isEmpty(amityUrl.getAmityPositionType())) {
|
|
|
|
|
+ throw new RemoteServiceException("请选择位置类型");
|
|
|
|
|
+ }
|
|
|
if (StringUtils.isEmpty(amityUrl.getAmityUrlName())) {
|
|
if (StringUtils.isEmpty(amityUrl.getAmityUrlName())) {
|
|
|
throw new RemoteServiceException("友链名称");
|
|
throw new RemoteServiceException("友链名称");
|
|
|
}
|
|
}
|
|
@@ -165,8 +170,10 @@ public class CompanyRecordLogic {
|
|
|
return commonMapper.amityList(new Page(zfireParamBean.getPageNum(),zfireParamBean.getPageSize()),zfireParamBean);
|
|
return commonMapper.amityList(new Page(zfireParamBean.getPageNum(),zfireParamBean.getPageSize()),zfireParamBean);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public List<AmityUrl> list2(){
|
|
|
|
|
- return amityUrlService.list();
|
|
|
|
|
|
|
+ public List<AmityUrl> list2(String type){
|
|
|
|
|
+ return amityUrlService.lambdaQuery()
|
|
|
|
|
+ .eq(AmityUrl::getAmityPositionType, type)
|
|
|
|
|
+ .list();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|