Authored by mali

密码校验

@@ -542,7 +542,7 @@ public static void main(String[] args) { @@ -542,7 +542,7 @@ public static void main(String[] args) {
542 } 542 }
543 int n = productMapper.updateStatusByPrimaryKey(bo.getId(), bo.getStatus()); 543 int n = productMapper.updateStatusByPrimaryKey(bo.getId(), bo.getStatus());
544 if (n == 1) { 544 if (n == 1) {
545 - return new ApiResponse<>(400, "操作成功"); 545 + return new ApiResponse<>(200, "操作成功");
546 } 546 }
547 return new ApiResponse<>(400, "操作失败!"); 547 return new ApiResponse<>(400, "操作失败!");
548 } 548 }
@@ -148,7 +148,7 @@ @@ -148,7 +148,7 @@
148 editRow(id); 148 editRow(id);
149 } 149 }
150 }); 150 });
151 - // 关闭品 151 + // 关闭品
152 $(this).myDatagrid("getPanel").find("a[role='closeProductName']").linkbutton({ 152 $(this).myDatagrid("getPanel").find("a[role='closeProductName']").linkbutton({
153 iconCls: "icon-more", 153 iconCls: "icon-more",
154 onClick: function () { 154 onClick: function () {
@@ -156,7 +156,7 @@ @@ -156,7 +156,7 @@
156 } 156 }
157 }); 157 });
158 158
159 - // 开启品 159 + // 开启品
160 $(this).myDatagrid("getPanel").find("a[role='openProductName']").linkbutton({ 160 $(this).myDatagrid("getPanel").find("a[role='openProductName']").linkbutton({
161 iconCls: "icon-more", 161 iconCls: "icon-more",
162 onClick: function () { 162 onClick: function () {
@@ -253,11 +253,11 @@ @@ -253,11 +253,11 @@
253 var message = ""; 253 var message = "";
254 var msg = ""; 254 var msg = "";
255 if (status == 0) { 255 if (status == 0) {
256 - message = "确认要开启品牌吗?";  
257 - msg = "开启品牌成功!"; 256 + message = "确认要开启品类吗?";
  257 + msg = "开启品类成功!";
258 } else { 258 } else {
259 - message = "确认要关闭品牌吗?";  
260 - msg = "关闭品牌成功!"; 259 + message = "确认要关闭品类吗?";
  260 + msg = "关闭品类成功!";
261 } 261 }
262 window.top.$.messager.confirm("确认", message, function (flag) { 262 window.top.$.messager.confirm("确认", message, function (flag) {
263 if (flag) { 263 if (flag) {