|
|
@@ -69,6 +69,7 @@ import com.zhongzheng.modules.system.domain.SysTenant;
|
|
|
import com.zhongzheng.modules.system.service.ISysConfigService;
|
|
|
import com.zhongzheng.modules.system.service.ISysGoodsCopyRecordService;
|
|
|
import com.zhongzheng.modules.system.service.ISysTenantService;
|
|
|
+import com.zhongzheng.modules.top.mall.domain.TopStore;
|
|
|
import com.zhongzheng.modules.user.bo.SubjectStudyRecordQueryBo;
|
|
|
import com.zhongzheng.modules.user.bo.UserPhoneBo;
|
|
|
import com.zhongzheng.modules.user.domain.School;
|
|
|
@@ -472,6 +473,19 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
return baseMapper.getExamNum(goodsId);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Boolean batchRemove(GoodsEditBo bo) {
|
|
|
+ for(Long id : bo.getGoodsIds()){
|
|
|
+ LambdaUpdateWrapper<Goods> objectLambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
|
|
+ objectLambdaUpdateWrapper.eq(Goods::getGoodsId, id);
|
|
|
+ objectLambdaUpdateWrapper.eq(Goods::getGoodsType, 7);
|
|
|
+ objectLambdaUpdateWrapper.set(Goods::getStatus, -1);
|
|
|
+ objectLambdaUpdateWrapper.set(Goods::getUpdateTime, DateUtils.getNowTime());
|
|
|
+ this.update(null, objectLambdaUpdateWrapper);
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<GoodsVo> queryList(GoodsQueryBo bo) {
|
|
|
LambdaQueryWrapper<Goods> lqw = Wrappers.lambdaQuery();
|