|
@@ -67,12 +67,12 @@ public class ProtThresholdServiceImpl extends ServiceImpl<ProtThresholdMapper, P
|
|
|
protThreshold.setProtType(1);
|
|
|
protThresholdMapper.insert(protThreshold);
|
|
|
ProtThreshold protThreshold2 = new ProtThreshold();
|
|
|
- protThreshold.setFarmId(Integer.parseInt(farmId));
|
|
|
- protThreshold.setProtType(2);
|
|
|
+ protThreshold2.setFarmId(Integer.parseInt(farmId));
|
|
|
+ protThreshold2.setProtType(2);
|
|
|
protThresholdMapper.insert(protThreshold2);
|
|
|
ProtThreshold protThreshold3 = new ProtThreshold();
|
|
|
- protThreshold.setFarmId(Integer.parseInt(farmId));
|
|
|
- protThreshold.setProtType(3);
|
|
|
+ protThreshold3.setFarmId(Integer.parseInt(farmId));
|
|
|
+ protThreshold3.setProtType(3);
|
|
|
protThresholdMapper.insert(protThreshold3);
|
|
|
|
|
|
|