|
|
|
@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse; |
|
|
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
|
import org.jeecg.common.util.oConvertUtils; |
|
|
|
|
import org.jeecg.modules.demo.customermeasure.entity.CustomerMeasure; |
|
|
|
|
import org.jeecg.modules.demo.customerpayment.entity.CustomerPayment; |
|
|
|
|
import org.jeecg.modules.demo.customerpayment.service.ICustomerPaymentService; |
|
|
|
|
|
|
|
|
@ -73,6 +74,23 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment, |
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AutoLog(value = "顾客支付信息管理-分页列表查询") |
|
|
|
|
@ApiOperation(value="顾客支付信息管理-分页列表查询", notes="顾客支付信息管理-分页列表查询") |
|
|
|
|
@GetMapping(value = "/list1") |
|
|
|
|
public Result<?> queryPageList1(CustomerPayment customerPayment, |
|
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
|
|
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
QueryWrapper<CustomerPayment> queryWrapper = QueryGenerator.initQueryWrapper(customerPayment, req.getParameterMap()); |
|
|
|
|
queryWrapper.eq("user_id",customerPayment.getUserId()); |
|
|
|
|
Page<CustomerPayment> page = new Page<CustomerPayment>(pageNo, pageSize); |
|
|
|
|
IPage<CustomerPayment> pageList = customerPaymentService.page(page, queryWrapper); |
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 添加 |
|
|
|
|
* |
|
|
|
@ -192,4 +210,26 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment, |
|
|
|
|
return super.importExcel(request, response, CustomerPayment.class); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AutoLog(value = "排序") |
|
|
|
|
@ApiOperation(value="排序", notes="排序") |
|
|
|
|
@GetMapping(value = "/up") |
|
|
|
|
public Result<?> shang(@RequestParam(name="id",required=true) String id) { |
|
|
|
|
customerPaymentService.up(id); |
|
|
|
|
return Result.ok("升序成功"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AutoLog(value = "排序") |
|
|
|
|
@ApiOperation(value="排序", notes="排序") |
|
|
|
|
@GetMapping(value = "/down") |
|
|
|
|
public Result<?> xia(@RequestParam(name="id",required=true) String id) { |
|
|
|
|
int a=customerPaymentService.findSort(id); |
|
|
|
|
if(a==0){ |
|
|
|
|
return Result.error("当前已经是最低级别!!!");}else { |
|
|
|
|
customerPaymentService.down(id); |
|
|
|
|
return Result.ok("降序成功"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|