Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop
This commit is contained in:
commit
c245265fd1
@ -55,9 +55,6 @@ import java.util.List;
|
|||||||
@Transactional
|
@Transactional
|
||||||
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {
|
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {
|
||||||
|
|
||||||
//商品
|
|
||||||
@Autowired
|
|
||||||
private GoodsMapper goodsMapper;
|
|
||||||
//商品属性
|
//商品属性
|
||||||
@Autowired
|
@Autowired
|
||||||
private GoodsParamsService goodsParamsService;
|
private GoodsParamsService goodsParamsService;
|
||||||
@ -85,7 +82,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void underStoreGoods(String storeId) {
|
public void underStoreGoods(String storeId) {
|
||||||
this.goodsMapper.underStoreGoods(storeId);
|
this.baseMapper.underStoreGoods(storeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package cn.lili.modules.page.entity.dos;
|
package cn.lili.modules.page.entity.dos;
|
||||||
|
|
||||||
import cn.lili.base.BaseEntity;
|
import cn.lili.base.BaseEntity;
|
||||||
import cn.lili.common.enums.SwitchEnum;
|
|
||||||
import cn.lili.modules.page.entity.enums.ArticleEnum;
|
import cn.lili.modules.page.entity.enums.ArticleEnum;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
@ -45,11 +44,8 @@ public class Article extends BaseEntity {
|
|||||||
@NotEmpty(message = "文章内容不能为空")
|
@NotEmpty(message = "文章内容不能为空")
|
||||||
private String content;
|
private String content;
|
||||||
|
|
||||||
/**
|
@ApiModelProperty(value = "状态")
|
||||||
* @see SwitchEnum
|
private Boolean openStatus;
|
||||||
*/
|
|
||||||
@ApiModelProperty(value = "状态", allowableValues = "OPEN,CLOSE")
|
|
||||||
private String openStatus;
|
|
||||||
/**
|
/**
|
||||||
* @see ArticleEnum
|
* @see ArticleEnum
|
||||||
*/
|
*/
|
||||||
|
@ -25,5 +25,5 @@ public class ArticleVO {
|
|||||||
private Integer sort;
|
private Integer sort;
|
||||||
|
|
||||||
@ApiModelProperty(value = "状态, allowableValues = OPEN,CLOSE")
|
@ApiModelProperty(value = "状态, allowableValues = OPEN,CLOSE")
|
||||||
private String openStatus;
|
private Boolean openStatus;
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,6 @@ package cn.lili.modules.page.serviceimpl;
|
|||||||
|
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import cn.lili.common.enums.ResultCode;
|
import cn.lili.common.enums.ResultCode;
|
||||||
import cn.lili.common.enums.SwitchEnum;
|
|
||||||
import cn.lili.common.exception.ServiceException;
|
import cn.lili.common.exception.ServiceException;
|
||||||
import cn.lili.common.utils.BeanUtil;
|
import cn.lili.common.utils.BeanUtil;
|
||||||
import cn.lili.common.utils.PageUtil;
|
import cn.lili.common.utils.PageUtil;
|
||||||
@ -83,7 +82,7 @@ public class ArticleServiceImpl extends ServiceImpl<ArticleMapper, Article> impl
|
|||||||
@Override
|
@Override
|
||||||
public Boolean updateArticleStatus(String id, boolean status) {
|
public Boolean updateArticleStatus(String id, boolean status) {
|
||||||
Article article=this.getById(id);
|
Article article=this.getById(id);
|
||||||
article.setOpenStatus(status? SwitchEnum.OPEN.name():SwitchEnum.CLOSE.name());
|
article.setOpenStatus(status);
|
||||||
return this.updateById(article);
|
return this.updateById(article);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -66,4 +66,20 @@ public class AfterSaleManagerController {
|
|||||||
return ResultUtil.data(afterSaleService.refund(afterSaleSn, remark));
|
return ResultUtil.data(afterSaleService.refund(afterSaleSn, remark));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "审核售后申请")
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "afterSaleSn", value = "售后sn", required = true, paramType = "path"),
|
||||||
|
@ApiImplicitParam(name = "serviceStatus", value = "PASS:审核通过,REFUSE:审核未通过", required = true, paramType = "query"),
|
||||||
|
@ApiImplicitParam(name = "remark", value = "备注", paramType = "query"),
|
||||||
|
@ApiImplicitParam(name = "actualRefundPrice", value = "实际退款金额", paramType = "query")
|
||||||
|
})
|
||||||
|
@PutMapping(value = "/review/{afterSaleSn}")
|
||||||
|
public ResultMessage<AfterSale> review(@NotNull(message = "请选择售后单") @PathVariable String afterSaleSn,
|
||||||
|
@NotNull(message = "请审核") String serviceStatus,
|
||||||
|
String remark,
|
||||||
|
Double actualRefundPrice) {
|
||||||
|
|
||||||
|
return ResultUtil.data(afterSaleService.review(afterSaleSn, serviceStatus, remark,actualRefundPrice));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user