wzStoreInfoDefineService.update(neWzStoreInfo,updateList,insertList,deleteListpublic void update(WzStoreInfo com, List<WzStoreUnitList> updateList,List<WzStoreUnitList> insertList, List<WzStoreUnitList> deleteList)
public void update(WzStoreInfo com, List<WzStoreUnitList> updateList,
List<WzStoreUnitList> insertList, List<WzStoreUnitList> deleteList)
throws Exception {
primaryIDAO.update(com);
if(insertList!=null && insertList.size()>0){
primaryIDAO.create(insertList);
}
if(updateList!=null && updateList.size()>0){
primaryIDAO.update(updateList);
}
if(deleteList!=null && deleteList.size()>0){
for (WzStoreUnitList bean : deleteList){
primaryIDAO.remove(WzStoreUnitList.class, bean.getStoreUnitId());
}
}
}