9/29 工位维护增加上货工位
							parent
							
								
									4d73efd7ac
								
							
						
					
					
						commit
						28bda3c70c
					
				| @ -0,0 +1,53 @@ | |||||||
|  | package com.glxp.api.controller.basic; | ||||||
|  | 
 | ||||||
|  | import com.github.pagehelper.PageInfo; | ||||||
|  | import com.glxp.api.common.res.BaseResponse; | ||||||
|  | import com.glxp.api.common.util.ResultVOUtils; | ||||||
|  | import com.glxp.api.controller.BaseController; | ||||||
|  | import com.glxp.api.entity.basic.BasicCollectPointEntity; | ||||||
|  | import com.glxp.api.req.basic.BasicCollectRequest; | ||||||
|  | import com.glxp.api.req.basic.CargowWorkplaceRequest; | ||||||
|  | import com.glxp.api.req.basic.WorkBindBusTypeRequest; | ||||||
|  | import com.glxp.api.res.PageSimpleResponse; | ||||||
|  | import com.glxp.api.res.basic.SysWorkplacePutRelResponse; | ||||||
|  | import com.glxp.api.service.thrsys.SysWorkplacePutRelService; | ||||||
|  | import lombok.extern.slf4j.Slf4j; | ||||||
|  | import org.springframework.web.bind.annotation.GetMapping; | ||||||
|  | import org.springframework.web.bind.annotation.PostMapping; | ||||||
|  | import org.springframework.web.bind.annotation.RequestBody; | ||||||
|  | import org.springframework.web.bind.annotation.RestController; | ||||||
|  | 
 | ||||||
|  | import javax.annotation.Resource; | ||||||
|  | import java.util.List; | ||||||
|  | 
 | ||||||
