|
@@ -116,7 +116,7 @@ public class UnitServiceImpl implements UnitService {
|
|
|
Example queryExample = new Example(UnitBearingsPO.class);
|
|
|
Example.Criteria criteria = queryExample.createCriteria();
|
|
|
criteria.andEqualTo("id", unitBearingsPO.getId());
|
|
|
- flg = unitBearingsMapper.updateByExample(unitBearingsPO, queryExample) > 0;
|
|
|
+ flg = unitBearingsMapper.updateByExampleSelective(unitBearingsPO, queryExample) > 0;
|
|
|
break outBearings;
|
|
|
}
|
|
|
// 创建
|
|
@@ -144,7 +144,7 @@ public class UnitServiceImpl implements UnitService {
|
|
|
Example queryExample = new Example(UnitDynamoPO.class);
|
|
|
Example.Criteria criteria = queryExample.createCriteria();
|
|
|
criteria.andEqualTo("id", unitDynamoPO.getId());
|
|
|
- flg = unitDynamoMapper.updateByExample(unitDynamoPO, queryExample) > 0;
|
|
|
+ flg = unitDynamoMapper.updateByExampleSelective(unitDynamoPO, queryExample) > 0;
|
|
|
break outDynamo;
|
|
|
}
|
|
|
// 创建
|