| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.modules.andon.dto.AndonButtonDTO; |
| | | import org.jeecg.modules.andon.entity.AndonButtonConfig; |
| | | import org.jeecg.modules.andon.entity.AndonOrder; |
| | | import org.jeecg.modules.andon.service.IAndonButtonConfigService; |
| | | import org.jeecg.modules.andon.service.impl.AndonOrderServiceImpl; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | |
| | | public class AndonButtonConfigController extends JeecgController<AndonButtonConfig, IAndonButtonConfigService> { |
| | | @Autowired |
| | | private IAndonButtonConfigService andonButtonConfigService; |
| | | @Autowired |
| | | private AndonOrderServiceImpl andonOrderServiceImpl; |
| | | |
| | | /** |
| | | * 分页列表查询 |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * APP安灯按钮列表查询 |
| | | * |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * APP安灯发起列表查询 |
| | | * |
| | | * @param factoryId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "安灯发起-分页列表查询", notes = "安灯发起-分页列表查询") |
| | | @GetMapping(value = "/queryUserAndonCallList") |
| | | public Result<List<AndonButtonDTO>> queryUserAndonCallList(@RequestParam("factoryId") String factoryId) { |
| | | List<AndonButtonDTO> list = andonButtonConfigService.queryUserAndonCallList(factoryId); |
| | | return Result.OK(list); |
| | | } |
| | | |
| | | /** |
| | | * APP安灯响应列表查询 |
| | | * |
| | | * @param factoryId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "安灯响应-分页列表查询", notes = "安灯响应-分页列表查询") |
| | | @GetMapping(value = "/queryUserAndonRespondList") |
| | | public Result<List<AndonButtonDTO>> queryUserAndonRespondList(@RequestParam("factoryId") String factoryId) { |
| | | List<AndonButtonDTO> list = andonButtonConfigService.queryUserAndonRespondList(factoryId); |
| | | return Result.OK(list); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * APP安灯已处理列表查询 |
| | | * |
| | | * @param factoryId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "安灯响应-分页列表查询", notes = "安灯响应-分页列表查询") |
| | | @GetMapping(value = "/queryUserAndonHandelList") |
| | | public Result<List<AndonButtonDTO>> queryUserAndonHandelList(@RequestParam("factoryId") String factoryId) { |
| | | List<AndonButtonDTO> list = andonButtonConfigService.queryUserAndonHandelList(factoryId); |
| | | return Result.OK(list); |
| | | } |
| | | /** |
| | | * 添加 |
| | | * |