| | |
| | | import com.stylefeng.guns.core.base.controller.BaseController; |
| | | import com.stylefeng.guns.core.base.tips.SuccessTip; |
| | | import com.stylefeng.guns.core.util.DateUtil; |
| | | import com.stylefeng.guns.modular.system.enums.StatusEnum; |
| | | import com.stylefeng.guns.modular.system.model.TAgent; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.util.StringUtils; |
| | |
| | | // 开始,结束时间 |
| | | if(StringUtils.hasLength(createTime)){ |
| | | String[] split = createTime.split(" - "); |
| | | Date startTime = DateUtil.getDate_str4(split[0]); |
| | | Date endTime = DateUtil.getDate_str4(split[1]); |
| | | Date startTime = DateUtil.getDate_str3(split[0]+" 00:00:00"); |
| | | Date endTime = DateUtil.getDate_str3(split[1]+" 23:59:59"); |
| | | wrapper.between("createTime",startTime,endTime); |
| | | } |
| | | wrapper.ne("status", StatusEnum.DELETE.getCode()); |
| | | wrapper.orderBy("createTime",false); |
| | | return tYouTuiService.selectList(wrapper); |
| | | } |
| | | |
| | |
| | | if(1 == tYouTui.getStatus()){ |
| | | return new SuccessTip(500,"启用下的优推不可删除!"); |
| | | } |
| | | |
| | | tYouTuiService.deleteById(tYouTuiId); |
| | | tYouTui.setStatus(StatusEnum.DELETE.getCode()); |
| | | tYouTuiService.updateById(tYouTui); |
| | | return SUCCESS_TIP; |
| | | } |
| | | |