|
@@ -26,8 +26,6 @@ import com.caimei.modules.user.service.CmUserOrganizeService;
|
|
import com.caimei.po.ProductImage;
|
|
import com.caimei.po.ProductImage;
|
|
import com.caimei.redis.RedisService;
|
|
import com.caimei.redis.RedisService;
|
|
import com.caimei.utils.AppUtils;
|
|
import com.caimei.utils.AppUtils;
|
|
-import com.caimei.utils.MathUtil;
|
|
|
|
-import com.caimei.vo.JsonModel;
|
|
|
|
import com.google.common.collect.Maps;
|
|
import com.google.common.collect.Maps;
|
|
import com.thinkgem.jeesite.common.config.Global;
|
|
import com.thinkgem.jeesite.common.config.Global;
|
|
import com.thinkgem.jeesite.common.persistence.Page;
|
|
import com.thinkgem.jeesite.common.persistence.Page;
|
|
@@ -237,20 +235,6 @@ public class ProductNewController extends BaseController {
|
|
model.addAttribute("classify", classify);
|
|
model.addAttribute("classify", classify);
|
|
model.addAttribute("page", page);
|
|
model.addAttribute("page", page);
|
|
model.addAttribute("product", product);
|
|
model.addAttribute("product", product);
|
|
- //搜索条件保存
|
|
|
|
- /*model.addAttribute("searchShopName", product.getShopName());
|
|
|
|
- model.addAttribute("searchName", product.getName());
|
|
|
|
- model.addAttribute("searchShopID", product.getShopID());
|
|
|
|
- model.addAttribute("searchCommodityType", ("".equals(product.getCommodityType()) || product.getCommodityType() == null) ? product.getCommodityType() : Integer.parseInt(product.getCommodityType()));
|
|
|
|
- model.addAttribute("searchBigTypeID", product.getBigTypeID());
|
|
|
|
- model.addAttribute("searchSmallTypeID", product.getSmallTypeID());
|
|
|
|
- model.addAttribute("searchTinyTypeID", product.getTinyTypeID());
|
|
|
|
- model.addAttribute("searchActStatus", product.getActStatus());
|
|
|
|
- model.addAttribute("searchProductType", product.getProductType());
|
|
|
|
- model.addAttribute("searchBrandID", product.getBrandID());
|
|
|
|
- model.addAttribute("searchPreferredFlag", product.getPreferredFlag());
|
|
|
|
- model.addAttribute("searchProductCategory", product.getProductCategory());
|
|
|
|
- model.addAttribute("searchValidFlag", product.getSearchValidFlag());*/
|
|
|
|
if (StringUtils.isNotEmpty(id)) {
|
|
if (StringUtils.isNotEmpty(id)) {
|
|
// 单个商品搜索
|
|
// 单个商品搜索
|
|
model.addAttribute("editFlag", "1");
|
|
model.addAttribute("editFlag", "1");
|
|
@@ -260,7 +244,6 @@ public class ProductNewController extends BaseController {
|
|
} else {
|
|
} else {
|
|
return "modules/product-new/secondHand";
|
|
return "modules/product-new/secondHand";
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "productAdd")
|
|
@RequestMapping(value = "productAdd")
|
|
@@ -830,6 +813,24 @@ public class ProductNewController extends BaseController {
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @RequestMapping(value = "allocate/form")
|
|
|
|
+ public String form(Product product, Model model) {
|
|
|
|
+ List<Shop> shops = productNewService.findSaleMans();
|
|
|
|
+ model.addAttribute("shops", shops);
|
|
|
|
+ model.addAttribute("product", product);
|
|
|
|
+ return "modules/product-new/secondAllocate";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @RequestMapping(value = "allocate")
|
|
|
|
+ public String allocateSecond(Product product, Model model) {
|
|
|
|
+ productNewService.allocateSecond(product);
|
|
|
|
+ product.setProductCategory("2");
|
|
|
|
+ model.addAttribute("message", "操作成功!");
|
|
|
|
+ model.addAttribute("product", product);
|
|
|
|
+ return "redirect:" + Global.getAdminPath() + "/product/new/list/";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
@RequestMapping("auditProduct")
|
|
@RequestMapping("auditProduct")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public synchronized Map<String, Object> auditProduct(String validFlag, Integer newvalidFlag, String showtime, Integer productID, String remarks) {
|
|
public synchronized Map<String, Object> auditProduct(String validFlag, Integer newvalidFlag, String showtime, Integer productID, String remarks) {
|