admin
2018-12-25 4cb15e222cd7d099d533ccbeb7f9a8cd99bf180c
fanli/src/main/java/com/yeshi/fanli/controller/admin/homemodule/SwiperBannerAdminController.java
@@ -164,10 +164,10 @@
         }
         
         Integer state = resultObj.getState();
         if (state != null && state.equals(0)) {
            resultObj.setState(1);
         } else {
         if (state == null ||  state.equals(1) || state == 1) {
            resultObj.setState(0);
         } else {
            resultObj.setState(1);
         }
         swiperBannerService.updateByPrimaryKeySelective(resultObj);
@@ -396,7 +396,7 @@
         
         int maxOrder = swiperPictureService.getMaxOrderByBannerID(bannerId);
         record.setOrder(maxOrder + 1);
         // 默认停用
         record.setState(1);
         record.setCreatetime(new Date());
         record.setUpdatetime(new Date());
@@ -596,10 +596,10 @@
         }
         
         Integer state = resultObj.getState();
         if (state != null && state.equals(0)) {
            resultObj.setState(1);
         } else {
         if (state == null ||  state.equals(1) || state == 1) {
            resultObj.setState(0);
         } else {
            resultObj.setState(1);
         }
         swiperPictureService.updateByPrimaryKeySelective(resultObj);