| | |
| | | import com.yeshi.fanli.entity.AppVersionInfo;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.AdActivityVersionControl;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.AdActivityVersionControl.AdActivityType;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.CommonShareInfo;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.Special;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialCard;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialExtra;
|
| | | import com.yeshi.fanli.exception.homemodule.SpecialCardException;
|
| | | import com.yeshi.fanli.exception.homemodule.SpecialException;
|
| | | import com.yeshi.fanli.service.inter.config.AppVersionService;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | |
| | | |
| | | /**
|
| | | * 查询
|
| | | * |
| | | * @param callback
|
| | | * @param pageIndex
|
| | | * @param pageSize
|
| | | * @param key
|
| | | * 模糊查询:说明、标识
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "queryActivity")
|
| | | public void queryActivity(String callback, Integer pageIndex, Integer pageSize, String key, Integer sort, |
| | | PrintWriter out) {
|
| | | |
| | | List<Long> listPid = new ArrayList<Long>();
|
| | | listPid.add(15L);
|
| | | listPid.add(16L);
|
| | | listPid.add(17L);
|
| | | queryList(callback, pageIndex, pageSize, key, sort, listPid, out);
|
| | | }
|
| | | |
| | | |
| | | |
| | | /**
|
| | | * 查询
|
| | | *
|
| | |
| | | */
|
| | | @RequestMapping(value = "query")
|
| | | public void query(String callback, Integer pageIndex, Integer pageSize, String key, Integer sort, PrintWriter out) {
|
| | | queryList(callback, pageIndex, pageSize, key, sort, null, out);
|
| | | }
|
| | |
|
| | | public void queryList(String callback, Integer pageIndex, Integer pageSize, String key, Integer sort, |
| | | List<Long> listPid, PrintWriter out) {
|
| | |
|
| | | if (pageIndex == null || pageIndex < 1) {
|
| | | pageIndex = 1;
|
| | |
| | | }
|
| | |
|
| | | try {
|
| | | List<SpecialCard> list = specialCardService.listQuery((pageIndex - 1) * pageSize, pageSize, key, sort);
|
| | | List<SpecialCard> list = specialCardService.listQuery((pageIndex - 1) * pageSize, pageSize, key, sort, listPid);
|
| | |
|
| | | if (list == null || list.size() == 0) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("暂无数据"));
|
| | | return;
|
| | | }
|
| | |
|
| | | long count = specialCardService.countlistQuery(key);
|
| | | long count = specialCardService.countlistQuery(key, listPid);
|
| | |
|
| | | int totalPage = (int) (count % pageSize == 0 ? count / pageSize : count / pageSize + 1);
|
| | | PageEntity pe = new PageEntity(pageIndex, pageSize, count, totalPage);
|
| | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | /**
|
| | | * 删除
|
| | | *
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "saveSpecial")
|
| | | public void saveSpecial(String callback, Special record, String jumpType, SpecialExtra extra, HttpServletRequest request,
|
| | | public void saveSpecial(String callback, Special record, String jumpType, CommonShareInfo extra, HttpServletRequest request,
|
| | | PrintWriter out) {
|
| | | try {
|
| | | // 1. 先判断httpRequest 是否含有文件类型
|