|
|
|
@ -9,8 +9,11 @@ import java.io.UnsupportedEncodingException; |
|
|
|
|
import java.net.URLDecoder; |
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
|
|
import org.apache.shiro.SecurityUtils; |
|
|
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
|
import org.jeecg.common.system.query.QueryGenerator; |
|
|
|
|
import org.jeecg.common.system.vo.LoginUser; |
|
|
|
|
import org.jeecg.common.util.oConvertUtils; |
|
|
|
|
import org.jeecg.modules.demo.customerpayment.entity.CustomerPayment; |
|
|
|
|
import org.jeecg.modules.demo.customerpayment.service.ICustomerPaymentService; |
|
|
|
@ -49,7 +52,7 @@ import org.jeecg.common.aspect.annotation.AutoLog; |
|
|
|
|
public class CustomerPaymentController extends JeecgController<CustomerPayment, ICustomerPaymentService> { |
|
|
|
|
@Autowired |
|
|
|
|
private ICustomerPaymentService customerPaymentService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 分页列表查询 |
|
|
|
|
* |
|
|
|
@ -71,7 +74,33 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment, |
|
|
|
|
IPage<CustomerPayment> pageList = customerPaymentService.page(page, queryWrapper); |
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 分页列表查询 |
|
|
|
|
* |
|
|
|
|
* @param customerPayment |
|
|
|
|
* @param pageNo |
|
|
|
|
* @param pageSize |
|
|
|
|
* @param req |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@AutoLog(value = "顾客支付信息管理-分页列表查询") |
|
|
|
|
@ApiOperation(value="顾客支付信息管理-分页列表查询", notes="顾客支付信息管理-分页列表查询") |
|
|
|
|
@GetMapping(value = "/listcustom") |
|
|
|
|
public Result<?> listcustom(CustomerPayment customerPayment, |
|
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
|
|
|
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
|
|
|
|
HttpServletRequest req) { |
|
|
|
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
|
|
|
|
QueryWrapper<CustomerPayment> queryWrapper = QueryGenerator.initQueryWrapper(customerPayment, req.getParameterMap()); |
|
|
|
|
queryWrapper.eq("createBy",sysUser.getUsername()); |
|
|
|
|
Page<CustomerPayment> page = new Page<CustomerPayment>(pageNo, pageSize); |
|
|
|
|
IPage<CustomerPayment> pageList = customerPaymentService.page(page, queryWrapper); |
|
|
|
|
return Result.OK(pageList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 添加 |
|
|
|
|
* |
|
|
|
@ -85,7 +114,7 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment, |
|
|
|
|
customerPaymentService.save(customerPayment); |
|
|
|
|
return Result.OK("添加成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 编辑 |
|
|
|
|
* |
|
|
|
@ -99,7 +128,7 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment, |
|
|
|
|
customerPaymentService.updateById(customerPayment); |
|
|
|
|
return Result.OK("编辑成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 通过id删除 |
|
|
|
|
* |
|
|
|
@ -113,7 +142,7 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment, |
|
|
|
|
customerPaymentService.removeById(id); |
|
|
|
|
return Result.OK("删除成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 批量删除 |
|
|
|
|
* |
|
|
|
@ -127,7 +156,7 @@ public class CustomerPaymentController extends JeecgController<CustomerPayment, |
|
|
|
|
this.customerPaymentService.removeByIds(Arrays.asList(ids.split(","))); |
|
|
|
|
return Result.OK("批量删除成功!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 通过id查询 |
|
|
|
|
* |
|
|
|
|