Commit 14605fd5 authored by 3533457856@qq.com's avatar 3533457856@qq.com

发货单

新增/编辑/详情接口 更新发货单状态接口
parent f346fa0d
...@@ -13,16 +13,4 @@ import java.util.List; ...@@ -13,16 +13,4 @@ import java.util.List;
*/ */
public interface IDocumentBomService { public interface IDocumentBomService {
/**
* 根据货单id查询BOM清单
*
*
* @param preparationMoneyId preparationMoneyId
* @return {@link java.util.List<com.yeejoin.amos.boot.module.hygf.api.dto.DocumentBomDto>}
* @author Provence
* @throws
* @date 2023/8/17 20:35
*/
List<DocumentBomDto> listByPreparationMoneyId(Long preparationMoneyId);
} }
...@@ -127,7 +127,11 @@ public class DocumentBomController extends BaseController { ...@@ -127,7 +127,11 @@ public class DocumentBomController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET",value = "根据货单id查询BOM清单", notes = "根据货单id查询BOM清单") @ApiOperation(httpMethod = "GET",value = "根据货单id查询BOM清单", notes = "根据货单id查询BOM清单")
@GetMapping(value = "/listByPreparationMoneyId") @GetMapping(value = "/listByPreparationMoneyId")
public ResponseModel<List<DocumentBomDto>> listByPreparationMoneyId(@RequestParam Long preparationMoneyId) { public ResponseModel<Page<DocumentBomDto>> listByPreparationMoneyId(@RequestParam(value = "current") int current,@RequestParam
return ResponseHelper.buildResponse(documentBomServiceImpl.listByPreparationMoneyId(preparationMoneyId)); (value = "size") int size,@RequestParam Long preparationMoneyId) {
Page<DocumentBomDto> page = new Page<DocumentBomDto>();
page.setCurrent(current);
page.setSize(size);
return ResponseHelper.buildResponse(documentBomServiceImpl.listByPreparationMoneyId(page, preparationMoneyId));
} }
} }
...@@ -53,9 +53,8 @@ public class DocumentBomServiceImpl extends BaseService<DocumentBomDto,DocumentB ...@@ -53,9 +53,8 @@ public class DocumentBomServiceImpl extends BaseService<DocumentBomDto,DocumentB
return this.queryForList("" , false); return this.queryForList("" , false);
} }
@Override public Page<DocumentBomDto> listByPreparationMoneyId(Page<DocumentBomDto> page, Long preparationMoneyId) {
public List<DocumentBomDto> listByPreparationMoneyId(Long preparationMoneyId) { return this.queryForPage(page, null, false, preparationMoneyId);
return this.queryForList("", false, preparationMoneyId);
} }
public List<DocumentBom> assembleDocumentBom(List<Long> powerHouseholdIds) { public List<DocumentBom> assembleDocumentBom(List<Long> powerHouseholdIds) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment