lidongdong
2023-09-05 a032d79225c5e7638154831d24ac393db5c15022
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/VolunteerMerchantApi.java
@@ -3,9 +3,11 @@
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.community.VolunteerMerchantEvaluateVO;
import com.panzhihua.common.model.vos.community.VolunteerMerchantVO;
import com.panzhihua.common.model.vos.community.VolunteerMerchantWithdrawVO;
import com.panzhihua.common.utlis.StringUtils;
import com.panzhihua.service_community.service.VolunteerMerchantEvaluateService;
import com.panzhihua.service_community.service.VolunteerMerchantService;
import com.panzhihua.service_community.service.VolunteerMerchantWithdrawService;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.*;
@@ -161,4 +163,76 @@
    }
    /***************************************************************************************************************
     *
     *                               路北社区商家提现
     *
     ****************************************************************************************************************/
    @Resource
    private VolunteerMerchantWithdrawService vmwService;
    /**
     * 商家提现列表啊
     * @param disposeType
     * @return
     */
    @GetMapping("/withdraw/getList")
    public R WithdrawGetList(@RequestParam("pageNum") int pageNum,
                             @RequestParam("pageSize") int pageSize,
                             @RequestParam(value = "disposeType", required = false) String disposeType,
                             @RequestParam(value = "merchantName", required = false) String merchantName)
    {
        return vmwService.getList(pageNum,pageSize,disposeType,merchantName);
    }
    /**
     * 新增商家提现
     * @param item
     * @return
     */
    @PostMapping("/withdraw/insert")
    public R WithdrawInsert(@RequestBody VolunteerMerchantWithdrawVO item)
    {
        return vmwService.insert(item);
    }
    /**
     * 编辑商家提现
     * @param item
     * @return
     */
    @PostMapping("/withdraw/update")
    public R WithdrawUpdate(@RequestBody VolunteerMerchantWithdrawVO item)
    {
        return vmwService.update(item);
    }
    /**
     * 删除商家提现
     * @param id
     * @return
     */
    @GetMapping("/withdraw/delete")
    public R WithdrawDelete(@RequestParam("id") String id)
    {
        return vmwService.delete(id);
    }
    /**
     * 处理商家提现
     * @param id
     * @return
     */
    @GetMapping("/withdraw/dispose")
    public R WithdrawDispose(@RequestParam("id") String id)
    {
        return vmwService.dispose(id);
    }
}