Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-process-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1943d6f0
authored
Sep 11, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]sop流程画布service增加
1 parent
e66c14be
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
313 additions
and
5 deletions
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstBatchService.java
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstLinkService.java
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstNodeBatchService.java
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstNodeService.java
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstService.java
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopTplLinkService.java
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopTplNodeService.java
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstBatchService.java
0 → 100644
View file @
1943d6f
package
cn
.
com
.
glsx
.
process
.
modules
.
service
;
import
cn.com.glsx.process.modules.entity.SopInst
;
import
cn.com.glsx.process.modules.entity.SopInstBatch
;
import
cn.com.glsx.process.modules.mapper.SopInstBatchMapper
;
import
cn.com.glsx.process.modules.mapper.SopInstMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
@Service
public
class
SopInstBatchService
{
@Autowired
private
SopInstBatchMapper
sopInstBatchMapper
;
/**
* 根据id查询
*
* @param batchNo
* @return
*/
private
SopInstBatch
findById
(
String
batchNo
)
{
return
sopInstBatchMapper
.
selectByPrimaryKey
(
batchNo
);
}
/**
* 保存
*
* @param sopInstBatch
* @return
*/
public
int
insert
(
SopInstBatch
sopInstBatch
)
{
return
sopInstBatchMapper
.
insertUseGeneratedKeys
(
sopInstBatch
);
}
/**
* 更新
*
* @param sopInstBatch
* @return
*/
public
boolean
update
(
SopInstBatch
sopInstBatch
)
{
int
i
=
sopInstBatchMapper
.
updateByPrimaryKeySelective
(
sopInstBatch
);
if
(
i
>
0
)
{
return
true
;
}
return
false
;
}
/**
* 根据id删除
*
* @param batchNo
* @return
*/
public
boolean
delete
(
String
batchNo
)
{
int
i
=
sopInstBatchMapper
.
deleteByPrimaryKey
(
batchNo
);
if
(
i
>
0
)
{
return
true
;
}
return
false
;
}
}
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstLinkService.java
0 → 100644
View file @
1943d6f
package
cn
.
com
.
glsx
.
process
.
modules
.
service
;
import
cn.com.glsx.process.modules.entity.SopInstLink
;
import
cn.com.glsx.process.modules.mapper.SopInstLinkMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
@Service
public
class
SopInstLinkService
{
@Autowired
private
SopInstLinkMapper
sopInstMapper
;
/**
* 根据id查询
*
* @param linkId
* @return
*/
private
SopInstLink
findById
(
Integer
linkId
)
{
return
sopInstMapper
.
selectByPrimaryKey
(
linkId
);
}
/**
* 保存
*
* @param sopInstLink
* @return
*/
public
int
insert
(
SopInstLink
sopInstLink
)
{
return
sopInstMapper
.
insertUseGeneratedKeys
(
sopInstLink
);
}
/**
* 更新
*
* @param sopInstLink
* @return
*/
public
boolean
update
(
SopInstLink
sopInstLink
)
{
int
i
=
sopInstMapper
.
updateByPrimaryKeySelective
(
sopInstLink
);
if
(
i
>
0
)
{
return
true
;
}
return
false
;
}
/**
* 根据id删除
*
* @param linkId
* @return
*/
public
boolean
delete
(
Integer
linkId
)
{
int
i
=
sopInstMapper
.
deleteByPrimaryKey
(
linkId
);
if
(
i
>
0
)
{
return
true
;
}
return
false
;
}
}
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstNodeBatchService.java
0 → 100644
View file @
1943d6f
package
cn
.
com
.
glsx
.
process
.
modules
.
service
;
import
cn.com.glsx.process.modules.entity.SopInstNode
;
import
cn.com.glsx.process.modules.entity.SopInstNodeBatch
;
import
cn.com.glsx.process.modules.mapper.SopInstNodeBatchMapper
;
import
cn.com.glsx.process.modules.mapper.SopInstNodeMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
@Service
public
class
SopInstNodeBatchService
{
@Autowired
private
SopInstNodeBatchMapper
sopInstNodeBatchMapper
;
/**
* 根据id查询
*
* @param nodeBatchNo
* @return
*/
private
SopInstNodeBatch
findById
(
String
nodeBatchNo
)
{
return
sopInstNodeBatchMapper
.
selectByPrimaryKey
(
nodeBatchNo
);
}
/**
* 保存
*
* @param sopInstNodeBatch
* @return
*/
public
int
insert
(
SopInstNodeBatch
sopInstNodeBatch
)
{
return
sopInstNodeBatchMapper
.
insertUseGeneratedKeys
(
sopInstNodeBatch
);
}
/**
* 更新
*
* @param sopInstNodeBatch
* @return
*/
public
boolean
update
(
SopInstNodeBatch
sopInstNodeBatch
)
{
int
i
=
sopInstNodeBatchMapper
.
updateByPrimaryKeySelective
(
sopInstNodeBatch
);
if
(
i
>
0
)
{
return
true
;
}
return
false
;
}
/**
* 根据id删除
*
* @param nodeBatchNo
* @return
*/
public
boolean
delete
(
String
nodeBatchNo
)
{
int
i
=
sopInstNodeBatchMapper
.
deleteByPrimaryKey
(
nodeBatchNo
);
if
(
i
>
0
)
{
return
true
;
}
return
false
;
}
}
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstNodeService.java
0 → 100644
View file @
1943d6f
package
cn
.
com
.
glsx
.
process
.
modules
.
service
;
import
cn.com.glsx.process.modules.entity.SopInstNode
;
import
cn.com.glsx.process.modules.mapper.SopInstNodeMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
@Service
public
class
SopInstNodeService
{
@Autowired
private
SopInstNodeMapper
sopInstNodeMapper
;
/**
* 根据id查询
*
* @param instNodeId
* @return
*/
private
SopInstNode
findById
(
Integer
instNodeId
)
{
return
sopInstNodeMapper
.
selectByPrimaryKey
(
instNodeId
);
}
/**
* 保存
*
* @param sopInstNode
* @return
*/
public
int
insert
(
SopInstNode
sopInstNode
)
{
return
sopInstNodeMapper
.
insertUseGeneratedKeys
(
sopInstNode
);
}
/**
* 更新
*
* @param sopInstNode
* @return
*/
public
boolean
update
(
SopInstNode
sopInstNode
)
{
int
i
=
sopInstNodeMapper
.
updateByPrimaryKeySelective
(
sopInstNode
);
if
(
i
>
0
)
{
return
true
;
}
return
false
;
}
/**
* 根据id删除
*
* @param instNodeId
* @return
*/
public
boolean
delete
(
Integer
instNodeId
)
{
int
i
=
sopInstNodeMapper
.
deleteByPrimaryKey
(
instNodeId
);
if
(
i
>
0
)
{
return
true
;
}
return
false
;
}
}
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstService.java
0 → 100644
View file @
1943d6f
package
cn
.
com
.
glsx
.
process
.
modules
.
service
;
import
cn.com.glsx.process.modules.entity.SopInst
;
import
cn.com.glsx.process.modules.mapper.SopInstMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
@Service
public
class
SopInstService
{
@Autowired
private
SopInstMapper
sopInstMapper
;
/**
* 根据id查询
*
* @param instId
* @return
*/
private
SopInst
findById
(
Integer
instId
)
{
return
sopInstMapper
.
selectByPrimaryKey
(
instId
);
}
/**
* 保存
*
* @param sopInst
* @return
*/
public
int
insert
(
SopInst
sopInst
)
{
return
sopInstMapper
.
insertUseGeneratedKeys
(
sopInst
);
}
/**
* 更新
*
* @param sopInst
* @return
*/
public
boolean
update
(
SopInst
sopInst
)
{
int
i
=
sopInstMapper
.
updateByPrimaryKeySelective
(
sopInst
);
if
(
i
>
0
)
{
return
true
;
}
return
false
;
}
/**
* 根据id删除
*
* @param instId
* @return
*/
public
boolean
delete
(
Integer
instId
)
{
int
i
=
sopInstMapper
.
deleteByPrimaryKey
(
instId
);
if
(
i
>
0
)
{
return
true
;
}
return
false
;
}
}
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopTplLinkService.java
View file @
1943d6f
...
@@ -18,7 +18,7 @@ public class SopTplLinkService {
...
@@ -18,7 +18,7 @@ public class SopTplLinkService {
* @return
* @return
*/
*/
private
SopTplLink
findById
(
Integer
linkId
)
{
private
SopTplLink
findById
(
Integer
linkId
)
{
return
this
.
sopTplLinkMapper
.
selectByPrimaryKey
(
linkId
);
return
sopTplLinkMapper
.
selectByPrimaryKey
(
linkId
);
}
}
/**
/**
...
@@ -28,7 +28,7 @@ public class SopTplLinkService {
...
@@ -28,7 +28,7 @@ public class SopTplLinkService {
* @return
* @return
*/
*/
public
int
insert
(
SopTplLink
sopTplLink
)
{
public
int
insert
(
SopTplLink
sopTplLink
)
{
return
this
.
sopTplLinkMapper
.
insertUseGeneratedKeys
(
sopTplLink
);
return
sopTplLinkMapper
.
insertUseGeneratedKeys
(
sopTplLink
);
}
}
/**
/**
...
@@ -38,7 +38,7 @@ public class SopTplLinkService {
...
@@ -38,7 +38,7 @@ public class SopTplLinkService {
* @return
* @return
*/
*/
public
boolean
update
(
SopTplLink
sopTplLink
)
{
public
boolean
update
(
SopTplLink
sopTplLink
)
{
int
i
=
this
.
sopTplLinkMapper
.
updateByPrimaryKeySelective
(
sopTplLink
);
int
i
=
sopTplLinkMapper
.
updateByPrimaryKeySelective
(
sopTplLink
);
if
(
i
>
0
)
{
if
(
i
>
0
)
{
return
true
;
return
true
;
}
}
...
@@ -52,7 +52,7 @@ public class SopTplLinkService {
...
@@ -52,7 +52,7 @@ public class SopTplLinkService {
* @return
* @return
*/
*/
public
boolean
delete
(
Integer
id
)
{
public
boolean
delete
(
Integer
id
)
{
int
i
=
this
.
sopTplLinkMapper
.
deleteByPrimaryKey
(
id
);
int
i
=
sopTplLinkMapper
.
deleteByPrimaryKey
(
id
);
if
(
i
>
0
)
{
if
(
i
>
0
)
{
return
true
;
return
true
;
}
}
...
...
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopTplNodeService.java
View file @
1943d6f
package
cn
.
com
.
glsx
.
process
.
modules
.
service
;
package
cn
.
com
.
glsx
.
process
.
modules
.
service
;
import
cn.com.glsx.process.modules.entity.SopTplLink
;
import
cn.com.glsx.process.modules.entity.SopTplNode
;
import
cn.com.glsx.process.modules.entity.SopTplNode
;
import
cn.com.glsx.process.modules.mapper.SopTplNodeMapper
;
import
cn.com.glsx.process.modules.mapper.SopTplNodeMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment