| | |
| | | package com.mes.md.controller; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import com.mes.md.entity.Account; |
| | | import com.mes.md.entity.Tasking; |
| | | import com.mes.md.mapper.TaskingMapper; |
| | | import com.mes.utils.Result; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RequestMapping("/tasking") |
| | | public class TaskingController { |
| | | |
| | | @Autowired |
| | | TaskingMapper taskingMapper; |
| | | |
| | | @ApiOperation("账户绑定角色") |
| | | @PostMapping("/bindAccountRole") |
| | | @ResponseBody |
| | | public Result Tasking (@RequestBody Tasking tasking) { |
| | | List<Tasking> list=taskingMapper.selectList(new MPJLambdaWrapper<Tasking>().selectAll() |
| | | .eq(Tasking::getState,"线上") |
| | | .eq(Tasking::getCurrentCraft,"gongui")); |
| | | return Result.build(200,"成功",list); |
| | | } |
| | | } |
| | | |