Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
Aidea
Project
Project
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
sa_aidea
Aidea
Commits
fd0dcf2e
Commit
fd0dcf2e
authored
Sep 22, 2020
by
谢希宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://106.14.62.141:8081/sa_aidea/aidea
parents
f3c50fdb
f023bc00
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1210 additions
and
0 deletions
+1210
-0
consultSheetform.html
...n/webapp/WEB-INF/views/consultSheet/consultSheetform.html
+194
-0
consultSheetlist.html
...n/webapp/WEB-INF/views/consultSheet/consultSheetlist.html
+285
-0
pom.xml
aidea-modules/consult-module/pom.xml
+8
-0
ConsultSheetMapper.java
.../java/com/cftech/consultsheet/dao/ConsultSheetMapper.java
+15
-0
ConsultSheetMapper.xml
...n/java/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
+201
-0
ConsultSheet.java
...main/java/com/cftech/consultsheet/model/ConsultSheet.java
+76
-0
ConsultSheetService.java
.../com/cftech/consultsheet/service/ConsultSheetService.java
+15
-0
ConsultSheetServiceImpl.java
...ch/consultsheet/service/impl/ConsultSheetServiceImpl.java
+31
-0
ConsultSheetController.java
...a/com/cftech/consultsheet/web/ConsultSheetController.java
+184
-0
ConsultSheetMapper.xml
...lasses/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
+201
-0
No files found.
aidea-modules/consult-module-web/src/main/webapp/WEB-INF/views/consultSheet/consultSheetform.html
0 → 100644
View file @
fd0dcf2e
<!DOCTYPE html>
<!--[if IE 8]>
<html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]>
<html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html>
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<base
href=
"#springUrl('/assets/adminlte/')"
/>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title>
工作台
</title>
<!-- Tell the browser to be responsive to screen width -->
<meta
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
name=
"viewport"
>
<!-- Bootstrap 3.3.5 -->
<link
rel=
"stylesheet"
href=
"bootstrap/css/bootstrap.min.css"
>
<!-- Font Awesome -->
<link
rel=
"stylesheet"
href=
"plugins/font-awesome/css/font-awesome.min.css"
>
<!-- Ionicons -->
<link
rel=
"stylesheet"
href=
"plugins/ionicons/css/ionicons.min.css"
>
<!-- DataTables -->
<link
rel=
"stylesheet"
href=
"plugins/datatables/dataTables.bootstrap.css"
>
<!-- Theme style -->
<link
rel=
"stylesheet"
href=
"dist/css/AdminLTE.min.css"
>
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link
rel=
"stylesheet"
href=
"dist/css/skins/_all-skins.min.css"
>
<!-- iCheck -->
<link
rel=
"stylesheet"
href=
"plugins/iCheck/flat/blue.css"
>
<!-- Date Picker -->
<link
rel=
"stylesheet"
href=
"plugins/datepicker/datepicker3.css"
>
<!-- Daterange picker -->
<link
rel=
"stylesheet"
href=
"plugins/daterangepicker/daterangepicker-bs3.css"
>
<!-- bootstrap wysihtml5 - text editor -->
<link
rel=
"stylesheet"
href=
"plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css"
>
<!--validate css-->
<link
rel=
"stylesheet"
href=
"plugins/jquery-validation/css/validate.css"
>
<!--fileinput css-->
<link
rel=
"stylesheet"
href=
"plugins/bootstrap-fileinput/bootstrap-fileinput.css"
>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<!-- END HEAD -->
<body
class=
"hold-transition skin-blue sidebar-mini"
>
<div
class=
"wrapper"
>
<div
class=
"content-wrapper"
style=
"margin-left:0;"
>
<section
class=
"content-header"
>
<h1>
咨询单管理
<small>
咨询单
</small>
</h1>
<ol
class=
"breadcrumb"
>
<li><a
href=
"#"
><i
class=
"fa fa-dashboard"
></i>
首页
</a></li>
<li><a
class=
"active"
>
咨询单
</a></li>
</ol>
</section>
<!-- Main content -->
<section
class=
"content"
>
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<!-- general form elements disabled -->
<div
class=
"box box-primary"
>
<form
role=
"form"
id=
"myForm"
>
<input
name=
"id"
value=
"$!{data.id}"
hidden=
"true"
/>
<div
class=
"box-body"
>
</div>
<div
class=
"box-footer"
>
#if($shiro.hasPermission("qy:consultSheet:edit"))
<input
class=
"btn btn-primary"
id=
"save"
value=
"保存"
type=
"submit"
>
#end
<a
href=
"#springUrl('/a/consultSheet/list')"
class=
"btn btn-default"
>
取消
</a>
</div>
</form>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<div
class=
"control-sidebar-bg"
></div>
</div>
<!-- ./wrapper -->
<script
src=
"plugins/jQuery/jQuery-2.1.4.min.js"
></script>
<!-- Bootstrap 3.3.5 -->
<script
src=
"bootstrap/js/bootstrap.min.js"
></script>
<!-- DataTables -->
<script
src=
"plugins/datatables/jquery.dataTables.min.js"
></script>
<script
src=
"plugins/datatables/extensions/i18n/lanauage_ch.js"
></script>
<script
src=
"plugins/datatables/dataTables.bootstrap.min.js"
></script>
<!-- SlimScroll -->
<script
src=
"plugins/slimScroll/jquery.slimscroll.min.js"
></script>
<!-- FastClick -->
<script
src=
"plugins/fastclick/fastclick.min.js"
></script>
<!--fileinput js-->
<script
src=
"plugins/bootstrap-fileinput/bootstrap-fileinput.js"
></script>
<!-- AdminLTE App -->
<script
src=
"dist/js/app.min.js"
></script>
<script
src=
"plugins/bootstrap-maxlength/bootstrap-maxlength.min.js"
type=
"text/javascript"
></script>
<script
src=
"plugins/security/sha256.js"
type=
"text/javascript"
></script>
<script
src=
"plugins/jquery-validation/js/jquery.validate.min.js"
></script>
<script
src=
"js/jquery.form.min.js"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"plugins/ueditor-min-1.4.3/ueditor.config.js"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"plugins/ueditor-min-1.4.3/ueditor.all.js"
></script>
<script
type=
"text/javascript"
charset=
"utf-8"
src=
"plugins/ueditor-min-1.4.3/lang/zh-cn/zh-cn.js"
></script>
<script
src=
"common/js/cfapp.js"
></script>
<!-- END PAGE LEVEL PLUGINS -->
<script>
$
().
ready
(
function
()
{
Cfapp
.
init
();
recdTypeAdd
.
init
();
});
var
recdTypeAdd
=
function
()
{
var
initForm
=
function
()
{
var
initFormCtrl
=
function
()
{
bindEvent
();
};
var
bindEvent
=
function
()
{
$
(
"#myForm"
).
validate
({
rules
:
{},
messages
:
{},
submitHandler
:
function
(
form
)
{
$
(
"#save"
).
attr
(
"disabled"
,
true
);
$
.
getJSON
(
"#springUrl('/a/consultSheet/formData')"
,
$
(
"#myForm"
).
serialize
(),
function
(
returnobj
)
{
$
(
"#save"
).
attr
(
"disabled"
,
false
);
if
(
returnobj
.
errorNo
==
2
)
{
//保存成功
Cfapp
.
confirm
({
message
:
"添加成功"
,
btnoktext
:
"继续添加"
,
btncanceltext
:
"关闭"
,
success
:
function
()
{
location
.
href
=
"#springUrl('/a/consultSheet/form')"
;
},
cancel
:
function
()
{
location
.
href
=
"#springUrl('/a/consultSheet/list')"
;
}
});
}
else
if
(
returnobj
.
errorNo
==
0
)
{
//修改成功
Cfapp
.
alert
({
message
:
"更新成功"
,
btntext
:
"确定"
,
success
:
function
()
{
location
.
href
=
"#springUrl('/a/consultSheet/list')"
;
}
});
}
else
{
Cfapp
.
alert
({
message
:
"创建失败"
,
btntext
:
"确定"
,
success
:
function
()
{
location
.
href
=
"#springUrl('/a/consultSheet/list')"
;
}
});
}
});
}
})
}
initFormCtrl
();
}
return
{
//main function to initiate the module
init
:
function
()
{
initForm
();
}
};
}();
</script>
</body>
<!-- END BODY -->
</html>
\ No newline at end of file
aidea-modules/consult-module-web/src/main/webapp/WEB-INF/views/consultSheet/consultSheetlist.html
0 → 100644
View file @
fd0dcf2e
This diff is collapsed.
Click to expand it.
aidea-modules/consult-module/pom.xml
View file @
fd0dcf2e
...
@@ -10,5 +10,13 @@
...
@@ -10,5 +10,13 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
consult-module
</artifactId>
<artifactId>
consult-module
</artifactId>
<dependencies>
<dependency>
<groupId>
com.cftech
</groupId>
<artifactId>
sys-module
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
</project>
</project>
\ No newline at end of file
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/dao/ConsultSheetMapper.java
0 → 100644
View file @
fd0dcf2e
package
com
.
cftech
.
consultsheet
.
dao
;
import
com.cftech.consultsheet.model.ConsultSheet
;
import
com.cftech.core.generic.GenericDao
;
/**
* 咨询单Mapper
*
* @author Licc
* @date: 2020-09-22 12:06
*/
public
interface
ConsultSheetMapper
extends
GenericDao
<
ConsultSheet
>
{
}
\ No newline at end of file
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
0 → 100644
View file @
fd0dcf2e
This diff is collapsed.
Click to expand it.
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/model/ConsultSheet.java
0 → 100644
View file @
fd0dcf2e
package
com
.
cftech
.
consultsheet
.
model
;
import
com.cftech.core.poi.ExportConfig
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 咨询单
*
* @author Licc
* @date: 2020-09-22 12:06
*/
@Data
public
class
ConsultSheet
implements
Serializable
{
/* 主键id */
private
Long
id
;
/* 咨询单编码 */
@ExportConfig
(
value
=
"咨询单编码"
,
width
=
100
,
showLevel
=
1
)
private
Long
consultId
;
/* 用药人name */
@ExportConfig
(
value
=
"用药人name"
,
width
=
100
,
showLevel
=
1
)
private
String
userName
;
/* 身份证号 */
@ExportConfig
(
value
=
"身份证号"
,
width
=
100
,
showLevel
=
1
)
private
String
numberId
;
/* 出生年月 */
@ExportConfig
(
value
=
"出生年月"
,
width
=
100
,
showLevel
=
1
)
private
Date
benebitId
;
/* 性别 */
@ExportConfig
(
value
=
"性别"
,
width
=
100
,
showLevel
=
1
)
private
Long
sex
;
/* 手机号 */
@ExportConfig
(
value
=
"手机号"
,
width
=
100
,
showLevel
=
1
)
private
String
iPhone
;
/* 疾病史 */
@ExportConfig
(
value
=
"疾病史"
,
width
=
100
,
showLevel
=
1
)
private
String
pastRecords
;
/* 处方单 */
@ExportConfig
(
value
=
"处方单"
,
width
=
100
,
showLevel
=
1
)
private
String
Prescription
;
/* 药师id */
@ExportConfig
(
value
=
"药师id"
,
width
=
100
,
showLevel
=
1
)
private
Long
doctorId
;
/* 客服id */
@ExportConfig
(
value
=
"客服id"
,
width
=
100
,
showLevel
=
1
)
private
Long
customerId
;
/* 病情描述 */
@ExportConfig
(
value
=
"病情描述"
,
width
=
100
,
showLevel
=
1
)
private
Long
illness
;
/* 所属的账号 */
private
Long
accountsId
;
/* 删除标识 */
private
boolean
delFlag
;
/* 状态 */
private
String
status
;
/* 创建时间 */
private
Date
createTime
;
/* 更新时间 */
private
Date
updateTime
;
/* 备注 */
private
String
description
;
/* 创建人 */
private
Long
createBy
;
/* 更新人 */
private
Long
updateBy
;
public
ConsultSheet
()
{
this
.
delFlag
=
false
;
this
.
status
=
"0"
;
}
}
\ No newline at end of file
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/service/ConsultSheetService.java
0 → 100644
View file @
fd0dcf2e
package
com
.
cftech
.
consultsheet
.
service
;
import
com.cftech.consultsheet.model.ConsultSheet
;
import
com.cftech.core.generic.GenericService
;
/**
* 咨询单Service
*
* @author Licc
* @date: 2020-09-22 12:06
*/
public
interface
ConsultSheetService
extends
GenericService
<
ConsultSheet
>
{
}
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/service/impl/ConsultSheetServiceImpl.java
0 → 100644
View file @
fd0dcf2e
package
com
.
cftech
.
consultsheet
.
service
.
impl
;
import
com.cftech.consultsheet.model.ConsultSheet
;
import
com.cftech.consultsheet.service.ConsultSheetService
;
import
com.cftech.core.generic.GenericDao
;
import
com.cftech.core.generic.GenericServiceImpl
;
import
com.cftech.core.sql.Conds
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.stereotype.Service
;
/**
* 咨询单ServiceImpl
*
* @author Licc
* @date: 2020-09-22 12:06
*/
@Service
(
"consultSheetService"
)
public
class
ConsultSheetServiceImpl
<
ConsultSheetMapper
>
extends
GenericServiceImpl
<
ConsultSheet
>
implements
ConsultSheetService
{
@Autowired
@Qualifier
(
"consultSheetMapper"
)
private
ConsultSheetMapper
consultSheetMapper
;
@Override
public
GenericDao
<
ConsultSheet
>
getGenericMapper
()
{
return
(
GenericDao
<
ConsultSheet
>)
consultSheetMapper
;
}
}
\ No newline at end of file
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/web/ConsultSheetController.java
0 → 100644
View file @
fd0dcf2e
package
com
.
cftech
.
consultsheet
.
web
;
import
com.alibaba.fastjson.JSONObject
;
import
com.cftech.consultsheet.model.ConsultSheet
;
import
com.cftech.consultsheet.service.ConsultSheetService
;
import
com.cftech.core.poi.ExcelKit
;
import
com.cftech.core.scope.OrderType
;
import
com.cftech.core.sql.Conds
;
import
com.cftech.core.sql.Sort
;
import
com.cftech.core.util.Constants
;
import
com.cftech.sys.security.UserUtils
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.File
;
import
java.io.IOException
;
import
java.util.List
;
/**
* 咨询单Controller
*
* 权限字符串说明:
* 查看:public static final String CONSULTSHEET_VIEW = "qy:consultSheet:view"
* 查看:public static final String CONSULTSHEET_EDIT = "qy:consultSheet:edit"
*
* @author Strive
* @date: 2020-09-22 12:06
*/
@Slf4j
@Controller
@RequestMapping
(
"/a/consultSheet"
)
public
class
ConsultSheetController
{
public
static
final
String
CONSULTSHEET_VIEW
=
"qy:consultSheet:view"
;
public
static
final
String
CONSULTSHEET_EDIT
=
"qy:consultSheet:edit"
;
@Autowired
private
ConsultSheetService
consultSheetService
;
//列表页面
@RequiresPermissions
(
value
=
CONSULTSHEET_VIEW
)
@RequestMapping
(
"/list"
)
public
String
list
(
HttpServletRequest
request
,
Model
model
)
{
Long
accountId
=
UserUtils
.
getmpaccounts
(
request
);
model
.
addAttribute
(
"accountId"
,
accountId
);
return
"consultSheet/consultSheetlist"
;
}
//编辑页面(新增、修改)
@RequiresPermissions
(
value
=
CONSULTSHEET_VIEW
)
@RequestMapping
(
"/form"
)
public
String
form
(
HttpServletRequest
request
,
String
id
,
Model
model
)
{
if
(!
StringUtils
.
isEmpty
(
id
))
{
ConsultSheet
consultSheet
=
consultSheetService
.
fetchById
(
id
);
model
.
addAttribute
(
"data"
,
consultSheet
);
}
return
"consultSheet/consultSheetform"
;
}
//提交数据(新增、修改)
@RequiresPermissions
(
value
=
CONSULTSHEET_EDIT
)
@RequestMapping
(
"/formData"
)
@ResponseBody
public
JSONObject
formData
(
ConsultSheet
consultSheet
,
Model
model
,
HttpServletRequest
request
)
{
Long
accountsId
=
UserUtils
.
getmpaccounts
(
request
);
JSONObject
rtnJson
=
new
JSONObject
();
try
{
if
(
consultSheet
!=
null
&&
consultSheet
.
getId
()
!=
null
)
{
consultSheet
.
setUpdateBy
(
UserUtils
.
getUser
().
getId
());
consultSheetService
.
update
(
consultSheet
);
rtnJson
.
put
(
"errorNo"
,
0
);
}
else
{
consultSheet
.
setAccountsId
(
accountsId
);
consultSheet
.
setDelFlag
(
false
);
consultSheet
.
setAccountsId
(
UserUtils
.
getmpaccounts
(
request
));
consultSheet
.
setCreateBy
(
UserUtils
.
getUser
().
getId
());
consultSheet
.
setUpdateBy
(
UserUtils
.
getUser
().
getId
());
consultSheetService
.
save
(
consultSheet
);
rtnJson
.
put
(
"errorNo"
,
2
);
}
}
catch
(
Exception
e
)
{
rtnJson
.
put
(
"errorNo"
,
1
);
}
return
rtnJson
;
}
//获取列表数据
@RequiresPermissions
(
value
=
CONSULTSHEET_VIEW
)
@RequestMapping
(
value
=
"/listData"
)
@ResponseBody
public
JSONObject
listData
(
int
iDisplayStart
,
int
iDisplayLength
,
ConsultSheet
consultSheet
,
HttpServletRequest
request
)
{
Long
accountsId
=
UserUtils
.
getmpaccounts
(
request
);
Conds
conds
=
new
Conds
();
conds
.
equal
(
"del_flag"
,
Constants
.
DEL_FLAG_0
);
conds
.
equal
(
"accounts_id"
,
accountsId
);
Sort
sort
=
new
Sort
(
"create_time"
,
OrderType
.
DESC
);
List
<
ConsultSheet
>
list
=
consultSheetService
.
fetchSearchByPage
(
conds
,
sort
,
iDisplayStart
,
iDisplayLength
);
Integer
counts
=
consultSheetService
.
count
(
conds
);
JSONObject
rtnJson
=
new
JSONObject
();
rtnJson
.
put
(
"iTotalRecords"
,
counts
);
rtnJson
.
put
(
"iTotalDisplayRecords"
,
counts
);
rtnJson
.
put
(
"aaData"
,
list
);
return
rtnJson
;
}
//删除数据
@RequiresPermissions
(
value
=
CONSULTSHEET_EDIT
)
@RequestMapping
(
"/delete"
)
@ResponseBody
public
JSONObject
delete
(
String
id
)
{
JSONObject
rtnJosn
=
new
JSONObject
();
try
{
consultSheetService
.
delete
(
id
);
rtnJosn
.
put
(
"errorNo"
,
0
);
}
catch
(
Exception
e
)
{
rtnJosn
.
put
(
"errorNo"
,
1
);
}
return
rtnJosn
;
}
@RequestMapping
(
"/exportExcel"
)
@RequiresPermissions
(
value
=
CONSULTSHEET_VIEW
)
public
void
exportExcel
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
Long
accountId
=
UserUtils
.
getmpaccounts
(
request
);
Sort
sort
=
new
Sort
(
"create_time"
,
OrderType
.
ASC
);
Conds
conds
=
new
Conds
();
conds
.
equal
(
"del_flag"
,
0
);
conds
.
equal
(
"accounts_id"
,
accountId
);
List
<
ConsultSheet
>
list
=
consultSheetService
.
fetchSearchByPage
(
conds
,
sort
,
0
,
0
);
ExcelKit
.
$Export
(
ConsultSheet
.
class
,
response
).
toExcel
(
list
,
"咨询单信息"
);
}
@RequestMapping
(
"/templateExcel"
)
@RequiresPermissions
(
value
=
CONSULTSHEET_VIEW
)
public
void
templateExcel
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
ExcelKit
.
$Export
(
ConsultSheet
.
class
,
response
).
toExcel
(
null
,
"咨询单信息"
);
}
@RequestMapping
(
"/importExcel"
)
@RequiresPermissions
(
value
=
CONSULTSHEET_EDIT
)
public
String
importExcel
(
HttpServletRequest
request
,
MultipartFile
file
,
Model
model
)
{
Long
accountId
=
UserUtils
.
getmpaccounts
(
request
);
if
(
file
==
null
)
{
return
list
(
request
,
model
);
}
// 构造临时路径来存储上传的文件
String
uploadPath
=
System
.
getProperty
(
"java.io.tmpdir"
);
File
uploadDir
=
new
File
(
uploadPath
);
if
(!
uploadDir
.
exists
())
{
uploadDir
.
mkdir
();
}
String
fileName
=
file
.
getOriginalFilename
();
String
filePath
=
uploadPath
+
File
.
separator
+
fileName
;
File
storeFile
=
new
File
(
filePath
);
try
{
file
.
transferTo
(
storeFile
);
ExcelKit
.
$Import
().
setEmptyCellValue
(
""
).
readExcel
(
storeFile
,
rowData
->
{
if
(!
StringUtils
.
isEmpty
(
rowData
.
get
(
0
)))
{
ConsultSheet
consultSheet
=
new
ConsultSheet
();
consultSheet
.
setAccountsId
(
accountId
);
consultSheetService
.
save
(
consultSheet
);
}
});
}
catch
(
IOException
e
)
{
log
.
error
(
e
.
getMessage
());
}
return
list
(
request
,
model
);
}
}
aidea-modules/consult-module/target/classes/com/cftech/consultsheet/dao/ConsultSheetMapper.xml
0 → 100644
View file @
fd0dcf2e
This diff is collapsed.
Click to expand it.
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