中扬CRM客户关系管理系统
#
LSH
2023-10-16 8bdf67ac86644d1ba285646ca26b413c58dc7330
src/main/java/com/zy/crm/manager/controller/BusinessTripOtherController.java
@@ -53,7 +53,7 @@
        EntityWrapper<BusinessTripOther> wrapper = new EntityWrapper<>();
        excludeTrash(param);
        convert(param, wrapper);
//        wrapper.or().eq("member_id",getUserId());
        wrapper.or().eq("member_id",getUserId());
        if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));}
        return R.ok(businessTripOtherService.selectPage(new Page<>(curr, limit), wrapper));
    }
@@ -125,6 +125,7 @@
            manager = getUser();
        }
        businessTripOther.setSettleMsg(JSON.toJSONString(SettleDto.initBusiness(manager,getUser())));
        businessTripOther.setMemberId(manager.getId());
        businessTripOtherService.insert(businessTripOther);
        return R.ok();
@@ -231,6 +232,7 @@
                    businessTripOther.setStatus(1);
                    businessTripOther.setUpdateId(getUserId());
                    businessTripOther.setUpdateTime(now);
                    businessTripOther.setMemberId(businessTripOther.getUserId());
                    if (!businessTripOtherService.updateById(businessTripOther)) {
                        throw new CoolException("审核失败,请联系管理员");
                    }