|  |  |  | @ -10,13 +10,13 @@ import com.glxp.api.common.enums.ResultEnum; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.common.res.BaseResponse; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.common.util.ResultVOUtils; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.controller.BaseController; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.dto.DictDto; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.auth.AuthAdmin; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.auth.SysWorkplace; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.auth.WarehouseUserEntity; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.entity.system.SystemPDFTemplateEntity; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.exception.JsonException; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.req.auth.FilterInvLinkDataRequest; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.req.auth.SysWorkplaceRequest; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.req.dev.DeviceInfoDetailQuery; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.req.system.PrintLabelRequest; | 
			
		
	
	
		
			
				
					|  |  |  | @ -30,7 +30,6 @@ import com.glxp.api.service.system.SystemPDFTemplateService; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.util.JasperUtils; | 
			
		
	
		
			
				
					|  |  |  |  | import com.glxp.api.vo.dev.DeviceInfoVo; | 
			
		
	
		
			
				
					|  |  |  |  | import lombok.extern.slf4j.Slf4j; | 
			
		
	
		
			
				
					|  |  |  |  | import org.hibernate.validator.internal.util.logging.formatter.ObjectArrayFormatter; | 
			
		
	
		
			
				
					|  |  |  |  | import org.springframework.beans.factory.annotation.Value; | 
			
		
	
		
			
				
					|  |  |  |  | import org.springframework.web.bind.annotation.GetMapping; | 
			
		
	
		
			
				
					|  |  |  |  | import org.springframework.web.bind.annotation.PostMapping; | 
			
		
	
	
		
			
				
					|  |  |  | @ -41,6 +40,7 @@ import javax.annotation.Resource; | 
			
		
	
		
			
				
					|  |  |  |  | import javax.servlet.http.HttpServletRequest; | 
			
		
	
		
			
				
					|  |  |  |  | import javax.servlet.http.HttpServletResponse; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.*; | 
			
		
	
		
			
				
					|  |  |  |  | import java.util.stream.Collectors; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | /** | 
			
		
	
		
			
				
					|  |  |  |  |  * @author : zhuzhu | 
			
		
	
	
		
			
				
					|  |  |  | @ -71,6 +71,25 @@ public class SysWorkplaceController extends BaseController { | 
			
		
	
		
			
				
					|  |  |  |  |         return ResultVOUtils.success(pageSimpleResponse); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     /** | 
			
		
	
		
			
				
					|  |  |  |  |      * 搜索框远程,获取工位列表 | 
			
		
	
		
			
				
					|  |  |  |  |      * | 
			
		
	
		
			
				
					|  |  |  |  |      * @param | 
			
		
	
		
			
				
					|  |  |  |  |      * @return | 
			
		
	
		
			
				
					|  |  |  |  |      */ | 
			
		
	
		
			
				
					|  |  |  |  |     @AuthRuleAnnotation("") | 
			
		
	
		
			
				
					|  |  |  |  |     @GetMapping("/udiwms/sysWorkplace/page/filterOptimize") | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse filterOptimize(SysWorkplaceRequest request) { | 
			
		
	
		
			
				
					|  |  |  |  |         Page<SysWorkplaceResponse> page = sysWorkplaceService.filterList(request); | 
			
		
	
		
			
				
					|  |  |  |  |         List<DictDto> reList = page.getRecords().stream().map(s -> { | 
			
		
	
		
			
				
					|  |  |  |  |             DictDto dictDto = new DictDto(s.getWorkplaceId() + "", s.getWorkplaceName()); | 
			
		
	
		
			
				
					|  |  |  |  |             return dictDto; | 
			
		
	
		
			
				
					|  |  |  |  |         }).collect(Collectors.toList()); | 
			
		
	
		
			
				
					|  |  |  |  |         return ResultVOUtils.success(reList); | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @PostMapping("/udiwms/sysWorkplace/addWorkplace") | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse addWorkplace(@RequestBody SysWorkplace sysWorkplace) { | 
			
		
	
		
			
				
					|  |  |  |  |         sysWorkplace.setId(IdUtil.getSnowflakeNextId()); | 
			
		
	
	
		
			
				
					|  |  |  | @ -190,16 +209,15 @@ public class SysWorkplaceController extends BaseController { | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @Resource | 
			
		
	
		
			
				
					|  |  |  |  |     private WarehouseUserService warehouseUserService; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @Resource | 
			
		
	
		
			
				
					|  |  |  |  |     private AuthAdminService authAdminService; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @PostMapping("/udiwms/sysWorkplace/getUsers") | 
			
		
	
		
			
				
					|  |  |  |  |     public BaseResponse getUser(@RequestBody SysWorkplaceRequest request) { | 
			
		
	
		
			
				
					|  |  |  |  |         if (request.getInvCode() == null){ | 
			
		
	
		
			
				
					|  |  |  |  |         if (request.getInvCode() == null) { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         List<WarehouseUserEntity> warehouseUserEntities = warehouseUserService.getListByCode(request.getInvCode()); | 
			
		
	
	
		
			
				
					|  |  |  | @ -212,6 +230,4 @@ public class SysWorkplaceController extends BaseController { | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
	
		
			
				
					|  |  |  | 
 |