Compare commits

..

No commits in common. "fd2d1d62ef14b14047257d370d16b03fb67e8750" and "c951baedd57de3c5878228eca0344b0d4114bca3" have entirely different histories.

3 changed files with 8 additions and 23 deletions

View File

@ -166,10 +166,8 @@ public class MallProductController extends BaseController {
R<ModelProduct> modelProductR = modelService.selectModelById(id);
ModelProduct data = modelProductR.getData();
if (Objects.nonNull(data)) {
Long userIdMax = SecurityUtils.getUserIdMax();
if (userIdMax != 0){
LambdaQueryWrapper<ModelPurchaseRecord> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(ModelPurchaseRecord::getUserId, userIdMax)
wrapper.eq(ModelPurchaseRecord::getUserId, SecurityUtils.getUserId())
.eq(ModelPurchaseRecord::getProductId, id)
.eq(ModelPurchaseRecord::getProductType, 0);
ModelPurchaseRecord modelPurchaseRecord = modelPurchaseRecordMapper.selectOne(wrapper);
@ -177,8 +175,6 @@ public class MallProductController extends BaseController {
if (Objects.isNull(modelPurchaseRecord)) {
data.setIsBuy(0);
}
}
data.setIsBuy(0);
modelProductR.setData(data);
}
return modelProductR;

View File

@ -124,11 +124,6 @@ public class PersonHomeVo {
@ApiModelProperty(value = "付费金额 当提问类型为付费时必填")
private Double amount;
/**
* 0 1
*/
private Integer status;
/**
*
*/

View File

@ -92,12 +92,6 @@ public class QuestionVo {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime;
/**
* 0 1
*/
@ApiModelProperty(value = "状态 0未解决 1已解决")
private Integer status;
}