Merge branch 'feat-cjy-customerContract' into dev

This commit is contained in:
cjy 2026-02-02 11:29:18 +08:00
commit c3a721d343

View File

@ -110,7 +110,8 @@ func validateCyclePeriods(periods []int32, cycleName string) (string, error) {
return msg, errors.New(msg) return msg, errors.New(msg)
} }
if len(periods) == 0 { if len(periods) == 0 {
return "", nil msg := cycleName + "至少有1期"
return msg, errors.New(msg)
} }
periodSet := make(map[int32]bool) periodSet := make(map[int32]bool)
for _, p := range periods { for _, p := range periods {