| | |
| | | @RequestParam(value = "condition", required = false) String condition, |
| | | @RequestParam(value = "userName", required = false) String userName, |
| | | @RequestParam(value = "communityId", required = false) String communityId, |
| | | @RequestParam(value = "orderType", required = false) String orderType) |
| | | @RequestParam(value = "orderType", required = false) String orderType, |
| | | @RequestParam(value = "merchantId", required = false) String merchantId) |
| | | { |
| | | if(StringUtils.isEmpty(communityId)) |
| | | { |
| | | communityId=getCommunityId()+""; |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(merchantId)) |
| | | { |
| | | return R.fail("商家id不能为空"); |
| | | } |
| | | |
| | | return communityService.getList(pageNum,pageSize,goodsId,orderNumber,goodsName, |
| | | condition,userName,communityId,getUserId()+"",orderType); |
| | | condition,userName,communityId,getUserId()+"",orderType,merchantId); |
| | | } |
| | | |
| | | /** |
| | |
| | | return communityService.WithdrawInsert(item); |
| | | } |
| | | |
| | | /** |
| | | * 商家提现列表 |
| | | * @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, |
| | | @RequestParam(value = "merchantId", required = false) String merchantId, |
| | | @RequestParam(value = "communityId", required = false) String communityId) |
| | | { |
| | | if(StringUtils.isEmpty(communityId)) |
| | | { |
| | | communityId=getCommunityId()+""; |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(merchantId)) |
| | | { |
| | | return R.fail("商家id不能为空"); |
| | | } |
| | | |
| | | return communityService.WithdrawGetList(pageNum,pageSize,disposeType, merchantName,merchantId,communityId); |
| | | } |
| | | |
| | | } |
| | |
| | | @RequestParam(value = "userName", required = false) String userName, |
| | | @RequestParam(value = "communityId", required = false) String communityId, |
| | | @RequestParam(value = "userId", required = false) String userId, |
| | | @RequestParam(value = "orderType", required = false) String orderType); |
| | | @RequestParam(value = "orderType", required = false) String orderType, |
| | | @RequestParam(value = "merchantId", required = false) String merchantId); |
| | | |
| | | /** |
| | | * 查询详情 |
| | |
| | | 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); |
| | | @RequestParam(value = "merchantName", required = false) String merchantName, |
| | | @RequestParam(value = "merchantId", required = false) String merchantId, |
| | | @RequestParam(value = "communityId", required = false) String communityId); |
| | | |
| | | /** |
| | | * 新增商家提现 |
| | |
| | | @RequestParam(value = "goodsName", required = false) String goodsName, |
| | | @RequestParam(value = "condition", required = false) String condition, |
| | | @RequestParam(value = "userName", required = false) String userName, |
| | | @RequestParam(value = "communityId", required = false) String communityId) |
| | | @RequestParam(value = "communityId", required = false) String communityId, |
| | | @RequestParam(value = "merchantId", required = false) String merchantId) |
| | | { |
| | | if(StringUtils.isEmpty(communityId)) |
| | | { |
| | | communityId=getCommunityId()+""; |
| | | } |
| | | return merchantService.getList(pageNum,pageSize,goodsId,orderNumber,goodsName, |
| | | condition,userName,communityId,null,"1"); |
| | | condition,userName,communityId,null,"1",merchantId); |
| | | } |
| | | |
| | | /** |
| | |
| | | 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) |
| | | @RequestParam(value = "merchantName", required = false) String merchantName, |
| | | @RequestParam(value = "merchantId", required = false) String merchantId, |
| | | @RequestParam(value = "communityId", required = false) String communityId) |
| | | { |
| | | return vtService.WithdrawGetList(pageNum,pageSize,disposeType, merchantName); |
| | | if(StringUtils.isEmpty(communityId)) |
| | | { |
| | | communityId=getCommunityId()+""; |
| | | } |
| | | |
| | | return vtService.WithdrawGetList(pageNum,pageSize,disposeType, merchantName,merchantId,communityId); |
| | | } |
| | | |
| | | |
| | |
| | | @RequestParam(value = "userName", required = false) String userName, |
| | | @RequestParam(value = "communityId", required = false) String communityId, |
| | | @RequestParam(value = "userId", required = false) String userId, |
| | | @RequestParam(value = "orderType", required = false) String orderType) |
| | | @RequestParam(value = "orderType", required = false) String orderType, |
| | | @RequestParam(value = "merchantId", required = false) String merchantId) |
| | | { |
| | | return vceService.getList(pageNum,pageSize,goodsId,orderNumber,goodsName, |
| | | condition,userName,communityId,userId,orderType); |
| | | condition,userName,communityId,userId,orderType,merchantId); |
| | | } |
| | | |
| | | /** |
| | |
| | | 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) |
| | | @RequestParam(value = "merchantName", required = false) String merchantName, |
| | | @RequestParam(value = "merchantId", required = false) String merchantId, |
| | | @RequestParam(value = "communityId", required = false) String communityId) |
| | | { |
| | | return vmwService.getList(pageNum,pageSize,disposeType,merchantName); |
| | | return vmwService.getList(pageNum,pageSize,disposeType,merchantName,merchantId,communityId); |
| | | } |
| | | |
| | | /** |
| | |
| | | @Param("userName") String userName, |
| | | @Param("communityId") String communityId, |
| | | @Param("userId") String userId, |
| | | @Param("orderType") String orderType |
| | | @Param("orderType") String orderType, |
| | | @Param("merchantId") String merchantId |
| | | ); |
| | | |
| | | /** |
| | |
| | | */ |
| | | IPage<VolunteerMerchantWithdraw> getList(Page page, |
| | | @Param("disposeType") String disposeType, |
| | | @Param("merchantName") String merchantName); |
| | | @Param("merchantName") String merchantName, |
| | | @Param("merchantName") String merchantId, |
| | | @Param("merchantName") String communityId); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 新增商家提现 |
| | |
| | | String userName, |
| | | String communityId, |
| | | String userId, |
| | | String orderType |
| | | String orderType, |
| | | String merchantId |
| | | |
| | | ); |
| | | |
| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.VolunteerMerchantWithdrawVO; |
| | | import com.panzhihua.service_community.entity.VolunteerMerchantWithdraw; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | public interface VolunteerMerchantWithdrawService extends IService<VolunteerMerchantWithdraw> |
| | | { |
| | |
| | | * @param disposeType |
| | | * @return |
| | | */ |
| | | R getList(int pageNum, int pageSize, String disposeType,String merchantName); |
| | | R getList(int pageNum, int pageSize, String disposeType,String merchantName,String merchantId,String communityId); |
| | | |
| | | /** |
| | | * 新增商家提现 |
| | |
| | | @Override |
| | | public R getList(int pageNum, int pageSize, String goodsId, String orderNumber, |
| | | String goodsName, String condition, String userName,String communityId, |
| | | String userId,String orderType) { |
| | | String userId,String orderType,String merchantId) { |
| | | |
| | | Page page=new Page<VolunteerCreditsExchange>(pageNum,pageSize); |
| | | return R.ok(baseMapper.getList(page,goodsId,orderNumber,goodsName,condition, |
| | | userName,communityId,userId,orderType)); |
| | | userName,communityId,userId,orderType,merchantId)); |
| | | } |
| | | |
| | | @Override |
| | |
| | | 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.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | private VolunteerMerchantService vmService; |
| | | |
| | | @Override |
| | | public R getList(int pageNum, int pageSize, String disposeType,String merchantName) |
| | | public R getList(int pageNum, int pageSize, String disposeType,String merchantName,String merchantId,String communityId) |
| | | { |
| | | Page<VolunteerMerchantWithdraw> page=new Page(pageNum,pageSize); |
| | | return R.ok(baseMapper.getList(page,disposeType,merchantName)); |
| | | return R.ok(baseMapper.getList(page,disposeType,merchantName,merchantId,communityId)); |
| | | } |
| | | |
| | | @Override |
| | |
| | | <if test="userId!=null"> |
| | | and vce.user_id=#{userId} |
| | | </if> |
| | | <if test="merchantId!=null"> |
| | | and vce.merchant_id=#{merchantId} |
| | | </if> |
| | | <if test="orderType!=null"> |
| | | and vce.order_type=#{orderType} |
| | | </if> |
| | |
| | | and |
| | | ((select vm.name from volunteer_merchant as vm where volunteer_merchant_withdraw.merchant_id=vm.id) like concat('%',#{merchantName},'%')) |
| | | </if> |
| | | <if test="merchantId !=null and merchantId != '' "> |
| | | and merchant_id=#{merchantId} |
| | | </if> |
| | | <if test="communityId !=null and communityId != '' "> |
| | | and community_id=#{} |
| | | </if> |
| | | </where> |
| | | order by creation_time desc |
| | | </select> |