Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_53077510
production_ssm
提交
8e9102f1
P
production_ssm
项目概览
weixin_53077510
/
production_ssm
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
production_ssm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8e9102f1
编写于
1月 23, 2018
作者:
M
megagao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix all known bugs
N/A Signed-off-by:
N
megagao
<
megagao@126.com
>
上级
2046d142
变更
17
展开全部
隐藏空白更改
内联
并排
Showing
17 changed file
with
1014 addition
and
984 deletion
+1014
-984
production_ssm.sql
production_ssm.sql
+928
-928
src/main/java/com/megagao/production/ssm/controller/scheduling/ManufactureController.java
...tion/ssm/controller/scheduling/ManufactureController.java
+4
-3
src/main/java/com/megagao/production/ssm/controller/scheduling/OrderController.java
...production/ssm/controller/scheduling/OrderController.java
+4
-4
src/main/java/com/megagao/production/ssm/controller/scheduling/WorkController.java
.../production/ssm/controller/scheduling/WorkController.java
+3
-3
src/main/java/com/megagao/production/ssm/mapper/COrderMapper.java
.../java/com/megagao/production/ssm/mapper/COrderMapper.java
+2
-2
src/main/java/com/megagao/production/ssm/mapper/ManufactureMapper.java
.../com/megagao/production/ssm/mapper/ManufactureMapper.java
+2
-2
src/main/java/com/megagao/production/ssm/mapper/WorkMapper.java
...in/java/com/megagao/production/ssm/mapper/WorkMapper.java
+2
-2
src/main/java/com/megagao/production/ssm/service/ManufactureService.java
...om/megagao/production/ssm/service/ManufactureService.java
+4
-3
src/main/java/com/megagao/production/ssm/service/OrderService.java
...java/com/megagao/production/ssm/service/OrderService.java
+3
-3
src/main/java/com/megagao/production/ssm/service/WorkService.java
.../java/com/megagao/production/ssm/service/WorkService.java
+3
-3
src/main/java/com/megagao/production/ssm/service/impl/ManufactureServiceImpl.java
...o/production/ssm/service/impl/ManufactureServiceImpl.java
+2
-3
src/main/java/com/megagao/production/ssm/service/impl/OrderServiceImpl.java
...megagao/production/ssm/service/impl/OrderServiceImpl.java
+2
-3
src/main/java/com/megagao/production/ssm/service/impl/WorkServiceImpl.java
.../megagao/production/ssm/service/impl/WorkServiceImpl.java
+2
-3
src/main/resources/ehcache.xml
src/main/resources/ehcache.xml
+48
-0
src/main/resources/spring/applicationContext-service.xml
src/main/resources/spring/applicationContext-service.xml
+2
-9
src/main/resources/spring/applicationContext-shiro.xml
src/main/resources/spring/applicationContext-shiro.xml
+2
-12
src/main/resources/spring/springmvc-servlet.xml
src/main/resources/spring/springmvc-servlet.xml
+1
-1
未找到文件。
production_ssm.sql
浏览文件 @
8e9102f1
此差异已折叠。
点击以展开。
src/main/java/com/megagao/production/ssm/controller/scheduling/ManufactureController.java
浏览文件 @
8e9102f1
...
...
@@ -7,6 +7,7 @@ import javax.validation.Valid;
import
com.megagao.production.ssm.domain.customize.CustomResult
;
import
com.megagao.production.ssm.domain.customize.EUDataGridResult
;
import
com.megagao.production.ssm.domain.Manufacture
;
import
com.megagao.production.ssm.domain.vo.ManufactureVO
;
import
com.megagao.production.ssm.service.ManufactureService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
...
...
@@ -26,8 +27,8 @@ public class ManufactureController {
@RequestMapping
(
"/get/{manufactureId}"
)
@ResponseBody
public
Manufacture
getItemById
(
@PathVariable
String
manufactureId
)
throws
Exception
{
Manufacture
manufacture
=
manufactureService
.
get
(
manufactureId
);
public
Manufacture
VO
getItemById
(
@PathVariable
String
manufactureId
)
throws
Exception
{
Manufacture
VO
manufacture
=
manufactureService
.
get
(
manufactureId
);
return
manufacture
;
}
...
...
@@ -38,7 +39,7 @@ public class ManufactureController {
@RequestMapping
(
"/get_data"
)
@ResponseBody
public
List
<
Manufacture
>
getData
()
throws
Exception
{
public
List
<
Manufacture
VO
>
getData
()
throws
Exception
{
return
manufactureService
.
find
();
}
...
...
src/main/java/com/megagao/production/ssm/controller/scheduling/OrderController.java
浏览文件 @
8e9102f1
...
...
@@ -27,15 +27,15 @@ public class OrderController {
@RequestMapping
(
"/get/{orderId}"
)
@ResponseBody
public
COrder
getItemById
(
@PathVariable
String
orderId
)
throws
Exception
{
COrder
cOrder
=
orderService
.
get
(
orderId
);
public
COrder
VO
getItemById
(
@PathVariable
String
orderId
)
throws
Exception
{
COrder
VO
cOrder
=
orderService
.
get
(
orderId
);
return
cOrder
;
}
@RequestMapping
(
"/get_data"
)
@ResponseBody
public
List
<
COrder
>
getData
()
throws
Exception
{
List
<
COrder
>
list
=
orderService
.
find
();
public
List
<
COrder
VO
>
getData
()
throws
Exception
{
List
<
COrder
VO
>
list
=
orderService
.
find
();
return
list
;
}
...
...
src/main/java/com/megagao/production/ssm/controller/scheduling/WorkController.java
浏览文件 @
8e9102f1
...
...
@@ -27,8 +27,8 @@ public class WorkController {
@RequestMapping
(
"/get/{workId}"
)
@ResponseBody
public
Work
getItemById
(
@PathVariable
String
workId
)
throws
Exception
{
Work
work
=
workService
.
get
(
workId
);
public
Work
VO
getItemById
(
@PathVariable
String
workId
)
throws
Exception
{
Work
VO
work
=
workService
.
get
(
workId
);
return
work
;
}
...
...
@@ -39,7 +39,7 @@ public class WorkController {
@RequestMapping
(
"/get_data"
)
@ResponseBody
public
List
<
Work
>
getData
()
throws
Exception
{
public
List
<
Work
VO
>
getData
()
throws
Exception
{
return
workService
.
find
();
}
...
...
src/main/java/com/megagao/production/ssm/mapper/COrderMapper.java
浏览文件 @
8e9102f1
...
...
@@ -36,9 +36,9 @@ public interface COrderMapper {
int
insertSelective
(
COrder
record
);
List
<
COrder
>
selectByExample
(
COrderExample
example
);
List
<
COrder
VO
>
selectByExample
(
COrderExample
example
);
COrder
selectByPrimaryKey
(
String
orderId
);
COrder
VO
selectByPrimaryKey
(
String
orderId
);
int
updateByExampleSelective
(
@Param
(
"record"
)
COrder
record
,
@Param
(
"example"
)
COrderExample
example
);
...
...
src/main/java/com/megagao/production/ssm/mapper/ManufactureMapper.java
浏览文件 @
8e9102f1
...
...
@@ -33,9 +33,9 @@ public interface ManufactureMapper {
int
insertSelective
(
Manufacture
record
);
List
<
Manufacture
>
selectByExample
(
ManufactureExample
example
);
List
<
Manufacture
VO
>
selectByExample
(
ManufactureExample
example
);
Manufacture
selectByPrimaryKey
(
String
manufactureSn
);
Manufacture
VO
selectByPrimaryKey
(
String
manufactureSn
);
int
updateByExampleSelective
(
@Param
(
"record"
)
Manufacture
record
,
@Param
(
"example"
)
ManufactureExample
example
);
...
...
src/main/java/com/megagao/production/ssm/mapper/WorkMapper.java
浏览文件 @
8e9102f1
...
...
@@ -33,9 +33,9 @@ public interface WorkMapper {
int
insertSelective
(
Work
record
);
List
<
Work
>
selectByExample
(
WorkExample
example
);
List
<
Work
VO
>
selectByExample
(
WorkExample
example
);
Work
selectByPrimaryKey
(
String
workId
);
Work
VO
selectByPrimaryKey
(
String
workId
);
int
updateByExampleSelective
(
@Param
(
"record"
)
Work
record
,
@Param
(
"example"
)
WorkExample
example
);
...
...
src/main/java/com/megagao/production/ssm/service/ManufactureService.java
浏览文件 @
8e9102f1
...
...
@@ -5,14 +5,15 @@ import java.util.List;
import
com.megagao.production.ssm.domain.Manufacture
;
import
com.megagao.production.ssm.domain.customize.CustomResult
;
import
com.megagao.production.ssm.domain.customize.EUDataGridResult
;
import
com.megagao.production.ssm.domain.vo.ManufactureVO
;
public
interface
ManufactureService
{
List
<
Manufacture
>
find
()
throws
Exception
;
List
<
Manufacture
VO
>
find
()
throws
Exception
;
EUDataGridResult
getList
(
int
page
,
int
rows
)
throws
Exception
;
Manufacture
get
(
String
string
)
throws
Exception
;
Manufacture
VO
get
(
String
string
)
throws
Exception
;
CustomResult
delete
(
String
string
)
throws
Exception
;
...
...
src/main/java/com/megagao/production/ssm/service/OrderService.java
浏览文件 @
8e9102f1
...
...
@@ -9,11 +9,11 @@ import com.megagao.production.ssm.domain.customize.EUDataGridResult;
public
interface
OrderService
{
List
<
COrder
>
find
()
throws
Exception
;
List
<
COrder
VO
>
find
()
throws
Exception
;
EUDataGridResult
getList
(
int
page
,
int
rows
,
COrderVO
cOrder
)
throws
Exception
;
COrder
get
(
String
string
)
throws
Exception
;
COrder
VO
get
(
String
string
)
throws
Exception
;
CustomResult
delete
(
String
string
)
throws
Exception
;
...
...
src/main/java/com/megagao/production/ssm/service/WorkService.java
浏览文件 @
8e9102f1
...
...
@@ -9,11 +9,11 @@ import com.megagao.production.ssm.domain.Work;
public
interface
WorkService
{
List
<
Work
>
find
()
throws
Exception
;
List
<
Work
VO
>
find
()
throws
Exception
;
EUDataGridResult
getList
(
int
page
,
int
rows
,
WorkVO
work
)
throws
Exception
;
Work
get
(
String
string
)
throws
Exception
;
Work
VO
get
(
String
string
)
throws
Exception
;
CustomResult
delete
(
String
string
)
throws
Exception
;
...
...
src/main/java/com/megagao/production/ssm/service/impl/ManufactureServiceImpl.java
浏览文件 @
8e9102f1
...
...
@@ -37,8 +37,7 @@ public class ManufactureServiceImpl implements ManufactureService{
}
@Override
public
Manufacture
get
(
String
id
)
throws
Exception
{
public
ManufactureVO
get
(
String
id
)
throws
Exception
{
return
manufactureMapper
.
selectByPrimaryKey
(
id
);
}
...
...
@@ -93,7 +92,7 @@ public class ManufactureServiceImpl implements ManufactureService{
}
@Override
public
List
<
Manufacture
>
find
()
throws
Exception
{
public
List
<
Manufacture
VO
>
find
()
throws
Exception
{
ManufactureExample
example
=
new
ManufactureExample
();
return
manufactureMapper
.
selectByExample
(
example
);
}
...
...
src/main/java/com/megagao/production/ssm/service/impl/OrderServiceImpl.java
浏览文件 @
8e9102f1
...
...
@@ -30,7 +30,7 @@ public class OrderServiceImpl implements OrderService {
ProductService
productService
;
@Override
public
List
<
COrder
>
find
()
throws
Exception
{
public
List
<
COrder
VO
>
find
()
throws
Exception
{
COrderExample
example
=
new
COrderExample
();
return
cOrderMapper
.
selectByExample
(
example
);
}
...
...
@@ -51,8 +51,7 @@ public class OrderServiceImpl implements OrderService {
}
@Override
public
COrder
get
(
String
id
)
throws
Exception
{
public
COrderVO
get
(
String
id
)
throws
Exception
{
return
cOrderMapper
.
selectByPrimaryKey
(
id
);
}
...
...
src/main/java/com/megagao/production/ssm/service/impl/WorkServiceImpl.java
浏览文件 @
8e9102f1
...
...
@@ -36,8 +36,7 @@ public class WorkServiceImpl implements WorkService{
}
@Override
public
Work
get
(
String
string
)
throws
Exception
{
public
WorkVO
get
(
String
string
)
throws
Exception
{
return
workMapper
.
selectByPrimaryKey
(
string
);
}
...
...
@@ -92,7 +91,7 @@ public class WorkServiceImpl implements WorkService{
}
@Override
public
List
<
Work
>
find
()
throws
Exception
{
public
List
<
Work
VO
>
find
()
throws
Exception
{
WorkExample
example
=
new
WorkExample
();
return
workMapper
.
selectByExample
(
example
);
}
...
...
src/main/resources/ehcache.xml
0 → 100644
浏览文件 @
8e9102f1
<?xml version="1.0" encoding="UTF-8"?>
<ehcache
updateCheck=
"false"
name=
"shirocache"
>
<diskStore
path=
"java.io.tmpdir"
/>
<!-- 登录记录缓存 锁定10分钟 -->
<cache
name=
"passwordRetryCache"
maxEntriesLocalHeap=
"2000"
eternal=
"false"
timeToIdleSeconds=
"3600"
timeToLiveSeconds=
"0"
overflowToDisk=
"false"
statistics=
"true"
>
</cache>
<cache
name=
"authorizationCache"
maxEntriesLocalHeap=
"2000"
eternal=
"false"
timeToIdleSeconds=
"3600"
timeToLiveSeconds=
"0"
overflowToDisk=
"false"
statistics=
"true"
>
</cache>
<cache
name=
"authenticationCache"
maxEntriesLocalHeap=
"2000"
eternal=
"false"
timeToIdleSeconds=
"3600"
timeToLiveSeconds=
"0"
overflowToDisk=
"false"
statistics=
"true"
>
</cache>
<cache
name=
"shiro-activeSessionCache"
maxEntriesLocalHeap=
"2000"
eternal=
"false"
timeToIdleSeconds=
"3600"
timeToLiveSeconds=
"0"
overflowToDisk=
"false"
statistics=
"true"
>
</cache>
<cache
name=
"shiro_cache"
maxElementsInMemory=
"2000"
maxEntriesLocalHeap=
"2000"
eternal=
"false"
timeToIdleSeconds=
"0"
timeToLiveSeconds=
"0"
maxElementsOnDisk=
"0"
overflowToDisk=
"true"
memoryStoreEvictionPolicy=
"FIFO"
statistics=
"true"
>
</cache>
</ehcache>
\ No newline at end of file
src/main/resources/spring/applicationContext-service.xml
浏览文件 @
8e9102f1
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"http://www.springframework.org/schema/beans"
xmlns:context=
"http://www.springframework.org/schema/context"
xmlns:p=
"http://www.springframework.org/schema/p"
xmlns:aop=
"http://www.springframework.org/schema/aop"
xmlns:tx=
"http://www.springframework.org/schema/tx"
xmlns:context=
"http://www.springframework.org/schema/context"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-4.0.xsd"
>
http://www.springframework.org/schema/context/spring-context-4.0.xsd"
>
<!-- service包扫描 -->
<context:component-scan
base-package=
"com.megagao.production.ssm.service"
/>
...
...
src/main/resources/spring/applicationContext-shiro.xml
浏览文件 @
8e9102f1
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"http://www.springframework.org/schema/beans"
xmlns:context=
"http://www.springframework.org/schema/context"
xmlns:p=
"http://www.springframework.org/schema/p"
xmlns:aop=
"http://www.springframework.org/schema/aop"
xmlns:tx=
"http://www.springframework.org/schema/tx"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-4.0.xsd"
>
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd"
>
<!-- web.xml中shiro的filter对应的bean -->
<!-- Shiro 的Web过滤器 -->
...
...
@@ -58,7 +48,7 @@
<bean
id=
"securityManager"
class=
"org.apache.shiro.web.mgt.DefaultWebSecurityManager"
>
<property
name=
"realm"
ref=
"customRealm"
/>
<!-- 注入缓存管理器 -->
<
property
name=
"cacheManager"
ref=
"cacheManager"
/
>
<
!--<property name="cacheManager" ref="cacheManager"/>--
>
<!-- 注入session管理器 -->
<property
name=
"sessionManager"
ref=
"sessionManager"
/>
<!-- 记住我 -->
...
...
src/main/resources/spring/springmvc-servlet.xml
浏览文件 @
8e9102f1
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns=
"http://www.springframework.org/schema/beans"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:p=
"http://www.springframework.org/schema/p"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:context=
"http://www.springframework.org/schema/context"
xmlns:aop=
"http://www.springframework.org/schema/aop"
xmlns:mvc=
"http://www.springframework.org/schema/mvc"
xsi:schemaLocation=
"http://www.springframework.org/schema/beans
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录