Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
srm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
aship
srm
Commits
e21515cc
Commit
e21515cc
authored
Aug 27, 2019
by
顾俭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aship/aship#5 防伪码功能-调整:remove api permisstion
parent
0f7e1144
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
BarcodeController.java
.../java/com/i1/srm/purchaseOrder/web/BarcodeController.java
+3
-3
PoDtlFileController.java
...ava/com/i1/srm/purchaseOrder/web/PoDtlFileController.java
+1
-1
PoMstFileController.java
...ava/com/i1/srm/purchaseOrder/web/PoMstFileController.java
+1
-1
No files found.
src/main/java/com/i1/srm/purchaseOrder/web/BarcodeController.java
View file @
e21515cc
...
@@ -46,20 +46,20 @@ public class BarcodeController {
...
@@ -46,20 +46,20 @@ public class BarcodeController {
private
Logger
logger
=
LoggerFactory
.
getLogger
(
BarcodeController
.
class
);
private
Logger
logger
=
LoggerFactory
.
getLogger
(
BarcodeController
.
class
);
@RequestMapping
(
value
=
"/status"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/status"
,
method
=
RequestMethod
.
GET
)
@ResourcePermission
(
values
=
{
Resource
.
GET_BARCODE_STATUS
})
//
@ResourcePermission(values = {Resource.GET_BARCODE_STATUS})
public
SyncResponse
getBarCodeStatus
(
@RequestParam
String
factoryUid
,
@RequestParam
String
barcode
)
throws
IOneWebRestfulException
{
public
SyncResponse
getBarCodeStatus
(
@RequestParam
String
factoryUid
,
@RequestParam
String
barcode
)
throws
IOneWebRestfulException
{
return
barcodeGetStatusClient
.
getBarcodeStatus
(
factoryUid
,
barcode
);
return
barcodeGetStatusClient
.
getBarcodeStatus
(
factoryUid
,
barcode
);
}
}
@RequestMapping
(
value
=
"/void"
,
method
=
RequestMethod
.
DELETE
)
@RequestMapping
(
value
=
"/void"
,
method
=
RequestMethod
.
DELETE
)
@ResourcePermission
(
values
=
{
Resource
.
VOID_BARCODE
})
//
@ResourcePermission(values = {Resource.VOID_BARCODE})
public
SyncResponse
voidBarcode
(
@RequestParam
String
factoryUid
,
@RequestParam
String
barcode
)
throws
IOneWebRestfulException
{
public
SyncResponse
voidBarcode
(
@RequestParam
String
factoryUid
,
@RequestParam
String
barcode
)
throws
IOneWebRestfulException
{
logger
.
info
(
"作废防伪码{}"
,
barcode
);
logger
.
info
(
"作废防伪码{}"
,
barcode
);
return
barcodeVoidClient
.
voidBarcode
(
factoryUid
,
barcode
);
return
barcodeVoidClient
.
voidBarcode
(
factoryUid
,
barcode
);
}
}
@RequestMapping
(
value
=
"/print"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/print"
,
method
=
RequestMethod
.
GET
)
@ResourcePermission
(
values
=
{
Resource
.
PRINT_BARCODE
})
//
@ResourcePermission(values = {Resource.PRINT_BARCODE})
public
PoBarcodePrintDto
printBarCodeStatus
(
@RequestParam
String
factoryUid
,
@RequestParam
String
barcode
)
throws
IOneWebRestfulException
{
public
PoBarcodePrintDto
printBarCodeStatus
(
@RequestParam
String
factoryUid
,
@RequestParam
String
barcode
)
throws
IOneWebRestfulException
{
List
<
String
>
urls
=
new
ArrayList
<>();
List
<
String
>
urls
=
new
ArrayList
<>();
SyncResponseWithList
responseWithList
=
barCodePrintClient
.
getBarcodePrintUrls
(
SyncResponseWithList
responseWithList
=
barCodePrintClient
.
getBarcodePrintUrls
(
...
...
src/main/java/com/i1/srm/purchaseOrder/web/PoDtlFileController.java
View file @
e21515cc
...
@@ -212,7 +212,7 @@ public class PoDtlFileController extends AbstractController<PoDtlFile, PoDtlFile
...
@@ -212,7 +212,7 @@ public class PoDtlFileController extends AbstractController<PoDtlFile, PoDtlFile
* @return
* @return
* @throws IOneWebRestfulException
* @throws IOneWebRestfulException
*/
*/
@ResourcePermission
(
values
=
{
Resource
.
PRINT_BARCODE
})
//
@ResourcePermission(values = {Resource.PRINT_BARCODE})
@RequestMapping
(
value
=
"/{id}/printBarcode"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/{id}/printBarcode"
,
method
=
RequestMethod
.
GET
)
public
PoBarcodePrintDto
printBarcode
(
@PathVariable
Long
id
)
throws
IOneWebRestfulException
{
public
PoBarcodePrintDto
printBarcode
(
@PathVariable
Long
id
)
throws
IOneWebRestfulException
{
try
{
try
{
...
...
src/main/java/com/i1/srm/purchaseOrder/web/PoMstFileController.java
View file @
e21515cc
...
@@ -57,7 +57,7 @@ public class PoMstFileController extends AbstractController<PoMstFile, PoMstFile
...
@@ -57,7 +57,7 @@ public class PoMstFileController extends AbstractController<PoMstFile, PoMstFile
* @throws IOneWebRestfulException
* @throws IOneWebRestfulException
*/
*/
@RequestMapping
(
value
=
"/genBarcode"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/genBarcode"
,
method
=
RequestMethod
.
POST
)
@ResourcePermission
(
values
=
{
Resource
.
GEN_BARCODE
})
//
@ResourcePermission(values = {Resource.GEN_BARCODE})
@ResponseStatus
(
HttpStatus
.
CREATED
)
@ResponseStatus
(
HttpStatus
.
CREATED
)
public
SyncResponse
getBarCode
(
@RequestBody
PoBarcodeDto
input
)
throws
IOneWebRestfulException
{
public
SyncResponse
getBarCode
(
@RequestBody
PoBarcodeDto
input
)
throws
IOneWebRestfulException
{
try
{
try
{
...
...
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