Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gavelinfo
kwell-mes
Commits
615d3baa
Commit
615d3baa
authored
Jun 20, 2022
by
yff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交扫码附件接口
parent
85014ca2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
15 deletions
+19
-15
GpfkForBzgxFjController.java
...a/com/gavel/kwell/controller/GpfkForBzgxFjController.java
+4
-3
GpfkfjService.java
.../src/main/java/com/gavel/kwell/service/GpfkfjService.java
+2
-2
GpfkfjServiceImpl.java
.../java/com/gavel/kwell/service/impl/GpfkfjServiceImpl.java
+13
-10
No files found.
gavel/src/main/java/com/gavel/kwell/controller/GpfkForBzgxFjController.java
View file @
615d3baa
...
@@ -24,9 +24,9 @@ public class GpfkForBzgxFjController extends BaseController {
...
@@ -24,9 +24,9 @@ public class GpfkForBzgxFjController extends BaseController {
private
GpfkfjService
gpfkfjService
;
private
GpfkfjService
gpfkfjService
;
@ApiOperation
(
value
=
"扫码获取当前工票的操作附件"
)
@ApiOperation
(
value
=
"扫码获取当前工票的操作附件"
)
@RequestMapping
(
value
=
"/queryFjBybzgx/{bzlx}/{type}"
)
@RequestMapping
(
value
=
"/queryFjBybzgx/{
woid}/{
bzlx}/{type}"
)
public
void
doKwellGpfk
(
HttpServletRequest
request
,
HttpServletResponse
response
,
@PathVariable
String
bzlx
,
@PathVariable
String
type
){
public
void
doKwellGpfk
(
HttpServletRequest
request
,
HttpServletResponse
response
,
@PathVariable
String
woid
,
@PathVariable
String
bzlx
,
@PathVariable
String
type
){
Attachment
file
=
gpfkfjService
.
queryBzgxFj
(
bzlx
,
type
);
Attachment
file
=
gpfkfjService
.
queryBzgxFj
(
woid
,
bzlx
,
type
);
if
(
file
!=
null
)
{
if
(
file
!=
null
)
{
FileInputStream
fileInputStream
=
attachmentService
.
download
(
file
.
getId
());
FileInputStream
fileInputStream
=
attachmentService
.
download
(
file
.
getId
());
if
(
fileInputStream
!=
null
)
{
if
(
fileInputStream
!=
null
)
{
...
@@ -35,4 +35,5 @@ public class GpfkForBzgxFjController extends BaseController {
...
@@ -35,4 +35,5 @@ public class GpfkForBzgxFjController extends BaseController {
}
}
}
}
}
}
gavel/src/main/java/com/gavel/kwell/service/GpfkfjService.java
View file @
615d3baa
...
@@ -9,7 +9,7 @@ import com.gavel.common.base.service.BaseEditService;
...
@@ -9,7 +9,7 @@ import com.gavel.common.base.service.BaseEditService;
public
interface
GpfkfjService
extends
BaseEditService
{
public
interface
GpfkfjService
extends
BaseEditService
{
public
Attachment
queryBzgxFj
(
String
bzgxid
,
String
type
);
public
Attachment
queryBzgxFj
(
String
woid
,
String
bzgxid
,
String
type
);
public
void
checkGxfjIfFitRule
(
MultipartFile
multipartFile
,
String
folderorpath
,
String
groupid
);
public
void
checkGxfjIfFitRule
(
MultipartFile
multipartFile
,
String
folderorpath
,
String
groupid
);
}
}
gavel/src/main/java/com/gavel/kwell/service/impl/GpfkfjServiceImpl.java
View file @
615d3baa
...
@@ -15,6 +15,8 @@ import com.gavel.common.attachment.service.AttachmentService;
...
@@ -15,6 +15,8 @@ import com.gavel.common.attachment.service.AttachmentService;
import
com.gavel.common.base.service.impl.BaseEditServiceImpl
;
import
com.gavel.common.base.service.impl.BaseEditServiceImpl
;
import
com.gavel.gygl.dao.BzgxDao
;
import
com.gavel.gygl.dao.BzgxDao
;
import
com.gavel.gygl.persistent.Bzgx
;
import
com.gavel.gygl.persistent.Bzgx
;
import
com.gavel.gygl.vo.GylxVO
;
import
com.gavel.kwell.dao.GpfkDao
;
import
com.gavel.kwell.service.GpfkfjService
;
import
com.gavel.kwell.service.GpfkfjService
;
...
@@ -28,13 +30,13 @@ public class GpfkfjServiceImpl extends BaseEditServiceImpl implements GpfkfjServ
...
@@ -28,13 +30,13 @@ public class GpfkfjServiceImpl extends BaseEditServiceImpl implements GpfkfjServ
private
AttachmentService
attachmentService
;
private
AttachmentService
attachmentService
;
@Autowired
@Autowired
private
BzgxDao
bzgx
Dao
;
private
GpfkDao
gpfk
Dao
;
private
static
final
String
ZDS1_FLODER
=
"gylx"
;
private
static
final
String
ZDS1_FLODER
=
"gylx
\\gyzyzdso
"
;
private
static
final
String
ZDS2_FLODER
=
"
bzg
x\\gyzyzdss"
;
private
static
final
String
ZDS2_FLODER
=
"
gyl
x\\gyzyzdss"
;
private
static
final
String
SP_FLODER
=
"
bzg
x\\gyzyzdssp"
;
private
static
final
String
SP_FLODER
=
"
gyl
x\\gyzyzdssp"
;
private
static
final
String
ZDS1_BZ
=
"O"
;
private
static
final
String
ZDS1_BZ
=
"O"
;
private
static
final
String
ZDS2_BZ
=
"T"
;
private
static
final
String
ZDS2_BZ
=
"T"
;
private
static
final
String
SP_BZ
=
"M"
;
private
static
final
String
SP_BZ
=
"M"
;
...
@@ -45,23 +47,24 @@ public class GpfkfjServiceImpl extends BaseEditServiceImpl implements GpfkfjServ
...
@@ -45,23 +47,24 @@ public class GpfkfjServiceImpl extends BaseEditServiceImpl implements GpfkfjServ
@Override
@Override
public
Attachment
queryBzgxFj
(
String
bzgxid
,
String
type
)
{
public
Attachment
queryBzgxFj
(
String
woid
,
String
bzgxid
,
String
type
)
{
Bzgx
bzgxVo
=
bzgxDao
.
queryById
(
Bzgx
.
class
,
bzgxid
);
GylxVO
gylxVO
=
gpfkDao
.
queryKwellWoStandGylx
(
woid
,
bzgxid
);
if
(
bzgxVo
!=
null
&&
StringUtils
.
isNotEmpty
(
type
))
{
// Bzgx bzgxVo = bzgxDao.queryById(Bzgx.class, bzgxid);
if
(
gylxVO
!=
null
&&
StringUtils
.
isNotEmpty
(
type
))
{
if
(
type
.
equals
(
ZDS1_BZ
))
{
if
(
type
.
equals
(
ZDS1_BZ
))
{
List
<
Attachment
>
list
=
attachmentService
.
getAttachmentAndSubFolder
(
bzgxVo
.
getId
(),
ZDS1_FLODER
);
List
<
Attachment
>
list
=
attachmentService
.
getAttachmentAndSubFolder
(
gylxVO
.
getId
(),
ZDS1_FLODER
);
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
return
list
.
get
(
0
);
return
list
.
get
(
0
);
}
}
}
}
else
if
(
type
.
equals
(
ZDS2_BZ
))
{
else
if
(
type
.
equals
(
ZDS2_BZ
))
{
List
<
Attachment
>
list
=
attachmentService
.
getAttachmentAndSubFolder
(
bzgxVo
.
getId
(),
ZDS2_FLODER
);
List
<
Attachment
>
list
=
attachmentService
.
getAttachmentAndSubFolder
(
gylxVO
.
getId
(),
ZDS2_FLODER
);
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
return
list
.
get
(
0
);
return
list
.
get
(
0
);
}
}
}
}
else
if
(
type
.
equals
(
SP_BZ
))
{
else
if
(
type
.
equals
(
SP_BZ
))
{
List
<
Attachment
>
list
=
attachmentService
.
getAttachmentAndSubFolder
(
bzgxVo
.
getId
(),
SP_FLODER
);
List
<
Attachment
>
list
=
attachmentService
.
getAttachmentAndSubFolder
(
gylxVO
.
getId
(),
SP_FLODER
);
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
return
list
.
get
(
0
);
return
list
.
get
(
0
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment