zhijiezhao 3 years ago
parent
commit
3f18139bbb

+ 1 - 0
src/main/java/com/caimei/modules/product/service/CmSecondHandDetailService.java

@@ -56,6 +56,7 @@ private ProductDao productDao;
 		cmSecondHandDetailDao.updateRevieweInfo(reviewedDate,onLineDate,productID);
 	}
 
+	@Transactional(readOnly = false)
 	public void updateOnLineDate(Date date,Integer productID) {
 		cmSecondHandDetailDao.updateOnLineDate(date,productID);
 	}

+ 1 - 1
src/main/java/com/caimei/modules/product/web/ProductNewController.java

@@ -802,7 +802,7 @@ public class ProductNewController extends BaseController {
             e.printStackTrace();
             logger.error(e.getMessage());
             map.put("success", false);
-            map.put("msg", "上失败");
+            map.put("msg", "上失败");
         }
         return map;
     }

+ 15 - 1
src/main/webapp/WEB-INF/views/modules/coupon/MoneyCouponForm.jsp

@@ -628,6 +628,11 @@
 
     function productShow() {
         var  productType = $("input[name='productType']:checked").val();
+        var moneyCouponType = $("input[name='moneyCouponType']:checked").val();
+        if(moneyCouponType == 2){
+            $("#productType1").attr("checked",true);
+            return;
+        }
         if (productType == 2){
             $(".productData").show();
         }else {
@@ -887,6 +892,11 @@
 
     function couponShow() {
         var couponType = $("input[name='couponType']:checked").val();
+        var moneyCouponType = $("input[name='moneyCouponType']:checked").val();
+        if(moneyCouponType == 2){
+            $("#couponType1").attr("checked",true);
+            return;
+        }
         if (couponType == 0) {
             $("#eventVoucher").show();
             $("#couponCategory").hide();
@@ -923,17 +933,21 @@
             $("#dpq").show();
             $("#qsc").show();
             $("#qsc").attr("checked",true);
+            $("#couponType1").attr("checked",true);
             $("#yxq").show();
             $("#dxq").hide();
-            $("#couponType1").attr("checked",true);
             $("#eventVoucher").show();
             $(".productData").hide();
+            $("#couponClub").hide();
+            $("#couponShop").hide();
         }
         if(couponType == 2) {
             $("#couponType1").attr("checked",true);
             $("#productType1").attr("checked",true);
             $("#eventVoucher").show();
             $(".productData").show();
+            $("#couponClub").hide();
+            $("#couponShop").hide();
             $("#qsc").hide();
             $("#zxq").hide();
             $("#plq").hide();