|
@@ -65,6 +65,23 @@ public class StoreFocusServiceImpl implements StoreFocusService {
|
|
|
return "success";
|
|
return "success";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public String deleteByStoreIds(List<Long> ids) {
|
|
|
|
|
+ Iterator<Long> it = ids.iterator();
|
|
|
|
|
+ int count = 0;
|
|
|
|
|
+ while (it.hasNext()) {
|
|
|
|
|
+ Long id = (Long) it.next();
|
|
|
|
|
+ List<StoreFocus> list = storeFocusDao.findStoreFocusByUseruuAndEnuuAndStoreid(
|
|
|
|
|
+ SystemSession.getUser().getUserUU(), SystemSession.getUser().getEnterprise().getUu(), id);
|
|
|
|
|
+ if (list.size()>0){
|
|
|
|
|
+ storeFocusDao.delete(list.get(0).getId());
|
|
|
|
|
+ count++;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ System.out.println("删除的条数" + count);
|
|
|
|
|
+ return "success";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public Page<StoreFocus> getPageStoreFocus(final PageInfo info) {
|
|
public Page<StoreFocus> getPageStoreFocus(final PageInfo info) {
|
|
|
if (SystemSession.getUser().getEnterprise() != null) {
|
|
if (SystemSession.getUser().getEnterprise() != null) {
|