|
@@ -1,5 +1,6 @@ |
|
|
package com.telpo.dipperposition.mapper; |
|
|
package com.telpo.dipperposition.mapper; |
|
|
|
|
|
|
|
|
|
|
|
import com.telpo.dipperposition.annotation.MongoSwitch; |
|
|
import com.telpo.dipperposition.entity.mongo.IPProvinceEntity; |
|
|
import com.telpo.dipperposition.entity.mongo.IPProvinceEntity; |
|
|
import db.BaseMongoDbDao; |
|
|
import db.BaseMongoDbDao; |
|
|
import org.springframework.stereotype.Repository; |
|
|
import org.springframework.stereotype.Repository; |
|
@@ -21,11 +22,13 @@ public class IPProvinceMapper extends BaseMongoDbDao<IPProvinceEntity> { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
|
|
|
@MongoSwitch("common") |
|
|
public void save(IPProvinceEntity entity, String collectionName) { |
|
|
public void save(IPProvinceEntity entity, String collectionName) { |
|
|
super.save(entity, collectionName); |
|
|
super.save(entity, collectionName); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
|
|
|
@MongoSwitch("common") |
|
|
public void updateFirst(IPProvinceEntity srcObj, IPProvinceEntity targetObj) { |
|
|
public void updateFirst(IPProvinceEntity srcObj, IPProvinceEntity targetObj) { |
|
|
super.updateFirst(srcObj, targetObj); |
|
|
super.updateFirst(srcObj, targetObj); |
|
|
} |
|
|
} |
|
@@ -36,16 +39,19 @@ public class IPProvinceMapper extends BaseMongoDbDao<IPProvinceEntity> { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
|
|
|
@MongoSwitch("common") |
|
|
public List<IPProvinceEntity> queryList(IPProvinceEntity object) { |
|
|
public List<IPProvinceEntity> queryList(IPProvinceEntity object) { |
|
|
return super.queryList(object); |
|
|
return super.queryList(object); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
|
|
|
@MongoSwitch("common") |
|
|
public List<IPProvinceEntity> queryList(IPProvinceEntity object, String collectionName) { |
|
|
public List<IPProvinceEntity> queryList(IPProvinceEntity object, String collectionName) { |
|
|
return super.queryList(object, collectionName); |
|
|
return super.queryList(object, collectionName); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
|
|
|
@MongoSwitch("common") |
|
|
public void deleteById(String id) { |
|
|
public void deleteById(String id) { |
|
|
super.deleteById(id); |
|
|
super.deleteById(id); |
|
|
} |
|
|
} |
|
|