Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
Overview
Overview
Details
Activity
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
base_platform_enterprise
gic-platform-enterprise
Commits
4865592f
Commit
4865592f
authored
May 08, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
申请开票发送短信
parent
0ab7c85c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
0 deletions
+66
-0
BillingPayInfoController.java
...c/enterprise/web/controller/BillingPayInfoController.java
+1
-0
WmStoreSyncController.java
...c/enterprise/web/controller/wm/WmStoreSyncController.java
+65
-0
wm_store_import_template.xls
...main/resources/exceltemplate/wm_store_import_template.xls
+0
-0
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/BillingPayInfoController.java
View file @
4865592f
...
...
@@ -183,6 +183,7 @@ public class BillingPayInfoController {
InvoiceManageDTO
params
=
new
InvoiceManageDTO
();
params
.
setPlatformType
(
EnterprisePlatformTypeEnum
.
GIC
.
getCode
());
params
.
setInvoiceType
(
invoiceType
);
params
.
setInitiator
(
UserDetailUtils
.
getUserDetail
().
getUserId
().
toString
());
params
.
setBillingAmount
(
billingAmount
);
params
.
setEnterpriseId
(
enterpriseId
);
params
.
setEnterpriseName
(
userDetail
.
getEnterpriseInfo
().
getEnterpriseName
());
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/wm/WmStoreSyncController.java
0 → 100644
View file @
4865592f
package
com
.
gic
.
enterprise
.
web
.
controller
.
wm
;
import
java.io.*
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 同步门店to微盟
* @ClassName: WmStoreSyncController
* @Description:
* @author guojuxing
* @date 2020/5/8 11:19 AM
*/
@RestController
@RequestMapping
(
"/wm-store-sync"
)
public
class
WmStoreSyncController
{
private
static
final
Logger
LOGGER
=
LogManager
.
getLogger
(
WmStoreSyncController
.
class
);
/**
*
* @param request
* @param response
* @throws IOException
*/
@RequestMapping
(
"wm-store-import-template"
)
public
void
wmStoreImportTemplate
(
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
IOException
{
String
fileName
=
" 门店同步模板.xls"
;
OutputStream
fo
=
null
;
InputStream
in
=
null
;
try
{
response
.
setContentType
(
"text/html;charset=gbk"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment; filename="
+
new
String
(
fileName
.
getBytes
(
"gbk"
),
"ISO-8859-1"
));
fo
=
response
.
getOutputStream
();
String
rootPath
=
request
.
getSession
().
getServletContext
().
getRealPath
(
"/"
);
String
filePath
=
"/exceltemplate/wm_store_import_template.xls"
;
in
=
new
FileInputStream
(
new
File
(
rootPath
+
filePath
));
byte
[]
b
=
new
byte
[
1024
];
int
len
=
0
;
while
((
len
=
in
.
read
(
b
))
!=
-
1
)
{
fo
.
write
(
b
,
0
,
len
);
}
fo
.
flush
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
finally
{
if
(
fo
!=
null
)
{
fo
.
close
();
}
if
(
in
!=
null
)
{
in
.
close
();
}
}
}
}
gic-platform-enterprise-web/src/main/resources/exceltemplate/wm_store_import_template.xls
0 → 100644
View file @
4865592f
File added
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