| | |
| | | } |
| | | |
| | | /** |
| | | * 查看crm供应商管理详情 |
| | | */ |
| | | @ApiOperation(value = "查看crm供应商管理资质证照") |
| | | @GetMapping(value = "/getDetailQualificationById") |
| | | public R<TCrmSupplier> getDetailQualificationById(@RequestParam String id) { |
| | | TCrmSupplier crmSupplier = crmSupplierService.getById(id); |
| | | return R.ok(crmSupplier); |
| | | } |
| | | |
| | | /** |
| | | * 删除crm供应商管理 |
| | | */ |
| | | @Log(title = "crm供应商管理信息-删除crm供应商管理", businessType = BusinessType.DELETE) |
| | |
| | | @ApiOperation(value = "供应商管理解冻冻结",notes = "状态 1=使用中 2=冻结") |
| | | @PutMapping(value = "/thawOrFreeze") |
| | | public R<Boolean> thawOrFreeze(@RequestParam(value = "id")String id, |
| | | @RequestParam(value = "status")Integer status) { |
| | | @RequestParam(value = "status")Integer status, |
| | | @RequestParam(value = "freezingReason",required = false)String freezingReason) { |
| | | TCrmSupplier crmSupplier = crmSupplierService.getById(id); |
| | | crmSupplier.setStatus(status); |
| | | crmSupplier.setFreezingReason(freezingReason); |
| | | crmSupplierService.updateById(crmSupplier); |
| | | // 查询用户 |
| | | SysUser sysUser = sysUserService.selectUserById(crmSupplier.getUserId()); |