Skip to content

Commit f765da3

Browse files
committed
product sumbit
1 parent 4021710 commit f765da3

36 files changed

+405
-664
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.manong.service.impl;
1+
package com.manong.service;
22

33

44
import pojo.EasyUITree;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.manong.service;
2+
3+
import com.manong.pojo.Product;
4+
import pojo.ResponseJsonResult;
5+
6+
/**
7+
* Created by wistbean on 2019/1/5.
8+
*/
9+
public interface ProductService {
10+
ResponseJsonResult saveProduct(Product product);
11+
}

manong_manager/manong_manager_service/src/main/java/com/manong/service/impl/ProductCategoryServiceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.manong.mapper.ProductCategoryMapper;
44
import com.manong.pojo.ProductCategory;
55
import com.manong.pojo.ProductCategoryExample;
6+
import com.manong.service.ProductCategoryService;
67
import org.springframework.beans.factory.annotation.Autowired;
78
import org.springframework.stereotype.Service;
89
import pojo.EasyUITree;
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package com.manong.service.impl;
2+
3+
import com.manong.mapper.ProductMapper;
4+
import com.manong.pojo.Product;
5+
import com.manong.service.ProductService;
6+
import org.springframework.beans.factory.annotation.Autowired;
7+
import org.springframework.stereotype.Service;
8+
import pojo.ResponseJsonResult;
9+
10+
/**
11+
* Created by wistbean on 2019/1/5.
12+
*/
13+
@Service
14+
public class ProductServiceImpl implements ProductService {
15+
16+
@Autowired
17+
ProductMapper productMapper;
18+
19+
@Override
20+
public ResponseJsonResult saveProduct(Product product) {
21+
22+
product.setStatus((byte) 1);
23+
productMapper.insert(product);
24+
25+
ResponseJsonResult responseJsonResult = new ResponseJsonResult();
26+
responseJsonResult.setStatus(200);
27+
28+
return responseJsonResult;
29+
}
30+
}
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
com\manong\service\impl\ProductCategoryService.class
21
com\manong\service\impl\ProductCategoryServiceImpl.class
2+
com\manong\service\ProductService.class
3+
com\manong\service\ProductCategoryService.class
4+
com\manong\service\impl\ProductServiceImpl.class
35
com\manong\service\UserService.class
46
com\manong\service\impl\UserServiceImpl.class
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
F:\githubproject\manong\manong_manager\manong_manager_service\src\main\java\com\manong\service\impl\ProductCategoryService.java
1+
F:\githubproject\manong\manong_manager\manong_manager_service\src\main\java\com\manong\service\impl\ProductServiceImpl.java
2+
F:\githubproject\manong\manong_manager\manong_manager_service\src\main\java\com\manong\service\ProductService.java
3+
F:\githubproject\manong\manong_manager\manong_manager_service\src\main\java\com\manong\service\ProductCategoryService.java
24
F:\githubproject\manong\manong_manager\manong_manager_service\src\main\java\com\manong\service\impl\ProductCategoryServiceImpl.java
35
F:\githubproject\manong\manong_manager\manong_manager_service\src\main\java\com\manong\service\impl\UserServiceImpl.java
46
F:\githubproject\manong\manong_manager\manong_manager_service\src\main\java\com\manong\service\UserService.java

0 commit comments

Comments
 (0)