| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import liquibase.pro.packaged.I; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.apache.shiro.SecurityUtils; |
| | |
| | | import org.jeecg.modules.base.service.BaseCommonService; |
| | | import org.jeecg.modules.base.service.IUserFactoryService; |
| | | import org.jeecg.modules.base.service.IUserGroupService; |
| | | import org.jeecg.modules.mdc.model.ProductionIdModel; |
| | | import org.jeecg.modules.mdc.service.IMdcUserProductionService; |
| | | import org.jeecg.modules.system.entity.*; |
| | | import org.jeecg.modules.system.model.DepartIdModel; |
| | | import org.jeecg.modules.base.model.FactoryIdModel; |
| | |
| | | |
| | | @Resource |
| | | private IUserFactoryService userFactoryService; |
| | | |
| | | @Resource |
| | | private IMdcUserProductionService userProductionService; |
| | | |
| | | @Resource |
| | | private IUserGroupService userGroupService; |
| | |
| | | @AutoLog(value = "用户表-查询指定用户和产线关联的数据") |
| | | @ApiOperation(value = "用户表-查询指定用户和产线关联的数据", notes = "用户表-查询指定用户和产线关联的数据") |
| | | @GetMapping(value = "/userProductionList") |
| | | public Result<List<FactoryIdModel>> getUserProductionsList(@RequestParam(name = "userId", required = true) String userId) { |
| | | Result<List<FactoryIdModel>> result = new Result<>(); |
| | | public Result<List<ProductionIdModel>> getUserProductionsList(@RequestParam(name = "userId", required = true) String userId) { |
| | | Result<List<ProductionIdModel>> result = new Result<>(); |
| | | try { |
| | | List<FactoryIdModel> proIdModelList = this.userFactoryService.queryFactoryIdsOfUser(userId); |
| | | List<ProductionIdModel> proIdModelList = this.userProductionService.queryProductionIdsOfUser(userId); |
| | | if (proIdModelList != null && !proIdModelList.isEmpty()) { |
| | | result.setSuccess(true); |
| | | result.setMessage("查找成功"); |