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
88d1ff4c
Commit
88d1ff4c
authored
Feb 08, 2021
by
fanjr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合作医院接口
parent
54f11104
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
123 additions
and
1 deletion
+123
-1
PdaCouponrecordService.java
...m/cftech/couponrecord/service/PdaCouponrecordService.java
+4
-0
PdaCouponrecordServiceImpl.java
...couponrecord/service/impl/PdaCouponrecordServiceImpl.java
+4
-0
PdaCouponrecordController.java
...om/cftech/couponrecord/web/PdaCouponrecordController.java
+4
-0
HospitalMapper.java
...src/main/java/com/cftech/hospital/dao/HospitalMapper.java
+13
-0
HospitalMapper.xml
.../src/main/java/com/cftech/hospital/dao/HospitalMapper.xml
+14
-0
HospitalVo.java
...e/src/main/java/com/cftech/hospital/model/HospitalVo.java
+13
-0
HospitalService.java
...ain/java/com/cftech/hospital/service/HospitalService.java
+8
-0
HospitalServiceImpl.java
...com/cftech/hospital/service/impl/HospitalServiceImpl.java
+27
-1
MobileHospitalController.java
...ava/com/cftech/hospital/web/MobileHospitalController.java
+36
-0
No files found.
aidea-modules/couponrecord-module/src/main/java/com/cftech/couponrecord/service/PdaCouponrecordService.java
0 → 100644
View file @
88d1ff4c
package
com
.
cftech
.
couponrecord
.
service
;
public
interface
PdaCouponrecordService
{
}
aidea-modules/couponrecord-module/src/main/java/com/cftech/couponrecord/service/impl/PdaCouponrecordServiceImpl.java
0 → 100644
View file @
88d1ff4c
package
com
.
cftech
.
couponrecord
.
service
.
impl
;
public
class
PdaCouponrecordServiceImpl
{
}
aidea-modules/couponrecord-module/src/main/java/com/cftech/couponrecord/web/PdaCouponrecordController.java
0 → 100644
View file @
88d1ff4c
package
com
.
cftech
.
couponrecord
.
web
;
public
class
PdaCouponrecordController
{
}
aidea-modules/hospital-module/src/main/java/com/cftech/hospital/dao/HospitalMapper.java
View file @
88d1ff4c
package
com
.
cftech
.
hospital
.
dao
;
import
com.alibaba.fastjson.JSONObject
;
import
com.cftech.hospital.model.Hospital
;
import
com.cftech.core.generic.GenericDao
;
import
com.cftech.hospital.model.HospitalVo
;
import
java.util.List
;
import
java.util.Map
;
/**
* 合作医院信息Mapper
...
...
@@ -11,4 +16,12 @@ import com.cftech.core.generic.GenericDao;
*/
public
interface
HospitalMapper
extends
GenericDao
<
Hospital
>
{
/**
* 获取合作项目
* 2021年2月8日 Fanjr
* @param vo
* @return
*/
public
List
<
Map
<
String
,
Object
>>
hospitalList
(
HospitalVo
vo
);
}
\ No newline at end of file
aidea-modules/hospital-module/src/main/java/com/cftech/hospital/dao/HospitalMapper.xml
View file @
88d1ff4c
...
...
@@ -213,4 +213,18 @@
set del_flag=1
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"hospitalList"
resultType=
"map"
>
SELECT
id,name,telephone,address,longitude,latitude,province,city
from t_aidea_hospital
where del_flag = 0
<if
test=
"name!=null and name !=''"
>
and name like concat('%',#{name},'%')
</if>
ORDER BY create_time DESC
<if
test=
"page!=null and pageSize !='' and pageSize!=null and page !=''"
>
limit #{page}, #{pageSize}
</if>
</select>
</mapper>
\ No newline at end of file
aidea-modules/hospital-module/src/main/java/com/cftech/hospital/model/HospitalVo.java
0 → 100644
View file @
88d1ff4c
package
com
.
cftech
.
hospital
.
model
;
import
com.cftech.core.poi.ExportConfig
;
import
lombok.Data
;
@Data
public
class
HospitalVo
{
/* 医院名称 */
@ExportConfig
(
value
=
"name"
,
width
=
100
,
showLevel
=
1
)
private
String
name
;
private
Long
page
;
private
Long
pageSize
;
}
aidea-modules/hospital-module/src/main/java/com/cftech/hospital/service/HospitalService.java
View file @
88d1ff4c
package
com
.
cftech
.
hospital
.
service
;
import
com.alibaba.fastjson.JSONObject
;
import
com.cftech.hospital.model.Hospital
;
import
com.cftech.core.generic.GenericService
;
import
com.cftech.hospital.model.HospitalVo
;
/**
* 合作医院信息Service
*
...
...
@@ -10,5 +13,10 @@ import com.cftech.core.generic.GenericService;
*/
public
interface
HospitalService
extends
GenericService
<
Hospital
>
{
/**
* 2021年2月8日
* 获取合作医院列表
*/
JSONObject
hospitalList
(
HospitalVo
vo
);
}
aidea-modules/hospital-module/src/main/java/com/cftech/hospital/service/impl/HospitalServiceImpl.java
View file @
88d1ff4c
package
com
.
cftech
.
hospital
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.cftech.hospital.model.Hospital
;
import
com.cftech.hospital.dao.HospitalMapper
;
import
com.cftech.hospital.model.HospitalVo
;
import
com.cftech.hospital.service.HospitalService
;
import
com.cftech.core.generic.GenericDao
;
import
com.cftech.core.generic.GenericServiceImpl
;
import
com.cftech.core.sql.Conds
;
import
com.cftech.hospital.util.TxMapUtils
;
import
com.cftech.waybill.utils.CloseableHttpEntity
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.Map
;
/**
* 合作医院信息ServiceImpl
*
...
...
@@ -27,5 +34,24 @@ private HospitalMapper hospitalMapper;
public
GenericDao
<
Hospital
>
getGenericMapper
()
{
return
hospitalMapper
;
}
@Override
public
JSONObject
hospitalList
(
HospitalVo
vo
){
JSONObject
rtnJson
=
new
JSONObject
();
try
{
List
<
Map
<
String
,
Object
>>
list
=
hospitalMapper
.
hospitalList
(
vo
);
// CloseableHttpEntity che = TxMapUtils.sendHttpGet("上海市徐汇区漕河泾新兴技术开发区钦州北路1198号智慧园88号楼5层");
if
(
list
!=
null
&&
list
.
size
()>
0
)
{
rtnJson
.
put
(
"errorCode"
,
0
);
rtnJson
.
put
(
"data"
,
list
);
}
else
{
rtnJson
.
put
(
"errorCode"
,
1
);
rtnJson
.
put
(
"errorMsg"
,
"暂无数据"
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
rtnJson
.
put
(
"errorCode"
,
1
);
rtnJson
.
put
(
"errorMsg"
,
"合作医院列表"
+
e
.
getMessage
());
}
return
rtnJson
;
}
}
\ No newline at end of file
aidea-modules/hospital-module/src/main/java/com/cftech/hospital/web/MobileHospitalController.java
0 → 100644
View file @
88d1ff4c
package
com
.
cftech
.
hospital
.
web
;
import
com.alibaba.fastjson.JSONObject
;
import
com.cftech.hospital.model.HospitalVo
;
import
com.cftech.hospital.service.HospitalService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 2021年2月8日
*/
@RestController
@RequestMapping
(
"/mobile/hosp/hospital"
)
public
class
MobileHospitalController
{
@Autowired
private
HospitalService
hospitalService
;
/**
* @Author Fanjr
* @Description 获取医院列表
* @Date 2021年1月29日
* @Param
* @return
**/
@RequestMapping
(
value
=
"/hospitalList"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
},
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
JSONObject
hospitalList
(
HospitalVo
vo
)
{
return
hospitalService
.
hospitalList
(
vo
);
}
}
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