|
@@ -6,6 +6,7 @@ import com.ym.mec.biz.dal.dao.EmployeeDao;
|
|
import com.ym.mec.biz.dal.dao.SysConfigDao;
|
|
import com.ym.mec.biz.dal.dao.SysConfigDao;
|
|
import com.ym.mec.biz.dal.entity.Employee;
|
|
import com.ym.mec.biz.dal.entity.Employee;
|
|
import com.ym.mec.biz.dal.entity.StudentPaymentOrder;
|
|
import com.ym.mec.biz.dal.entity.StudentPaymentOrder;
|
|
|
|
+import com.ym.mec.biz.dal.page.SporadicOrderQueryInfo;
|
|
import com.ym.mec.biz.dal.page.StudentPaymentOrderQueryInfo;
|
|
import com.ym.mec.biz.dal.page.StudentPaymentOrderQueryInfo;
|
|
import com.ym.mec.biz.service.StudentPaymentOrderDetailService;
|
|
import com.ym.mec.biz.service.StudentPaymentOrderDetailService;
|
|
import com.ym.mec.biz.service.StudentPaymentOrderService;
|
|
import com.ym.mec.biz.service.StudentPaymentOrderService;
|
|
@@ -81,6 +82,30 @@ public class StudentPaymentOrderController extends BaseController {
|
|
return succeed(studentPaymentOrderPageInfo);
|
|
return succeed(studentPaymentOrderPageInfo);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "获取零星收费订单列表")
|
|
|
|
+ @GetMapping("/sporadicQueryPage")
|
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('order/sporadicQueryPage')")
|
|
|
|
+ public Object sporadicQueryPage(SporadicOrderQueryInfo queryInfo) {
|
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
|
+ if (sysUser == null) {
|
|
|
|
+ return failed("用户信息获取失败");
|
|
|
|
+ }
|
|
|
|
+ if (!sysUser.getIsSuperAdmin()) {
|
|
|
|
+ Employee employee = employeeDao.get(sysUser.getId());
|
|
|
|
+ if (StringUtils.isEmpty(queryInfo.getOrganId())) {
|
|
|
|
+ queryInfo.setOrganId(employee.getOrganIdList());
|
|
|
|
+ } else if (StringUtils.isEmpty(employee.getOrganIdList())) {
|
|
|
|
+ return failed("用户所在分部异常");
|
|
|
|
+ } else {
|
|
|
|
+ List<String> list = Arrays.asList(employee.getOrganIdList().split(","));
|
|
|
|
+ if (!list.containsAll(Arrays.asList(queryInfo.getOrganId().split(",")))) {
|
|
|
|
+ return failed("非法请求");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return succeed(studentPaymentOrderService.sporadicQueryPage(queryInfo));
|
|
|
|
+ }
|
|
|
|
+
|
|
@ApiOperation(value = "获取订单列表1")
|
|
@ApiOperation(value = "获取订单列表1")
|
|
@GetMapping("/queryPage1")
|
|
@GetMapping("/queryPage1")
|
|
@PreAuthorize("@pcs.hasPermissions('order/queryPage1')")
|
|
@PreAuthorize("@pcs.hasPermissions('order/queryPage1')")
|