店铺申请debug
This commit is contained in:
parent
51a3056fa3
commit
7f49032338
|
@ -61,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<where>
|
||||
<include refid="searchCondition"/>
|
||||
</where>
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<insert id="insertStoreApply" parameterType="StoreApply" useGeneratedKeys="true" keyProperty="id">
|
||||
|
|
|
@ -3,6 +3,7 @@ package com.ruoyi.ss.storeApply.service.impl;
|
|||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.ServiceUtil;
|
||||
|
@ -22,6 +23,7 @@ import com.ruoyi.ss.storeApply.domain.StoreApplyVO;
|
|||
import com.ruoyi.ss.storeApply.domain.StoreApplyQuery;
|
||||
import com.ruoyi.ss.storeApply.service.StoreApplyService;
|
||||
import org.springframework.transaction.support.TransactionTemplate;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
/**
|
||||
* 店铺审核Service业务层处理
|
||||
|
|
|
@ -13,9 +13,11 @@ import com.ruoyi.ss.storeApply.service.StoreApplyValidator;
|
|||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wjh
|
||||
|
@ -42,9 +44,14 @@ public class MchStoreApplyController extends BaseController {
|
|||
return error("这不是您的店铺");
|
||||
}
|
||||
PageHelper.orderBy(" create_time desc ");
|
||||
PageHelper.startPage(1, 1);
|
||||
StoreApplyQuery query = new StoreApplyQuery();
|
||||
query.setStoreId(storeId);
|
||||
return success(storeApplyService.selectOne(query));
|
||||
List<StoreApplyVO> list = storeApplyService.selectStoreApplyList(query);
|
||||
if (CollectionUtils.isEmpty(list)) {
|
||||
return success();
|
||||
}
|
||||
return success(list.get(0));
|
||||
}
|
||||
|
||||
@ApiOperation("取消申请")
|
||||
|
|
Loading…
Reference in New Issue
Block a user