增添publicManagement

Signed-off-by: 宋佳辉 <3327510663@qq.com>
main
宋佳辉 2 months ago
parent 3b2f616172
commit 3c87a56769

@ -0,0 +1,19 @@
package com.ssm.controller;
import com.ssm.entity.Category;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
@RequestMapping("sjh")
public class CategoryController {
@RequestMapping("Category")
public ModelAndView test(Category category) {
category.printInfo();
System.out.println("类目信息:" + category.toString());
ModelAndView cc = new ModelAndView("showCategory");
cc.addObject("printInfo", category);
return cc;
}
}

@ -0,0 +1,44 @@
package com.ssm.entity;
public class Category {
private String ccgoods;//商品属性
private String ccinventory;//库存管理属性
private String ccsale;//销售属性
private String cclogistics;//物流属性
public String getCcgoods() {
return ccgoods;
}
public void setCcgoods(String ccgoods) {
this.ccgoods = ccgoods;
}
public String getCcinventory() {
return ccinventory;
}
public void setCcinventory(String ccinventory) {
this.ccinventory = ccinventory;
}
public String getCcsale() {
return ccsale;
}
public void setCcsale(String ccsale) {
this.ccsale = ccsale;
}
public String getCclogistics() {
return cclogistics;
}
public void setCclogistics(String cclogistics) {
this.cclogistics = cclogistics;
}
public void printInfo(){
System.out.println("商品属性="+ccgoods +"\n库存管理属性="+ccinventory+"\n销售属性="+ccsale+"\n物流属性="+cclogistics);
}
}

@ -0,0 +1,29 @@
<%--
Created by IntelliJ IDEA.
User: 33275
Date: 2025/4/7
Time: 20:16
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>CarouselController</title>
</head>
<body>
Success!
<br>
<br>
商品属性:${printInfo.ccgoods}
<br>
<br>
库存管理属性:${printInfo.ccinventory}
<br>
<br>
销售属性:${printInfo.ccsale}
<br>
<br>
物流属性:${printInfo.cclogistics}
<br>
</body>
</html>

@ -1,16 +1,28 @@
<%--
Created by IntelliJ IDEA.
User: bd
Date: 2025/3/27
Time: 23:30
Date: 2025/4/7
Time: 13:10
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>入门程序</title>
<title>Title</title>
</head>
<body>
success!
hello!
<br>
用户信息:${printInfo.unq}
<br>
<br>
用户名:${printInfo.unw}
<br>
<br>
物流信息:${printInfo.une}
<br>
<br>
售后信息:${printInfo.unr}
<br>
</body>
</html>

@ -0,0 +1,45 @@
<%--
Created by IntelliJ IDEA.
User: 33275
Date: 2025/4/7
Time: 20:16
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>添加类目信息</title>
</head>
<body>
<form action="sjh/Category" method="post">
<tr>
<td>商品属性</td>
<td width="20"></td>
<td><input type="text" name="ccgoods" placeholder="商品分类"></td>
</tr>
<tr>
<td>库存管理属性</td>
<td width="20"></td>
<td><input type="text" name="ccinventory" placeholder="商品数量"></td>
</tr>
<tr>
<td>销售属性</td>
<td width="20"></td>
<td><input type="text" name="ccsale" placeholder="销售渠道"></td>
</tr>
<tr>
<td>物流属性</td>
<td width="20"></td>
<td><input type="text" name="cclogistics" placeholder="物流方式"></td>
</tr>
<tr>
<td align="right"><input type="reset" value="重置信息"></td>
<td></td>
<td align="center">
<input type="submit" value="添加">
</td>
</tr>
</form>
</body>
</html>

@ -0,0 +1,45 @@
<%--
Created by IntelliJ IDEA.
User: bd
Date: 2025/3/27
Time: 23:30
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>添加信息</title>
</head>
<body>
success!
<form action="wxf/PublicMagement" method="post">
<tr>
<td>用户id</td>
<td width="20"></td>
<td><input type="text" name="unq" placeholder="用户id"></td>
</tr>
<tr>
<td>用户信息</td>
<td width="20"></td>
<td><input type="text" name="unw" placeholder="用户信息"></td>
</tr>
<tr>
<td>物流管理</td>
<td width="20"></td>
<td><input type="text" name="une" placeholder="物流管理"></td>
</tr>
<tr>
<td>售后管理</td>
<td width="20"></td>
<td><input type="text" name="unr" placeholder="售后管理"></td>
</tr>
<tr>
<td align="left"><input type="reset" value="重置信息"></td>
<td></td>
<td align="center">
<input type="submit" value="添加">
</td>
</tr>
</form>
</body>
</html>
Loading…
Cancel
Save