| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.admin.api.entity.FranchiseeVO; |
| | | import com.ruoyi.admin.config.WeChatConfig; |
| | | import com.ruoyi.admin.entity.*; |
| | | import com.ruoyi.admin.service.*; |
| | |
| | | import lombok.Getter; |
| | | import org.apache.commons.codec.CharEncoding; |
| | | import org.apache.poi.util.IOUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | MasterWorker byId = masterWorkerService.getById(id); |
| | | return R.ok(byId.getProfilePicture()); |
| | | } |
| | | @GetMapping(value = "/getFranchiseeInfo") |
| | | public R<FranchiseeVO> getFranchiseeInfo(@RequestParam("franchiseeId") Integer franchiseeId) { |
| | | Franchisee franchisee = franchiseeService.getById(franchiseeId); |
| | | FranchiseeVO franchiseeVO = new FranchiseeVO(); |
| | | BeanUtils.copyProperties(franchisee, franchiseeVO); |
| | | return R.ok(franchiseeVO); |
| | | } |
| | | |
| | | /** |
| | | * 新增加盟商信息 |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 设置加盟商是否显示司机信息 |
| | | * |
| | | */ |
| | | @ApiOperation(value = "加盟商设置是否显示【202509】",notes = "id:加盟商id,isDisplay:是否显示 1=是 0=否", tags = {"后台-加盟商管理"}) |
| | | @PutMapping(value = "/setIsDisplay") |
| | | public R<String> setIsDisplay(@RequestParam(value = "id") Integer id, |
| | | @RequestParam(value = "isDisplay") Integer isDisplay) { |
| | | Franchisee franchisee = franchiseeService.getById(id); |
| | | franchisee.setIsDisplay(isDisplay); |
| | | franchiseeService.updateById(franchisee); |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |