✨ 新增预结算单号预览接口
This commit is contained in:
+7
@@ -94,6 +94,13 @@ public class PreSettlementController extends BladeController {
|
|||||||
return R.data(preSettlementService.contractOptions(keyword));
|
return R.data(preSettlementService.contractOptions(keyword));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/next-no")
|
||||||
|
@ApiOperationSupport(order = 4)
|
||||||
|
@Operation(summary = "获取最新预结算单号")
|
||||||
|
public R<String> nextNo() {
|
||||||
|
return R.data(preSettlementService.nextNo());
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/fee-options")
|
@GetMapping("/fee-options")
|
||||||
@ApiOperationSupport(order = 4)
|
@ApiOperationSupport(order = 4)
|
||||||
@Operation(summary = "费用类型及费用项")
|
@Operation(summary = "费用类型及费用项")
|
||||||
|
|||||||
+5
@@ -33,6 +33,11 @@ public interface IPreSettlementService extends BaseService<PreSettlement> {
|
|||||||
|
|
||||||
PreSettlementVO detail(Long id);
|
PreSettlementVO detail(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预览下一条预结算单号。仅供新增页面展示,真正落库的单号仍由保存时生成。
|
||||||
|
*/
|
||||||
|
String nextNo();
|
||||||
|
|
||||||
default List<Map<String, Object>> contractOptions(String keyword) {
|
default List<Map<String, Object>> contractOptions(String keyword) {
|
||||||
return contractOptions(keyword, null);
|
return contractOptions(keyword, null);
|
||||||
}
|
}
|
||||||
|
|||||||
+5
@@ -206,6 +206,11 @@ public class PreSettlementServiceImpl extends BaseServiceImpl<PreSettlementMappe
|
|||||||
return vo;
|
return vo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String nextNo() {
|
||||||
|
return nextPreSettlementNo();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Map<String, Object>> contractOptions(String keyword, Long projectId) {
|
public List<Map<String, Object>> contractOptions(String keyword, Long projectId) {
|
||||||
LambdaQueryWrapper<ContractManage> wrapper = Wrappers.<ContractManage>lambdaQuery()
|
LambdaQueryWrapper<ContractManage> wrapper = Wrappers.<ContractManage>lambdaQuery()
|
||||||
|
|||||||
Reference in New Issue
Block a user