作物出入关联作物库存

This commit is contained in:
小久哥
2022-05-25 18:04:25 +08:00
parent d18ce96c45
commit 7b742c1701
4 changed files with 43 additions and 5 deletions
@@ -36,6 +36,9 @@ public interface GlobalErrorCodeConstants {
ErrorCode UNKNOWN = new ErrorCode(999, "未知错误");
//农作物出入管理
ErrorCode CROP_RECORD_CANT_NEGATIVE = new ErrorCode(10001, "出库失败,农作物库存小于出库数量");
static boolean isMatch(Integer code) {
return code != null
&& code >= SUCCESS.getCode() && code <= UNKNOWN.getCode();