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());

}

}
}

相关文章:

  • 2022-12-23
  • 2021-12-04
  • 2022-02-05
  • 2022-12-23
  • 2021-05-24
  • 2022-12-23
  • 2021-04-20
猜你喜欢
  • 2021-07-05
  • 2021-07-29
  • 2022-12-23
  • 2021-09-16
  • 2021-07-31
  • 2022-12-23
  • 2021-12-27
相关资源
相似解决方案