private void findGoodsTypeTNByParams() { int currentPage = page; int lineSize = rp; String qs = "select count(*) from GoodsTypeTN where " + this.getQtype() + " like '%" + this.getQuery().trim() + "%' "; total = this.getGoodsTypeTNService().countsortAllGoodsTypeTN(qs); if (Validate.StrNotNull(getSortname()) && Validate.StrNotNull(getSortorder())) { String queryString = "from GoodsTypeTN as gtn where gtn." + this.getQtype() + " like '%" + this.getQuery().trim() + "%' order by " + getSortname() + " " + getSortorder() + ""; List<GoodsTypeTN> list = this.getGoodsTypeTNService().sortAllGoodsTypeTN(currentPage, lineSize, queryString); this.ProcessGoodsTypeTNList(list); } }
public void findDefaultAllGoodsTypeTN() { int currentPage = page; int lineSize = rp; total = this.getGoodsTypeTNService().countfindAllGoodsTypeTN(); if (Validate.StrNotNull(getSortname()) && Validate.StrNotNull(getSortorder())) { String queryString = "from GoodsTypeTN order by " + getSortname() + " " + getSortorder() + ""; List<GoodsTypeTN> list = this.getGoodsTypeTNService().sortAllGoodsTypeTN(currentPage, lineSize, queryString); this.ProcessGoodsTypeTNList(list); } }
/** * 加入购物车前查询出商品信息 * * @return */ public GoodsGroupT GetGoodsGroupTForGroupCart() { if (Validate.StrNotNull(this.getGroupid())) { GoodsGroupT ggt = this.getGoodsGroupTService().findGoodsGroupById(this.getGroupid()); if (ggt != null) { return ggt; } } return null; }
public void findDefaultAllSiteNavigation() { int currentPage = page; int lineSize = rp; total = this.getSiteNavigationTService().countfindAllSiteNavigationT(BaseTools.adminCreateId()); if (Validate.StrNotNull(getSortname()) && Validate.StrNotNull(getSortorder())) { String queryString = "from SiteNavigationT as st where st.creatorid=:creatorid order by " + getSortname() + " " + getSortorder() + ""; List<SiteNavigationT> list = this.getSiteNavigationTService() .sortAllSiteNavigationT( currentPage, lineSize, BaseTools.adminCreateId(), queryString); if (list != null) { this.ProcessSiteNavigationList(list); } } }
/** * 根据模块id查询对应功能列表 * * @return */ @Action( value = "findAllFunctionMBymoduleid", results = {@Result(name = "json", type = "json")}) public String findAllFunctionMBymoduleid() { if (Validate.StrNotNull(this.getModuleid())) { this.findDefaultAllFunctionMBymoduleid(); } else { this.findAllFunctionM(); } return "json"; }
/** * 删除商品类型 * * @return */ @Action( value = "delGoodsTypeTN", results = {@Result(name = "json", type = "json")}) public String delGoodsTypeTN() { if (Validate.StrNotNull(this.getGoodsTypeId())) { String[] list = this.getGoodsTypeId().trim().split(","); int i = this.getGoodsTypeTNService().delGoodsTypeTN(list); return "json"; } return "json"; }
/** * 更新评论或者回复的显示状态 * * @return */ @Action( value = "updateGoodsCommentorReplyByState", results = {@Result(name = "json", type = "json")}) public String updateGoodsCommentorReplyByState() { if (Validate.StrNotNull(this.getCommentid())) { String[] strs = StringUtils.split(this.getCommentid().trim(), ','); String state = this.getState().trim(); this.getGoodsCommentTService().updateGoodsCommentorReplyByState(state, strs); this.setSucflag(true); return "json"; } this.setSucflag(false); return "json"; }
/** * 删除商品参数 * * @return */ @Action( value = "delGoodsAttributeT", results = {@Result(name = "json", type = "json")}) public String delGoodsAttributeT() { if (Validate.StrNotNull(this.getGoodsattributeid())) { String[] list = StringUtils.split(this.getGoodsattributeid(), ","); this.getGoodsAttributeTService().delGoodsAttributeT(list); this.setSucflag(true); return "json"; } this.setSucflag(false); return "json"; }
/** * 删除模板文件和系统内容设定 * * @return */ @Action( value = "delTemplatesetT", results = {@Result(name = "json", type = "json")}) public String delTemplatesetT() { if (Validate.StrNotNull(this.getTsid())) { String[] strs = this.getTsid().split(","); this.getTemplatesetTService().delTemplatesetT(strs); this.setSucflag(true); return "json"; } this.setSucflag(false); return "json"; }
/** * 根据id获取商品类型 * * @return */ @Action( value = "findGoodsTypeTNById", results = {@Result(name = "json", type = "json")}) public String findGoodsTypeTNById() { if (Validate.StrNotNull(this.getGoodsTypeId())) { List<GoodsTypeTN> list = this.getGoodsTypeTNService().findGoodsTypeTNById(this.getGoodsTypeId().trim()); if (!list.isEmpty()) { bean = new GoodsTypeTN(); bean = list.get(0); } } return "json"; }
/** * 删除系统模块功能 * * @return */ @Action( value = "delFunctionM", results = {@Result(name = "json", type = "json")}) public String delFunctionM() { if (Validate.StrNotNull(this.getId())) { String[] strs = StringUtils.split(this.getId(), ","); if (this.getFunctionMService().delFunctionM(strs) > 0) { this.setSucflag(true); return "json"; } this.setSucflag(false); return "json"; } this.setSucflag(false); return "json"; }
/** * 根据id获取功能信息数据 * * @return */ @Action( value = "findFunctionMById", results = {@Result(name = "json", type = "json")}) public String findFunctionMById() { if (Validate.StrNotNull(this.getId())) { bean = this.getFunctionMService().findFunctionMById(this.getId().trim()); if (bean != null) { this.setSucflag(true); return "json"; } this.setSucflag(false); return "json"; } this.setSucflag(false); return "json"; }
/** * 更新是否支持关联检索 * * @return */ @Action( value = "updateGoodsAttributeissametolinkBygoodsattributeid", results = {@Result(name = "json", type = "json")}) public String updateGoodsAttributeissametolinkBygoodsattributeid() { if (Validate.StrNotNull(this.getGoodsattributeid())) { String[] strs = StringUtils.split(this.getGoodsattributeid(), ","); if (this.getGoodsAttributeTService() .updateGoodsAttributeissametolinkBygoodsattributeid(strs, this.getIssametolink()) > 0) { this.setSucflag(true); return "json"; } this.setSucflag(false); return "json"; } this.setSucflag(false); return "json"; }
/** * 根据商品类型来获取对应的商品参数 * * @return */ @Action( value = "findGoodsAttributeTByGoodsTypeName", results = {@Result(name = "json", type = "json")}) public String findGoodsAttributeTByGoodsTypeName() { if (Validate.StrNotNull(this.getGoodsTypeName())) { List<GoodsAttributeT> list = this.getGoodsAttributeTService() .findGoodsAttributeTByGoodsTypeName(this.getGoodsTypeName().trim()); if (!list.isEmpty()) { beanlist = list; this.setSucflag(true); return "json"; } } this.setSucflag(false); return "json"; }
/** * 后台获取商品的详细评论数据 * * @return */ @Action( value = "getGoodscommentDetails", results = {@Result(name = "json", type = "json")}) public String getGoodscommentDetails() { if (Validate.StrNotNull(this.getGoodsid())) { String goodsid = this.getGoodsid().trim(); int currentPage = 1; int lineSize = 65535; List<GoodsCommentT> list = this.getGoodsCommentTService().findGoodsCommentByGoodsid(goodsid, currentPage, lineSize); if (!list.isEmpty()) { this.setBeanlist(list); this.setSucflag(true); return "json"; } } this.setSucflag(false); return "json"; }
/** * 根据tsid获取模板文件和系统内容设定值 * * @return */ @Action( value = "findTemplatesetTBytsid", results = {@Result(name = "json", type = "json")}) public String findTemplatesetTBytsid() { if (Validate.StrNotNull(this.getTsid())) { bean = this.getTemplatesetTService().findTemplatesetTBytsid(this.getTsid()); if (bean != null) { this.setSucflag(true); return "json"; } else { this.setSucflag(false); return "json"; } } else { this.setSucflag(false); return "json"; } }