| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.vincent.rsf.framework.common.R; |
| | | import com.vincent.rsf.framework.exception.CoolException; |
| | | import com.vincent.rsf.server.api.controller.erp.params.BaseMatParms; |
| | | import com.vincent.rsf.server.api.controller.erp.params.OrderParams; |
| | | import com.vincent.rsf.server.api.controller.erp.params.QueryOrderParam; |
| | | import com.vincent.rsf.server.api.controller.erp.params.*; |
| | | import com.vincent.rsf.server.api.service.ReceiveMsgService; |
| | | import com.vincent.rsf.server.common.domain.BaseParam; |
| | | import com.vincent.rsf.server.common.domain.PageParam; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/erp") |
| | | //@Api(tags = "三方接口文档") |
| | | public class ReceiveMsgController extends BaseController { |
| | | |
| | | @Autowired |
| | |
| | | /** |
| | | * @author Ryan |
| | | * @date 2025/8/15 |
| | | * @description: 库位明细同步 |
| | | * @description: 库位信息查询 |
| | | * @version 1.0 |
| | | */ |
| | | @PostMapping("/sync/locs/detls") |
| | | @ApiOperation(value = "库位信息明细同步", tags = "基础信息同步") |
| | | @ApiOperation(value = "库位信息查询", tags = "查询") |
| | | public R syncLocDetls(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<Loc, BaseParam> pageParam = new PageParam<>(baseParam, Loc.class); |
| | | QueryWrapper<Loc> wrapper = pageParam.buildWrapper(true); |
| | | return receiveMsgService.syncLocsDetl(pageParam, wrapper); |
| | | } |
| | | |
| | | /** |
| | | * @author Ryan |
| | | * @date 2025/8/18 |
| | | * @description: 库位信息同步 |
| | | * @version 1.0 |
| | | */ |
| | | @PostMapping("/sync/locs") |
| | | @ApiOperation(value = "库位信息同步", tags = "基础信息同步") |
| | | public R syncLocs(@RequestBody List<SyncLocsParams> locs) { |
| | | if (locs.isEmpty()) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | return receiveMsgService.syncLocs(locs); |
| | | } |
| | | |
| | | /** |
| | | * @author Ryan |
| | | * @date 2025/8/18 |
| | | * @description: 物料分组信息同步 |
| | | * @version 1.0 |
| | | */ |
| | | @PostMapping("/sync/matGroups") |
| | | @ApiOperation(value = "物料分组信息同步", tags = "基础信息同步") |
| | | public R syncMatGroup(@RequestBody List<SyncMatGroupsParams> matGroupsParams) { |
| | | if (matGroupsParams.isEmpty()) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | return receiveMsgService.syncMatGroups(matGroupsParams); |
| | | } |
| | | |
| | | |
| | | |
| | | } |