|
|
@@ -44,6 +44,9 @@ public class SupplySystemService extends ServiceImpl<SupplySystemMapper, SupplyS
|
|
|
|
|
|
@Transactional
|
|
|
public SupplySystem create(SupplySystem system) {
|
|
|
+ if (system.getAdminId() == null) {
|
|
|
+ throw new IllegalArgumentException("adminId不能为空");
|
|
|
+ }
|
|
|
system.setStatus("active");
|
|
|
system.setCreatedAt(new Date());
|
|
|
system.setUpdatedAt(new Date());
|