Commit d0e1ceaf authored by wei's avatar wei 🎱

更新供应商编码

parent 19e0489c
......@@ -61,7 +61,8 @@ public class ExtSupplierManageController<V extends ExtSupplierManageVO, S extend
@ApiOperation("供应商走已过期状态更新供方编号")
@PostMapping({"generateSupplierNumber"})
public ApiResult generateSupplierNumber(@RequestBody ExtSupplierManageVO extSupplierManageVO) {
return ApiResult.ok(extSupplierManageService.generateSupplierNumber(extSupplierManageVO), "更新供方编号成功");
extSupplierManageService.generateSupplierNumber(extSupplierManageVO);
return ApiResult.ok(ApiResult.SUCCESS, "更新供方编号成功");
}
}
......
......@@ -22,5 +22,5 @@ public interface ExtSupplierManageService<V extends ExtSupplierManageVO> extends
List<SupplierEarlyWarningVO> exportEarlyWarningData(SearchQueryCondition searchQueryCondition, int warningDay);
String generateSupplierNumber(ExtSupplierManageVO extSupplierManageVO);
void generateSupplierNumber(ExtSupplierManageVO extSupplierManageVO);
}
......@@ -105,7 +105,7 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
}
@Override
public String generateSupplierNumber(ExtSupplierManageVO extSupplierManageVO) {
public void generateSupplierNumber(ExtSupplierManageVO extSupplierManageVO) {
String supplierNumber = extSupplierManageVO.getSupplierNumber();
log.info("generateEncode.beforeSupplierNumber={}", supplierNumber);
String[] split = supplierNumber.split("-");
......@@ -114,7 +114,6 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
}
this.saveRecursion((V) extSupplierManageVO);
log.info("generateEncode.supplierNumber={}", supplierNumber);
return supplierNumber;
}
}
......
......@@ -20,5 +20,5 @@ public interface ExtSupplierManageServiceFeign<V extends ExtSupplierManageVO> ex
@ApiOperation("供应商走已过期状态更新供方编号")
@PostMapping(value = "/generateSupplierNumber")
String generateSupplierNumber(@RequestBody ExtSupplierManageVO extSupplierManageVO);
void generateSupplierNumber(@RequestBody ExtSupplierManageVO extSupplierManageVO);
}
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