|  | /** | ||||||
|  |  * @author : zhangsan | ||||||
|  |  * @date : 2024/9/27 19:30 | ||||||
|  |  * @modyified By : | ||||||
|  |  */ | ||||||
|  | @Slf4j | ||||||
|  | @RestController | ||||||
|  | public class SysWorkplacePutRelController extends BaseController { | ||||||
|  | 
 | ||||||
|  |     @Resource | ||||||
|  |     SysWorkplacePutRelService sysWorkplacePutRelService; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |     @PostMapping("/udiwms/sysWorkplace/bindCollect") | ||||||
|  |     public BaseResponse bindCollect(@RequestBody CargowWorkplaceRequest request) { | ||||||
|  |         BaseResponse success =   sysWorkplacePutRelService.bindCollect(request,getUserId()); | ||||||
|  |         return success; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |     @GetMapping("/udiwms/basic/collectPoints/getBindCollectList") | ||||||
|  |     public BaseResponse page(CargowWorkplaceRequest request) { | ||||||
|  |         List<SysWorkplacePutRelResponse> page = sysWorkplacePutRelService.filterList(request); | ||||||
|  |         PageInfo<SysWorkplacePutRelResponse> pageInfo = new PageInfo<>(page); | ||||||
|  |         PageSimpleResponse<SysWorkplacePutRelResponse> pageSimpleResponse = new PageSimpleResponse<>(); | ||||||
|  |         pageSimpleResponse.setTotal(pageInfo.getTotal()); | ||||||
|  |         pageSimpleResponse.setList(page); | ||||||
|  |         return ResultVOUtils.success(pageSimpleResponse); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  | } | ||||||
| @ -0,0 +1,16 @@ | |||||||
|  | package com.glxp.api.dao.basic; | ||||||
|  | 
 | ||||||
|  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||||||
|  | import com.glxp.api.entity.basic.SysWorkplacePutRel; | ||||||
|  | import com.glxp.api.req.basic.CargowWorkplaceRequest; | ||||||
|  | import com.glxp.api.res.basic.SysWorkplacePutRelResponse; | ||||||
|  | import org.apache.ibatis.annotations.Mapper; | ||||||
|  | 
 | ||||||
|  | import java.util.List; | ||||||
|  | 
 | ||||||
|  | @Mapper | ||||||
|  | public interface SysWorkplacePutRelMapper extends BaseMapper<SysWorkplacePutRel> { | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |     List<SysWorkplacePutRelResponse> filterList(CargowWorkplaceRequest request); | ||||||
|  | } | ||||||
| @ -1,11 +0,0 @@ | |||||||
| package com.glxp.api.dao.collect; |  | ||||||
| 
 |  | ||||||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; |  | ||||||
| import com.glxp.api.entity.basic.SysWorkplacePutRel; |  | ||||||
| import org.apache.ibatis.annotations.Mapper; |  | ||||||
| 
 |  | ||||||
| @Mapper |  | ||||||
| public interface SysWorkplacePutRelMapper extends BaseMapper<SysWorkplacePutRel> { |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| } |  | ||||||
| @ -0,0 +1,34 @@ | |||||||
|  | package com.glxp.api.req.basic; | ||||||
|  | 
 | ||||||
|  | import com.glxp.api.util.page.ListPageRequest; | ||||||
|  | import lombok.Data; | ||||||
|  | 
 | ||||||
|  | import java.util.List; | ||||||
|  | 
 | ||||||
|  | /** | ||||||
|  |  * @author : zhuzhu | ||||||
|  |  * @date : 2024/8/14 18:55 | ||||||
|  |  * @modyified By : | ||||||
|  |  */ | ||||||
|  | 
 | ||||||
|  | @Data | ||||||
|  | public class CargowWorkplaceRequest extends ListPageRequest { | ||||||
|  |     private List<String> documentTypeCodes; | ||||||
|  |     private Long workPlaceCode; | ||||||
|  |     private String code; | ||||||
|  |     private String busKey; | ||||||
|  |     private String workKey; | ||||||
|  |     private String documentTypeCode; | ||||||
|  |     private Integer isPopular; | ||||||
|  | 
 | ||||||
|  |     private List<Long> workPlaceCodes; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |     private List<Long> collectWorkCodes; | ||||||
|  |     private List<String>  collectBusTypes; | ||||||
|  |     private List<Long>  relBusIdFks; | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | } | ||||||
| @ -0,0 +1,18 @@ | |||||||
|  | package com.glxp.api.res.basic; | ||||||
|  | 
 | ||||||
|  | import lombok.Data; | ||||||
|  | 
 | ||||||
|  | /** | ||||||
|  |  * @author : zhangsan | ||||||
|  |  * @date : 2024/9/27 20:40 | ||||||
|  |  * @modyified By : | ||||||
|  |  */ | ||||||
|  | @Data | ||||||
|  | public class SysWorkplacePutRelResponse { | ||||||
|  | 
 | ||||||
|  |     private String collectName; | ||||||
|  |     private String busTypeName; | ||||||
|  |     private Long collectWorkPlaceCode; | ||||||
|  |     private String collectBusTypeCode; | ||||||
|  | 
 | ||||||
|  | } | ||||||
| @ -0,0 +1,15 @@ | |||||||
|  | <?xml version="1.0" encoding="UTF-8"?> | ||||||
|  | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||||
|  | <mapper namespace="com.glxp.api.dao.basic.SysWorkplacePutRelMapper"> | ||||||
|  |     <select id="filterList" resultType="com.glxp.api.res.basic.SysWorkplacePutRelResponse"> | ||||||
|  |         select sw.workplaceName as collectName,swd.busName as busTypeName,sw.workplaceId as collectWorkPlaceCode,swd.documentTypeCode as collectBusTypeCode | ||||||
|  |             from sys_workplace_put_rel swpr | ||||||
|  |                  left join sys_workplace sw on swpr.collectWorkCode = sw.workplaceId | ||||||
|  |                  left join sys_workplace_document swd on swpr.collectBusType = swd.documentTypeCode | ||||||
|  |         <where> | ||||||
|  |             <if test="workPlaceCode != '' and workPlaceCode != null"> | ||||||
|  |                 AND swpr.workPlaceCode =#{workPlaceCode} | ||||||
|  |             </if> | ||||||
|  |         </where> | ||||||
|  |     </select> | ||||||
|  | </mapper> | ||||||
| @ -1,4 +0,0 @@ | |||||||
| <?xml version="1.0" encoding="UTF-8"?> |  | ||||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |  | ||||||
| <mapper namespace="com.glxp.api.dao.basic.SysWorkplacePutRelMapper"> |  | ||||||
| </mapper> |  | ||||||
					Loading…
					
					
				
		Reference in New Issue