| | |
| | | |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import com.matrix.core.pojo.PaginationVO; |
| | | import com.matrix.core.tools.StringUtils; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.constance.Dictionary; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Random; |
| | |
| | | |
| | | int i = sysVipLabelDao.update(sysVipLabel); |
| | | if (i > 0) { |
| | | AjaxResult ajaxResult = AjaxResult.buildSuccessInstance("添加成功"); |
| | | AjaxResult ajaxResult = AjaxResult.buildSuccessInstance("编辑成功"); |
| | | ajaxResult.putInMap("label", sysVipLabel); |
| | | return ajaxResult; |
| | | } |
| | | return AjaxResult.buildFailInstance("添加失败"); |
| | | return AjaxResult.buildFailInstance("编辑失败"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/del") |
| | | @ResponseBody |
| | | public AjaxResult del(Long id) { |
| | | int i = sysVipLabelDao.deleteById(id); |
| | | public AjaxResult del(String keys) { |
| | | List<Long> ids = StringUtils.strToCollToLong(keys, ","); |
| | | int i = sysVipLabelDao.deleteByIds(ids); |
| | | if (i > 0) { |
| | | return AjaxResult.buildSuccessInstance("删除成功"); |
| | | } else { |
| | | return AjaxResult.buildFailInstance("删除失败"); |
| | | } |
| | | return AjaxResult.buildFailInstance("删除失败"); |
| | | } |
| | | |
| | | |
| | | |
| | | @RequestMapping(value = "/edit") |
| | | public String edit(Long id) { |
| | | if (id != null) { |