liujie
2025-06-02 1e621d98f4361158df25f2b4af9b53899bfde32f
ruoyi-applet/src/main/java/com/ruoyi/web/controller/system/CompanyController.java
@@ -13,6 +13,7 @@
import com.ruoyi.system.query.CompanyListQuery;
import com.ruoyi.system.query.MyPushCompanyListQuery;
import com.ruoyi.system.service.*;
import com.ruoyi.system.vo.CompanyDetailVo;
import com.ruoyi.system.vo.IndexCompanyListVo;
import com.ruoyi.system.vo.MyPushCompanyListVo;
import io.swagger.annotations.Api;
@@ -46,6 +47,9 @@
    @Autowired
    private TbScheduleService scheduleService;
    @Autowired
    private TbMessageService messageService;
@@ -160,6 +164,12 @@
        }
        order.setStatus(3);
        order.updateById();
        company.setStatus(1);
        company.updateById();
        messageService.addMessage("您有订单被取消", order.getUserId(),order.getId());
        return R.ok();
    }
@@ -177,6 +187,8 @@
            return R.fail("非法操作");
        }
        scheduleService.addSchedule(dto,userId);
        messageService.addMessage("您有订单卖家已完成,等待确认", order.getUserId(),order.getId());
        return R.ok();
    }
@@ -205,10 +217,23 @@
        }
        order.setStatus(5);
        order.updateById();
        messageService.addMessage("您有订单卖家已完成,等待确认", order.getUserId(),orderId);
        return R.ok();
    }
    @ApiOperation(value = "公司详情",tags = {"发布模块"})
    @GetMapping("/companyDetail")
    public R<CompanyDetailVo> companyDetail(@RequestParam String companyId) {
        if(StringUtils.isEmpty(companyId)){
            return R.fail("参数错误");
        }
        LoginUser loginUser = tokenService.getLoginUser();
        Long userId = loginUser.getUserId();
        CompanyDetailVo companyDetailVo = tbCompanyService.companyDetail(companyId,userId);
        return R.ok(companyDetailVo);
    }
}