Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
T
tcm-system
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
TCM
tcm-system
Commits
f68f619b
Commit
f68f619b
authored
Dec 30, 2025
by
tangfang
Browse files
Options
Browse Files
Download
Plain Diff
合并分支
parents
0a784ddc
71c24d00
Changes
106
Show whitespace changes
Inline
Side-by-side
Showing
106 changed files
with
6206 additions
and
1 deletion
+6206
-1
SystemApp.java
src/main/java/com/tcm/SystemApp.java
+0
-1
CarouselDao.java
src/main/java/com/tcm/common/dao/CarouselDao.java
+23
-0
CarouselExtendDao.java
src/main/java/com/tcm/common/dao/CarouselExtendDao.java
+6
-0
CenterDisplayDao.java
src/main/java/com/tcm/common/dao/CenterDisplayDao.java
+21
-0
CompanyDao.java
src/main/java/com/tcm/common/dao/CompanyDao.java
+6
-0
FloorAreaDao.java
src/main/java/com/tcm/common/dao/FloorAreaDao.java
+32
-0
FloorAreaExtendDao.java
src/main/java/com/tcm/common/dao/FloorAreaExtendDao.java
+6
-0
FloorDao.java
src/main/java/com/tcm/common/dao/FloorDao.java
+33
-0
ImageDao.java
src/main/java/com/tcm/common/dao/ImageDao.java
+6
-0
TcmEnumDao.java
src/main/java/com/tcm/common/dao/TcmEnumDao.java
+6
-0
CarouselDaoImpl.java
src/main/java/com/tcm/common/dao/impl/CarouselDaoImpl.java
+38
-0
CarouselExtendDaoImpl.java
...n/java/com/tcm/common/dao/impl/CarouselExtendDaoImpl.java
+14
-0
CenterDisplayDaoImpl.java
...in/java/com/tcm/common/dao/impl/CenterDisplayDaoImpl.java
+30
-0
CompanyDaoImpl.java
src/main/java/com/tcm/common/dao/impl/CompanyDaoImpl.java
+14
-0
FloorAreaDaoImpl.java
src/main/java/com/tcm/common/dao/impl/FloorAreaDaoImpl.java
+48
-0
FloorAreaExtendDaoImpl.java
.../java/com/tcm/common/dao/impl/FloorAreaExtendDaoImpl.java
+14
-0
FloorDaoImpl.java
src/main/java/com/tcm/common/dao/impl/FloorDaoImpl.java
+45
-0
FloorExtendDao.java
src/main/java/com/tcm/common/dao/impl/FloorExtendDao.java
+6
-0
FloorExtendDaoImpl.java
...main/java/com/tcm/common/dao/impl/FloorExtendDaoImpl.java
+13
-0
ImageDaoImpl.java
src/main/java/com/tcm/common/dao/impl/ImageDaoImpl.java
+14
-0
TcmEnumDaoImpl.java
src/main/java/com/tcm/common/dao/impl/TcmEnumDaoImpl.java
+14
-0
AreaService.java
src/main/java/com/tcm/common/service/AreaService.java
+97
-0
CarouselService.java
src/main/java/com/tcm/common/service/CarouselService.java
+45
-0
CenterDisplayService.java
...ain/java/com/tcm/common/service/CenterDisplayService.java
+30
-0
CompanyService.java
src/main/java/com/tcm/common/service/CompanyService.java
+28
-0
ImageService.java
src/main/java/com/tcm/common/service/ImageService.java
+52
-0
TcmEnumService.java
src/main/java/com/tcm/common/service/TcmEnumService.java
+40
-0
AreaServiceImpl.java
...ain/java/com/tcm/common/service/impl/AreaServiceImpl.java
+334
-0
CarouselServiceImpl.java
...java/com/tcm/common/service/impl/CarouselServiceImpl.java
+146
-0
CenterDisplayServiceImpl.java
...com/tcm/common/service/impl/CenterDisplayServiceImpl.java
+78
-0
CompanyServiceImpl.java
.../java/com/tcm/common/service/impl/CompanyServiceImpl.java
+77
-0
ImageServiceImpl.java
...in/java/com/tcm/common/service/impl/ImageServiceImpl.java
+101
-0
TcmEnumServiceImpl.java
.../java/com/tcm/common/service/impl/TcmEnumServiceImpl.java
+66
-0
CommonConstant.java
src/main/java/com/tcm/common/util/CommonConstant.java
+46
-0
AreaController.java
src/main/java/com/tcm/common/web/AreaController.java
+124
-0
CarouselController.java
src/main/java/com/tcm/common/web/CarouselController.java
+66
-0
CenterDisplayController.java
...main/java/com/tcm/common/web/CenterDisplayController.java
+66
-0
CompanyController.java
src/main/java/com/tcm/common/web/CompanyController.java
+57
-0
ImageController.java
src/main/java/com/tcm/common/web/ImageController.java
+65
-0
TcmEnumController.java
src/main/java/com/tcm/common/web/TcmEnumController.java
+58
-0
ProductCategoryDao.java
src/main/java/com/tcm/product/dao/ProductCategoryDao.java
+15
-0
ProductDao.java
src/main/java/com/tcm/product/dao/ProductDao.java
+25
-0
ProductExtendDao.java
src/main/java/com/tcm/product/dao/ProductExtendDao.java
+6
-0
ProductPriceDao.java
src/main/java/com/tcm/product/dao/ProductPriceDao.java
+6
-0
ProductStockDao.java
src/main/java/com/tcm/product/dao/ProductStockDao.java
+6
-0
ProductCategoryDaoImpl.java
...java/com/tcm/product/dao/impl/ProductCategoryDaoImpl.java
+33
-0
ProductDaoImpl.java
src/main/java/com/tcm/product/dao/impl/ProductDaoImpl.java
+47
-0
ProductExtendDaoImpl.java
...n/java/com/tcm/product/dao/impl/ProductExtendDaoImpl.java
+14
-0
ProductPriceDaoImpl.java
...in/java/com/tcm/product/dao/impl/ProductPriceDaoImpl.java
+14
-0
ProductStockDaoImpl.java
...in/java/com/tcm/product/dao/impl/ProductStockDaoImpl.java
+14
-0
ProductCategoryService.java
.../java/com/tcm/product/service/ProductCategoryService.java
+47
-0
ProductService.java
src/main/java/com/tcm/product/service/ProductService.java
+54
-0
ProductCategoryServiceImpl.java
.../tcm/product/service/impl/ProductCategoryServiceImpl.java
+117
-0
ProductServiceImpl.java
...java/com/tcm/product/service/impl/ProductServiceImpl.java
+196
-0
ProductCategoryController.java
...n/java/com/tcm/product/web/ProductCategoryController.java
+67
-0
ProductController.java
src/main/java/com/tcm/product/web/ProductController.java
+77
-0
PositionVo.java
src/main/java/com/tcm/system/position/vo/PositionVo.java
+4
-0
CenterDisplayVo.java
src/main/java/com/tcm/util/area/CenterDisplayVo.java
+138
-0
FloorAreaExtendVo.java
src/main/java/com/tcm/util/area/FloorAreaExtendVo.java
+111
-0
FloorAreaVo.java
src/main/java/com/tcm/util/area/FloorAreaVo.java
+130
-0
FloorExtendVo.java
src/main/java/com/tcm/util/area/FloorExtendVo.java
+97
-0
FloorVo.java
src/main/java/com/tcm/util/area/FloorVo.java
+96
-0
CenterDisplayReqVo.java
src/main/java/com/tcm/util/area/req/CenterDisplayReqVo.java
+6
-0
FloorAreaLoadPageReqVo.java
...in/java/com/tcm/util/area/req/FloorAreaLoadPageReqVo.java
+56
-0
FloorAreaReqVo.java
src/main/java/com/tcm/util/area/req/FloorAreaReqVo.java
+40
-0
FloorLoadPageReqVo.java
src/main/java/com/tcm/util/area/req/FloorLoadPageReqVo.java
+24
-0
FloorReqVo.java
src/main/java/com/tcm/util/area/req/FloorReqVo.java
+58
-0
CenterDisplayHomeLoadResVo.java
...ava/com/tcm/util/area/res/CenterDisplayHomeLoadResVo.java
+38
-0
CenterDisplayLoadResVo.java
...in/java/com/tcm/util/area/res/CenterDisplayLoadResVo.java
+47
-0
CenterDisplayResVo.java
src/main/java/com/tcm/util/area/res/CenterDisplayResVo.java
+16
-0
FloorAreaResVo.java
src/main/java/com/tcm/util/area/res/FloorAreaResVo.java
+77
-0
FloorHomeLoadResVo.java
src/main/java/com/tcm/util/area/res/FloorHomeLoadResVo.java
+39
-0
FloorResVo.java
src/main/java/com/tcm/util/area/res/FloorResVo.java
+60
-0
CarouselExtendVo.java
src/main/java/com/tcm/util/common/CarouselExtendVo.java
+83
-0
CarouselVo.java
src/main/java/com/tcm/util/common/CarouselVo.java
+186
-0
CompanyVo.java
src/main/java/com/tcm/util/common/CompanyVo.java
+181
-0
ImageVo.java
src/main/java/com/tcm/util/common/ImageVo.java
+125
-0
TcmEnumVo.java
src/main/java/com/tcm/util/common/TcmEnumVo.java
+151
-0
VisitorVo.java
src/main/java/com/tcm/util/common/VisitorVo.java
+4
-0
CarouselLoadPageReqVo.java
...n/java/com/tcm/util/common/req/CarouselLoadPageReqVo.java
+54
-0
CarouselReqVo.java
src/main/java/com/tcm/util/common/req/CarouselReqVo.java
+42
-0
CompanyLoadPageReqVo.java
...in/java/com/tcm/util/common/req/CompanyLoadPageReqVo.java
+25
-0
CompanyReqVo.java
src/main/java/com/tcm/util/common/req/CompanyReqVo.java
+6
-0
ImageReqVo.java
src/main/java/com/tcm/util/common/req/ImageReqVo.java
+19
-0
TcmEnumLoadPageReqVo.java
...in/java/com/tcm/util/common/req/TcmEnumLoadPageReqVo.java
+6
-0
TcmEnumReqVo.java
src/main/java/com/tcm/util/common/req/TcmEnumReqVo.java
+6
-0
CarouselResVo.java
src/main/java/com/tcm/util/common/res/CarouselResVo.java
+58
-0
CompanyResVo.java
src/main/java/com/tcm/util/common/res/CompanyResVo.java
+19
-0
ImageResVo.java
src/main/java/com/tcm/util/common/res/ImageResVo.java
+6
-0
TcmEnumResVo.java
src/main/java/com/tcm/util/common/res/TcmEnumResVo.java
+6
-0
DoctorScheduleVo.java
src/main/java/com/tcm/util/doctor/DoctorScheduleVo.java
+166
-0
DoctorVo.java
src/main/java/com/tcm/util/doctor/DoctorVo.java
+124
-0
ProductCategoryExtendVo.java
...in/java/com/tcm/util/product/ProductCategoryExtendVo.java
+97
-0
ProductCategoryVo.java
src/main/java/com/tcm/util/product/ProductCategoryVo.java
+101
-0
ProductExtendVo.java
src/main/java/com/tcm/util/product/ProductExtendVo.java
+170
-0
ProductPriceVo.java
src/main/java/com/tcm/util/product/ProductPriceVo.java
+180
-0
ProductStockVo.java
src/main/java/com/tcm/util/product/ProductStockVo.java
+151
-0
ProductVo.java
src/main/java/com/tcm/util/product/ProductVo.java
+226
-0
ProductCategoryLoadPageReqVo.java
...om/tcm/util/product/req/ProductCategoryLoadPageReqVo.java
+55
-0
ProductCategoryReqVo.java
...n/java/com/tcm/util/product/req/ProductCategoryReqVo.java
+6
-0
ProductExtendReqVo.java
...ain/java/com/tcm/util/product/req/ProductExtendReqVo.java
+6
-0
ProductLoadPageReqVo.java
...n/java/com/tcm/util/product/req/ProductLoadPageReqVo.java
+60
-0
ProductReqVo.java
src/main/java/com/tcm/util/product/req/ProductReqVo.java
+41
-0
ProductCategoryResVo.java
...n/java/com/tcm/util/product/res/ProductCategoryResVo.java
+68
-0
ProductExtendResVo.java
...ain/java/com/tcm/util/product/res/ProductExtendResVo.java
+6
-0
ProductResVo.java
src/main/java/com/tcm/util/product/res/ProductResVo.java
+32
-0
No files found.
src/main/java/com/tcm/SystemApp.java
View file @
f68f619b
...
...
@@ -44,6 +44,5 @@ public class SystemApp implements CommandLineRunner{
@Override
public
void
run
(
String
...
args
)
throws
Exception
{
YzgLanguage
.
get
().
setDefaultLanguage
(
YzgLanguage
.
LANGUAGE_CH
);
System
.
err
.
println
(
"启动成功"
);
}
}
\ No newline at end of file
src/main/java/com/tcm/common/dao/CarouselDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
;
import
com.tcm.util.common.req.CarouselLoadPageReqVo
;
import
com.tcm.util.common.req.CarouselReqVo
;
import
com.tcm.util.common.res.CarouselResVo
;
import
com.yanzuoguang.dao.BaseDao
;
import
com.yanzuoguang.util.vo.PageSizeData
;
public
interface
CarouselDao
extends
BaseDao
{
/**
* 内容加载
* @param carouselReqVo
* @return
*/
CarouselResVo
loadInfo
(
CarouselReqVo
carouselReqVo
);
/**
* 分页加载
* @param req
* @return
*/
PageSizeData
<
CarouselResVo
>
loadByPage
(
CarouselLoadPageReqVo
req
);
}
src/main/java/com/tcm/common/dao/CarouselExtendDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
;
import
com.yanzuoguang.dao.BaseDao
;
public
interface
CarouselExtendDao
extends
BaseDao
{
}
src/main/java/com/tcm/common/dao/CenterDisplayDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
;
import
com.tcm.util.area.CenterDisplayVo
;
import
com.tcm.util.area.req.CenterDisplayReqVo
;
import
com.tcm.util.area.res.CenterDisplayLoadResVo
;
import
com.tcm.util.area.res.CenterDisplayResVo
;
import
com.tcm.util.area.res.FloorAreaResVo
;
import
com.yanzuoguang.dao.BaseDao
;
import
java.util.List
;
public
interface
CenterDisplayDao
extends
BaseDao
{
/**
* 中心加载
* @param centerDisplay
* @return
*/
List
<
CenterDisplayResVo
>
loadByList
(
CenterDisplayVo
centerDisplay
);
}
src/main/java/com/tcm/common/dao/CompanyDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
;
import
com.yanzuoguang.dao.BaseDao
;
public
interface
CompanyDao
extends
BaseDao
{
}
src/main/java/com/tcm/common/dao/FloorAreaDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
;
import
com.tcm.util.area.req.FloorAreaLoadPageReqVo
;
import
com.tcm.util.area.req.FloorAreaReqVo
;
import
com.tcm.util.area.res.FloorAreaResVo
;
import
com.yanzuoguang.dao.BaseDao
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
java.util.List
;
public
interface
FloorAreaDao
extends
BaseDao
{
/**
* 根据排序加载
* @param areaReqVo
* @return
*/
List
<
FloorAreaResVo
>
loadBySort
(
FloorAreaReqVo
areaReqVo
);
/**
* 加载区域信息
* @param areaVo
* @return
*/
FloorAreaResVo
loadInfo
(
FloorAreaReqVo
areaVo
);
/**
* 分页加载区域
* @param req
* @return
*/
PageSizeData
<
FloorAreaResVo
>
loadByPage
(
FloorAreaLoadPageReqVo
req
);
}
src/main/java/com/tcm/common/dao/FloorAreaExtendDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
;
import
com.yanzuoguang.dao.BaseDao
;
public
interface
FloorAreaExtendDao
extends
BaseDao
{
}
src/main/java/com/tcm/common/dao/FloorDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
;
import
com.tcm.util.area.FloorVo
;
import
com.tcm.util.area.req.FloorLoadPageReqVo
;
import
com.tcm.util.area.req.FloorReqVo
;
import
com.tcm.util.area.res.FloorResVo
;
import
com.yanzuoguang.dao.BaseDao
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
java.util.List
;
public
interface
FloorDao
extends
BaseDao
{
/**
* 排序查询
* @param req
* @return
*/
List
<
FloorResVo
>
loadBySort
(
FloorReqVo
req
);
/**
* 分页加载
* @param req
* @return
*/
PageSizeData
<
FloorResVo
>
loadByPage
(
FloorLoadPageReqVo
req
);
/**
* 单独加载
* @param floor
* @return
*/
FloorResVo
loadInfo
(
FloorReqVo
floor
);
}
src/main/java/com/tcm/common/dao/ImageDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
;
import
com.yanzuoguang.dao.BaseDao
;
public
interface
ImageDao
extends
BaseDao
{
}
src/main/java/com/tcm/common/dao/TcmEnumDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
;
import
com.yanzuoguang.dao.BaseDao
;
public
interface
TcmEnumDao
extends
BaseDao
{
}
src/main/java/com/tcm/common/dao/impl/CarouselDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
.
impl
;
import
com.tcm.common.dao.CarouselDao
;
import
com.tcm.util.common.CarouselVo
;
import
com.tcm.util.common.req.CarouselLoadPageReqVo
;
import
com.tcm.util.common.req.CarouselReqVo
;
import
com.tcm.util.common.res.CarouselResVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
org.springframework.stereotype.Component
;
@Component
public
class
CarouselDaoImpl
extends
BaseDaoImpl
implements
CarouselDao
{
private
final
static
String
SQL_LOAD
=
"loadCarousel"
;
@Override
protected
void
init
()
{
register
(
CarouselVo
.
class
);
table
.
add
(
SQL_LOAD
,
"select p.*,pe.title as title,pe.carousel_info as carouselInfo from tcm_carousel as p "
+
"left join tcm_carousel_extend as pe on p.carousel_id = pe.carousel_id where 1=1 {WHERE} order by p.sort"
)
.
add
(
"carousel_id"
,
"and p.carousel_id =?"
)
.
add
(
"carousel_type"
,
"and p.carousel_type =?"
)
.
add
(
"carousel_status"
,
"and p.carousel_status =?"
)
.
add
(
"languageType"
,
"and pe.language_type =?"
)
;
}
@Override
public
CarouselResVo
loadInfo
(
CarouselReqVo
carouselReqVo
)
{
return
this
.
queryFirst
(
CarouselResVo
.
class
,
SQL_LOAD
,
carouselReqVo
);
}
@Override
public
PageSizeData
<
CarouselResVo
>
loadByPage
(
CarouselLoadPageReqVo
req
)
{
return
this
.
queryPage
(
CarouselResVo
.
class
,
req
,
SQL_LOAD
,
req
);
}
}
src/main/java/com/tcm/common/dao/impl/CarouselExtendDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
.
impl
;
import
com.tcm.common.dao.CarouselExtendDao
;
import
com.tcm.util.common.CarouselExtendVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
org.springframework.stereotype.Component
;
@Component
public
class
CarouselExtendDaoImpl
extends
BaseDaoImpl
implements
CarouselExtendDao
{
@Override
protected
void
init
()
{
register
(
CarouselExtendVo
.
class
);
}
}
src/main/java/com/tcm/common/dao/impl/CenterDisplayDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
.
impl
;
import
com.tcm.common.dao.CenterDisplayDao
;
import
com.tcm.util.area.CenterDisplayVo
;
import
com.tcm.util.area.res.CenterDisplayResVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
@Component
public
class
CenterDisplayDaoImpl
extends
BaseDaoImpl
implements
CenterDisplayDao
{
private
static
final
String
SQL_LOAD_BY_LIST
=
"LOAD_BY_LIST"
;
@Override
protected
void
init
()
{
register
(
CenterDisplayVo
.
class
);
table
.
add
(
SQL_LOAD_BY_LIST
,
"select p.*,pi.image_url as iconUrl from tcm_center_display as p "
+
"left join tcm_image as pi on p.display_id on pi.relation_id where 1=1 {WHERE} order by p.sort"
)
.
add
(
"displayId"
,
" AND p.display_id = ?"
)
.
add
(
"title"
,
" AND p.title = ?"
)
;
}
@Override
public
List
<
CenterDisplayResVo
>
loadByList
(
CenterDisplayVo
req
)
{
return
this
.
query
(
CenterDisplayResVo
.
class
,
SQL_LOAD_BY_LIST
,
req
);
}
}
src/main/java/com/tcm/common/dao/impl/CompanyDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
.
impl
;
import
com.tcm.common.dao.CompanyDao
;
import
com.tcm.util.common.CompanyVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
org.springframework.stereotype.Component
;
@Component
public
class
CompanyDaoImpl
extends
BaseDaoImpl
implements
CompanyDao
{
@Override
protected
void
init
()
{
register
(
CompanyVo
.
class
);
}
}
src/main/java/com/tcm/common/dao/impl/FloorAreaDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
.
impl
;
import
com.tcm.common.dao.FloorAreaDao
;
import
com.tcm.util.area.FloorAreaVo
;
import
com.tcm.util.area.req.FloorAreaLoadPageReqVo
;
import
com.tcm.util.area.req.FloorAreaReqVo
;
import
com.tcm.util.area.res.FloorAreaResVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
@Component
public
class
FloorAreaDaoImpl
extends
BaseDaoImpl
implements
FloorAreaDao
{
private
final
String
SQL_LOAD_BY_SORT
=
"loadBySort"
;
@Override
protected
void
init
()
{
register
(
FloorAreaVo
.
class
);
table
.
add
(
SQL_LOAD_BY_SORT
,
"select p.*,pe.area_name as areaName,pe.area_desc as areaDesc,pe.position as position from tcm_floor_area as p "
+
"left join tcm_floor_area_extend as pe on p.area_id =pe.area_id where 1=1 {WHERE} order by sort"
)
.
add
(
"floorId"
,
"and p.floor_id =?"
)
.
add
(
"areaId"
,
"and p.area_id =?"
)
.
add
(
"areaName"
,
"and p.area_name =?"
)
.
add
(
"isFeature"
,
"and p.is_feature =?"
)
.
add
(
"areaStatus"
,
"and p.area_status =?"
)
.
add
(
"createTime"
,
"and p.create_time =?"
)
.
add
(
"languageType"
,
"and pe.language_type =?"
)
;
}
@Override
public
List
<
FloorAreaResVo
>
loadBySort
(
FloorAreaReqVo
req
)
{
return
this
.
query
(
FloorAreaResVo
.
class
,
SQL_LOAD_BY_SORT
,
req
);
}
@Override
public
FloorAreaResVo
loadInfo
(
FloorAreaReqVo
req
)
{
return
this
.
queryFirst
(
FloorAreaResVo
.
class
,
SQL_LOAD_BY_SORT
,
req
);
}
@Override
public
PageSizeData
<
FloorAreaResVo
>
loadByPage
(
FloorAreaLoadPageReqVo
req
)
{
return
this
.
queryPage
(
FloorAreaResVo
.
class
,
req
,
SQL_LOAD_BY_SORT
,
req
);
}
}
src/main/java/com/tcm/common/dao/impl/FloorAreaExtendDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
.
impl
;
import
com.tcm.common.dao.FloorAreaExtendDao
;
import
com.tcm.util.area.FloorAreaExtendVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
org.springframework.stereotype.Component
;
@Component
public
class
FloorAreaExtendDaoImpl
extends
BaseDaoImpl
implements
FloorAreaExtendDao
{
@Override
protected
void
init
()
{
register
(
FloorAreaExtendVo
.
class
);
}
}
src/main/java/com/tcm/common/dao/impl/FloorDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
.
impl
;
import
com.tcm.common.dao.FloorDao
;
import
com.tcm.util.area.FloorVo
;
import
com.tcm.util.area.req.FloorLoadPageReqVo
;
import
com.tcm.util.area.req.FloorReqVo
;
import
com.tcm.util.area.res.FloorResVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
@Component
public
class
FloorDaoImpl
extends
BaseDaoImpl
implements
FloorDao
{
private
static
final
String
SQL_LOAD_BY_SORT
=
"load_by_sort"
;
@Override
protected
void
init
()
{
register
(
FloorVo
.
class
);
table
.
add
(
SQL_LOAD_BY_SORT
,
"select p.*,pe.floor_name as floorName,pe.floor_desc as floorDesc from tcm_floor as p "
+
" left join tcm_floor_extend as pe on p.floor_id = pe.floor_id where 1=1 {WHERE} order by sort"
)
.
add
(
"floorId"
,
"and p.floor_id =?"
)
.
add
(
"floorName"
,
"and p.floor_name =?"
)
.
add
(
"floorStatus"
,
"and p.floor_status =?"
)
.
add
(
"languageType"
,
"and pe.language_type =?"
)
;
}
@Override
public
List
<
FloorResVo
>
loadBySort
(
FloorReqVo
req
)
{
return
this
.
query
(
FloorResVo
.
class
,
SQL_LOAD_BY_SORT
,
req
);
}
@Override
public
PageSizeData
<
FloorResVo
>
loadByPage
(
FloorLoadPageReqVo
req
)
{
return
this
.
queryPage
(
FloorResVo
.
class
,
req
,
SQL_LOAD_BY_SORT
,
req
);
}
@Override
public
FloorResVo
loadInfo
(
FloorReqVo
req
)
{
return
this
.
queryFirst
(
FloorResVo
.
class
,
SQL_LOAD_BY_SORT
,
req
);
}
}
src/main/java/com/tcm/common/dao/impl/FloorExtendDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
.
impl
;
import
com.yanzuoguang.dao.BaseDao
;
public
interface
FloorExtendDao
extends
BaseDao
{
}
src/main/java/com/tcm/common/dao/impl/FloorExtendDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
.
impl
;
import
com.tcm.util.area.FloorExtendVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
org.springframework.stereotype.Component
;
@Component
public
class
FloorExtendDaoImpl
extends
BaseDaoImpl
implements
FloorExtendDao
{
@Override
protected
void
init
()
{
register
(
FloorExtendVo
.
class
);
}
}
src/main/java/com/tcm/common/dao/impl/ImageDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
.
impl
;
import
com.tcm.common.dao.ImageDao
;
import
com.tcm.util.common.ImageVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
org.springframework.stereotype.Component
;
@Component
public
class
ImageDaoImpl
extends
BaseDaoImpl
implements
ImageDao
{
@Override
protected
void
init
()
{
register
(
ImageVo
.
class
);
}
}
src/main/java/com/tcm/common/dao/impl/TcmEnumDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
dao
.
impl
;
import
com.tcm.common.dao.TcmEnumDao
;
import
com.tcm.util.common.TcmEnumVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
org.springframework.stereotype.Component
;
@Component
public
class
TcmEnumDaoImpl
extends
BaseDaoImpl
implements
TcmEnumDao
{
@Override
protected
void
init
()
{
register
(
TcmEnumVo
.
class
);
}
}
src/main/java/com/tcm/common/service/AreaService.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
service
;
import
com.tcm.util.area.req.FloorAreaLoadPageReqVo
;
import
com.tcm.util.area.req.FloorAreaReqVo
;
import
com.tcm.util.area.req.FloorLoadPageReqVo
;
import
com.tcm.util.area.req.FloorReqVo
;
import
com.tcm.util.area.res.FloorAreaResVo
;
import
com.tcm.util.area.res.FloorHomeLoadResVo
;
import
com.tcm.util.area.res.FloorResVo
;
import
com.yanzuoguang.util.vo.PageSizeData
;
public
interface
AreaService
{
/**
* 楼层保存
*
* @param req
* @return
*/
String
floorSave
(
FloorReqVo
req
);
/**
* 楼层加载
*
* @param req
* @return
*/
FloorResVo
floorLoad
(
FloorReqVo
req
);
/**
* 楼层分页查询
*
* @param req
* @return
*/
PageSizeData
<
FloorResVo
>
floorLoadPage
(
FloorLoadPageReqVo
req
);
/**
* 楼层删除
*
* @param req
* @return
*/
String
floorRemove
(
FloorReqVo
req
);
/**
* 区域加载
*
* @param req
* @return
*/
FloorAreaResVo
areaLoad
(
FloorAreaReqVo
req
);
/**
* 区域保存
*
* @param req
* @return
*/
String
areaSave
(
FloorAreaReqVo
req
);
/**
* 区域删除
*
* @param req
* @return
*/
String
areaRemove
(
FloorAreaReqVo
req
);
/**
* 中心展示区
*
* @param req
* @return
*/
FloorHomeLoadResVo
loadCenter
(
FloorReqVo
req
);
/**
* 区域分页
* @param req
* @return
*/
PageSizeData
<
FloorAreaResVo
>
areaLoadPage
(
FloorAreaLoadPageReqVo
req
);
/**
* 楼层上下架
* @param req
* @return
*/
String
floorChangeStatus
(
FloorReqVo
req
);
/**
* 区域上下架
* @param req
* @return
*/
String
areaChangeStatus
(
FloorAreaReqVo
req
);
}
src/main/java/com/tcm/common/service/CarouselService.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
service
;
import
com.tcm.util.area.req.CenterDisplayReqVo
;
import
com.tcm.util.common.req.CarouselLoadPageReqVo
;
import
com.tcm.util.common.req.CarouselReqVo
;
import
com.tcm.util.common.res.CarouselResVo
;
import
com.yanzuoguang.util.vo.PageSizeData
;
public
interface
CarouselService
{
/**
* 内容加载
*
* @param carouselReqVo
* @return
*/
CarouselResVo
load
(
CarouselReqVo
carouselReqVo
);
/**
* 内容保存
* @param req
* @return
*/
String
save
(
CarouselReqVo
req
);
/**
* 内容分页查询
* @param req
* @return
*/
PageSizeData
<
CarouselResVo
>
loadPage
(
CarouselLoadPageReqVo
req
);
/**
* 内容删除
* @param req
* @return
*/
String
remove
(
CarouselReqVo
req
);
/**
* 上下架
* @param req
* @return
*/
String
changeStatus
(
CarouselReqVo
req
);
}
src/main/java/com/tcm/common/service/CenterDisplayService.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
service
;
import
com.tcm.util.area.req.CenterDisplayReqVo
;
import
com.tcm.util.area.res.CenterDisplayHomeLoadResVo
;
import
com.tcm.util.area.res.CenterDisplayResVo
;
import
com.tcm.util.common.req.TcmEnumReqVo
;
import
java.util.List
;
public
interface
CenterDisplayService
{
/**
* 展示区新增
*/
String
save
(
CenterDisplayReqVo
req
);
/**
* 展示区新增
*/
CenterDisplayResVo
load
(
CenterDisplayReqVo
req
);
/**
* 展示区新增
*/
List
<
CenterDisplayResVo
>
loadList
(
CenterDisplayReqVo
req
);
/**
* 展示区新增
*/
String
remove
(
CenterDisplayReqVo
req
);
}
src/main/java/com/tcm/common/service/CompanyService.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
service
;
import
com.tcm.util.common.req.CompanyLoadPageReqVo
;
import
com.tcm.util.common.req.CompanyReqVo
;
import
com.tcm.util.common.res.CompanyResVo
;
import
com.yanzuoguang.util.vo.PageSizeData
;
public
interface
CompanyService
{
/**
* 公司新增
*/
String
save
(
CompanyReqVo
req
);
/**
* 公司加载
*/
CompanyResVo
load
(
CompanyReqVo
req
);
/**
* 公司分页查询
*/
PageSizeData
<
CompanyResVo
>
loadPage
(
CompanyLoadPageReqVo
req
);
/**
* 公司删除
*/
String
remove
(
CompanyReqVo
req
);
}
src/main/java/com/tcm/common/service/ImageService.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
service
;
import
com.tcm.util.common.ImageVo
;
import
com.tcm.util.common.req.ImageReqVo
;
import
com.tcm.util.common.res.ImageResVo
;
import
java.util.List
;
public
interface
ImageService
{
/**
* 图片保存
*
* @param req
* @return
*/
String
save
(
ImageReqVo
req
);
/**
* 图片加载
*
* @param req
* @return
*/
ImageResVo
load
(
ImageReqVo
req
);
/**
* 图片删除
*
* @param req
* @return
*/
String
remove
(
ImageReqVo
req
);
/**
* 首页图片加载
*
* @param req
* @return
*/
List
<
ImageResVo
>
homeBanner
(
ImageReqVo
req
);
/**
* 加载所有图片
*/
List
<
ImageResVo
>
loadList
(
ImageReqVo
req
);
/**
* 批量保存
* @param
*/
String
saveList
(
ImageReqVo
req
);
}
src/main/java/com/tcm/common/service/TcmEnumService.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
service
;
import
com.tcm.util.common.req.TcmEnumLoadPageReqVo
;
import
com.tcm.util.common.req.TcmEnumReqVo
;
import
com.tcm.util.common.res.TcmEnumResVo
;
import
com.yanzuoguang.util.vo.PageSizeData
;
public
interface
TcmEnumService
{
/**
* 枚举保存
*
* @param req
* @return
*/
String
save
(
TcmEnumReqVo
req
);
/**
* 枚举加载
*
* @param req
* @return
*/
TcmEnumResVo
load
(
TcmEnumReqVo
req
);
/**
* 枚举分页
*
* @param req
* @return
*/
PageSizeData
<
TcmEnumResVo
>
loadPage
(
TcmEnumLoadPageReqVo
req
);
/**
* 枚举删除
*
* @param req
* @return
*/
String
remove
(
TcmEnumReqVo
req
);
}
src/main/java/com/tcm/common/service/impl/AreaServiceImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
service
.
impl
;
import
com.tcm.common.dao.FloorAreaDao
;
import
com.tcm.common.dao.FloorAreaExtendDao
;
import
com.tcm.common.dao.FloorDao
;
import
com.tcm.common.dao.impl.FloorExtendDao
;
import
com.tcm.common.service.AreaService
;
import
com.tcm.common.service.CarouselService
;
import
com.tcm.common.service.ImageService
;
import
com.tcm.common.util.CommonConstant
;
import
com.tcm.util.area.FloorAreaExtendVo
;
import
com.tcm.util.area.FloorAreaVo
;
import
com.tcm.util.area.FloorExtendVo
;
import
com.tcm.util.area.FloorVo
;
import
com.tcm.util.area.req.FloorAreaLoadPageReqVo
;
import
com.tcm.util.area.req.FloorAreaReqVo
;
import
com.tcm.util.area.req.FloorLoadPageReqVo
;
import
com.tcm.util.area.req.FloorReqVo
;
import
com.tcm.util.area.res.FloorAreaResVo
;
import
com.tcm.util.area.res.FloorHomeLoadResVo
;
import
com.tcm.util.area.res.FloorResVo
;
import
com.tcm.util.common.req.CarouselReqVo
;
import
com.tcm.util.common.req.ImageReqVo
;
import
com.tcm.util.common.res.CarouselResVo
;
import
com.tcm.util.common.res.ImageResVo
;
import
com.yanzuoguang.util.base.ObjectHelper
;
import
com.yanzuoguang.util.helper.DateHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
AreaServiceImpl
implements
AreaService
{
private
final
FloorDao
floorDao
;
private
final
FloorAreaDao
floorAreaDao
;
private
final
ImageService
imageService
;
private
final
CarouselService
carouselService
;
private
final
FloorExtendDao
floorExtendDao
;
private
final
FloorAreaExtendDao
floorAreaExtendDao
;
public
AreaServiceImpl
(
FloorDao
floorDao
,
FloorAreaDao
floorAreaDao
,
ImageService
imageService
,
CarouselService
carouselService
,
FloorExtendDao
floorExtendDao
,
FloorAreaExtendDao
floorAreaExtendDao
)
{
this
.
floorDao
=
floorDao
;
this
.
floorAreaDao
=
floorAreaDao
;
this
.
imageService
=
imageService
;
this
.
carouselService
=
carouselService
;
this
.
floorExtendDao
=
floorExtendDao
;
this
.
floorAreaExtendDao
=
floorAreaExtendDao
;
}
@Override
public
String
floorSave
(
FloorReqVo
req
)
{
if
(
StringHelper
.
isEmpty
(
req
.
getFloorId
()))
{
FloorVo
floor
=
new
FloorVo
();
String
floorId
=
StringHelper
.
getNewID
();
floor
.
setFloorId
(
floorId
);
ObjectHelper
.
writeWithFrom
(
floor
,
req
);
floor
.
setCreateTime
(
DateHelper
.
getNow
());
floorDao
.
create
(
floor
);
FloorExtendVo
floorExtendVo
=
new
FloorExtendVo
();
floorExtendVo
.
setFloorId
(
floorId
);
ObjectHelper
.
writeWithFrom
(
floorExtendVo
,
req
.
getFloorExtendVo
());
floorExtendVo
.
setFloorExtendId
(
StringHelper
.
getNewID
());
floorExtendDao
.
create
(
floorExtendVo
);
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
floorId
);
imageReqVo
.
setImageList
(
req
.
getImageList
());
imageService
.
saveList
(
imageReqVo
);
return
floorId
;
}
else
{
FloorVo
floor
=
new
FloorVo
();
floor
.
setFloorId
(
req
.
getFloorId
());
FloorVo
load
=
floorDao
.
load
(
floor
,
FloorVo
.
class
);
ObjectHelper
.
writeWithFrom
(
load
,
req
);
floorDao
.
update
(
load
);
FloorExtendVo
floorExtendVo
=
new
FloorExtendVo
();
floorExtendVo
.
setFloorId
(
req
.
getFloorId
());
floorExtendVo
.
setLanguageType
(
req
.
getFloorExtendVo
().
getLanguageType
());
FloorExtendVo
loadExtend
=
floorExtendDao
.
load
(
floorExtendVo
,
FloorExtendVo
.
class
);
if
(
loadExtend
==
null
)
{
floorExtendVo
.
setFloorExtendId
(
StringHelper
.
getNewID
());
floorExtendDao
.
create
(
floorExtendVo
);
}
else
{
ObjectHelper
.
writeWithFrom
(
loadExtend
,
req
.
getFloorExtendVo
());
floorExtendDao
.
update
(
loadExtend
);
}
//删除老图片
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
req
.
getFloorId
());
imageService
.
remove
(
imageReqVo
);
imageReqVo
.
setImageList
(
req
.
getImageList
());
imageService
.
saveList
(
imageReqVo
);
return
req
.
getFloorId
();
}
}
@Override
public
FloorResVo
floorLoad
(
FloorReqVo
req
)
{
FloorReqVo
floor
=
new
FloorReqVo
();
floor
.
setFloorId
(
req
.
getFloorId
());
floor
.
setLanguageType
(
req
.
getLanguageType
()
==
null
?
CommonConstant
.
LANGUAGE_TYPE_CHINESE
:
req
.
getLanguageType
());
FloorResVo
load
=
floorDao
.
loadInfo
(
floor
);
FloorExtendVo
floorExtendVo
=
new
FloorExtendVo
();
floorExtendVo
.
setFloorId
(
req
.
getFloorId
());
floorExtendVo
.
setLanguageType
(
req
.
getLanguageType
()
==
null
?
CommonConstant
.
LANGUAGE_TYPE_CHINESE
:
req
.
getLanguageType
());
load
.
setFloorExtendVo
(
floorExtendDao
.
load
(
floorExtendVo
,
FloorExtendVo
.
class
));
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
load
.
getFloorId
());
load
.
setImageResVoList
(
imageService
.
loadList
(
imageReqVo
));
FloorAreaReqVo
areaReqVo
=
new
FloorAreaReqVo
();
areaReqVo
.
setFloorId
(
req
.
getFloorId
());
areaReqVo
.
setLanguageType
(
req
.
getLanguageType
()
==
null
?
CommonConstant
.
LANGUAGE_TYPE_CHINESE
:
req
.
getLanguageType
());
List
<
FloorAreaResVo
>
floorAreaResVoList
=
floorAreaDao
.
loadBySort
(
areaReqVo
);
FloorAreaExtendVo
areaExtendVo
=
new
FloorAreaExtendVo
();
for
(
FloorAreaResVo
floorAreaResVo
:
floorAreaResVoList
)
{
areaExtendVo
.
setAreaId
(
floorAreaResVo
.
getAreaId
());
floorAreaResVo
.
setAreaExtendVo
(
floorAreaExtendDao
.
load
(
areaExtendVo
,
FloorAreaExtendVo
.
class
));
imageReqVo
.
setRelationId
(
floorAreaResVo
.
getAreaId
());
floorAreaResVo
.
setImageList
(
imageService
.
loadList
(
imageReqVo
));
}
load
.
setFloorAreaVoList
(
floorAreaResVoList
);
return
load
;
}
@Override
public
PageSizeData
<
FloorResVo
>
floorLoadPage
(
FloorLoadPageReqVo
req
)
{
PageSizeData
<
FloorResVo
>
page
=
floorDao
.
loadByPage
(
req
);
for
(
FloorResVo
floorResVo
:
page
.
getList
())
{
FloorExtendVo
floorExtendVo
=
new
FloorExtendVo
();
floorExtendVo
.
setFloorId
(
floorResVo
.
getFloorId
());
floorExtendVo
.
setLanguageType
(
req
.
getLanguageType
()
==
null
?
CommonConstant
.
LANGUAGE_TYPE_CHINESE
:
req
.
getLanguageType
());
floorResVo
.
setFloorExtendVo
(
floorExtendDao
.
load
(
floorExtendVo
,
FloorExtendVo
.
class
));
}
return
page
;
}
@Override
public
String
floorRemove
(
FloorReqVo
req
)
{
//楼层删除
FloorVo
floor
=
new
FloorVo
();
floor
.
setFloorId
(
req
.
getFloorId
());
floorDao
.
remove
(
floor
);
FloorExtendVo
floorExtendVo
=
new
FloorExtendVo
();
floorExtendVo
.
setFloorId
(
req
.
getFloorId
());
floorExtendDao
.
remove
(
floorExtendVo
);
//楼层图片删除
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
req
.
getFloorId
());
imageService
.
remove
(
imageReqVo
);
//区域删除
FloorAreaVo
areaVo
=
new
FloorAreaVo
();
areaVo
.
setFloorId
(
req
.
getFloorId
());
List
<
FloorAreaVo
>
areaList
=
floorAreaDao
.
loadList
(
areaVo
,
FloorAreaVo
.
class
);
for
(
FloorAreaVo
floorAreaVo
:
areaList
)
{
//扩展信息删除
FloorAreaExtendVo
areaExtendVo
=
new
FloorAreaExtendVo
();
areaExtendVo
.
setAreaId
(
floorAreaVo
.
getAreaId
());
floorAreaExtendDao
.
remove
(
areaExtendVo
);
}
floorAreaDao
.
remove
(
areaVo
);
//区域图片删除
for
(
FloorAreaVo
floorAreaVo
:
areaList
)
{
ImageReqVo
areaImageReqVo
=
new
ImageReqVo
();
areaImageReqVo
.
setRelationId
(
floorAreaVo
.
getAreaId
());
imageService
.
remove
(
imageReqVo
);
}
return
req
.
getFloorId
();
}
@Override
public
FloorAreaResVo
areaLoad
(
FloorAreaReqVo
req
)
{
FloorAreaReqVo
areaVo
=
new
FloorAreaReqVo
();
areaVo
.
setAreaId
(
req
.
getAreaId
());
areaVo
.
setLanguageType
(
req
.
getLanguageType
()
==
null
?
CommonConstant
.
LANGUAGE_TYPE_CHINESE
:
req
.
getLanguageType
());
FloorAreaResVo
load
=
floorAreaDao
.
loadInfo
(
areaVo
);
FloorAreaExtendVo
areaExtendVo
=
new
FloorAreaExtendVo
();
areaExtendVo
.
setAreaId
(
req
.
getAreaId
());
areaExtendVo
.
setLanguageType
(
req
.
getLanguageType
()
==
null
?
CommonConstant
.
LANGUAGE_TYPE_CHINESE
:
req
.
getLanguageType
());
load
.
setAreaExtendVo
(
floorAreaExtendDao
.
load
(
areaExtendVo
,
FloorAreaExtendVo
.
class
));
ImageReqVo
imageReq
=
new
ImageReqVo
();
imageReq
.
setRelationId
(
load
.
getAreaId
());
List
<
ImageResVo
>
images
=
imageService
.
loadList
(
imageReq
);
load
.
setImageList
(
images
);
return
load
;
}
@Override
public
String
areaSave
(
FloorAreaReqVo
req
)
{
if
(
StringHelper
.
isEmpty
(
req
.
getAreaId
()))
{
FloorAreaVo
areaVo
=
new
FloorAreaVo
();
String
areaId
=
StringHelper
.
getNewID
();
areaVo
.
setFloorId
(
areaId
);
ObjectHelper
.
writeWithFrom
(
areaVo
,
req
);
areaVo
.
setCreateTime
(
DateHelper
.
getNow
());
floorAreaDao
.
create
(
areaVo
);
FloorAreaExtendVo
areaExtendVo
=
new
FloorAreaExtendVo
();
areaExtendVo
.
setAreaId
(
areaId
);
areaExtendVo
.
setAreaExtendId
(
StringHelper
.
getNewID
());
ObjectHelper
.
writeWithFrom
(
areaExtendVo
,
req
.
getFloorAreaExtendVo
());
floorAreaExtendDao
.
create
(
areaExtendVo
);
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
areaId
);
imageReqVo
.
setImageList
(
req
.
getImageVoList
());
imageService
.
saveList
(
imageReqVo
);
return
areaId
;
}
else
{
FloorAreaVo
areaVo
=
new
FloorAreaVo
();
areaVo
.
setAreaId
(
req
.
getAreaId
());
FloorAreaVo
load
=
floorAreaDao
.
load
(
areaVo
,
FloorAreaVo
.
class
);
ObjectHelper
.
writeWithFrom
(
load
,
req
);
floorAreaDao
.
update
(
load
);
FloorAreaExtendVo
areaExtendVo
=
new
FloorAreaExtendVo
();
areaExtendVo
.
setAreaId
(
req
.
getAreaId
());
areaExtendVo
.
setLanguageType
(
req
.
getFloorAreaExtendVo
().
getLanguageType
());
FloorAreaExtendVo
loadExtend
=
floorAreaExtendDao
.
load
(
areaExtendVo
,
FloorAreaExtendVo
.
class
);
if
(
loadExtend
==
null
)
{
//新增
areaExtendVo
.
setAreaExtendId
(
StringHelper
.
getNewID
());
ObjectHelper
.
writeWithFrom
(
areaExtendVo
,
req
.
getFloorAreaExtendVo
());
floorAreaExtendDao
.
create
(
areaExtendVo
);
}
else
{
ObjectHelper
.
writeWithFrom
(
loadExtend
,
req
.
getFloorAreaExtendVo
());
floorAreaExtendDao
.
update
(
loadExtend
);
}
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
req
.
getAreaId
());
imageService
.
remove
(
imageReqVo
);
imageReqVo
.
setImageList
(
req
.
getImageVoList
());
imageService
.
saveList
(
imageReqVo
);
return
req
.
getFloorId
();
}
}
@Override
public
String
areaRemove
(
FloorAreaReqVo
req
)
{
FloorAreaVo
areaVo
=
new
FloorAreaVo
();
areaVo
.
setAreaId
(
req
.
getAreaId
());
floorAreaDao
.
remove
(
areaVo
);
//扩展删除
FloorAreaExtendVo
areaExtendVo
=
new
FloorAreaExtendVo
();
areaExtendVo
.
setAreaId
(
req
.
getAreaId
());
floorAreaExtendDao
.
remove
(
areaExtendVo
);
//关联图片删除
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
req
.
getAreaId
());
imageService
.
remove
(
imageReqVo
);
return
req
.
getAreaId
();
}
@Override
public
FloorHomeLoadResVo
loadCenter
(
FloorReqVo
req
)
{
FloorHomeLoadResVo
floorHomeLoadResVo
=
new
FloorHomeLoadResVo
();
//内容加载
CarouselReqVo
carouselReqVo
=
new
CarouselReqVo
();
carouselReqVo
.
setCarouselType
(
CommonConstant
.
CAROUSEL_TYPE_CENTER_DISPLAY
);
Integer
languageType
=
req
.
getLanguageType
()
==
null
?
0
:
req
.
getLanguageType
();
carouselReqVo
.
setLanguageType
(
languageType
);
CarouselResVo
carouselVo
=
carouselService
.
load
(
carouselReqVo
);
floorHomeLoadResVo
.
setCarouselVo
(
carouselVo
);
//楼层加载
List
<
FloorResVo
>
floorList
=
floorDao
.
loadBySort
(
req
);
//特殊区加载
FloorAreaReqVo
areaReqVo
=
new
FloorAreaReqVo
();
areaReqVo
.
setIsFeature
(
req
.
getIsFeature
());
areaReqVo
.
setAreaStatus
(
req
.
getAreaStatus
());
areaReqVo
.
setLanguageType
(
languageType
);
List
<
FloorAreaResVo
>
floorAreaList
=
floorAreaDao
.
loadBySort
(
areaReqVo
);
floorHomeLoadResVo
.
setFloorList
(
floorList
);
floorHomeLoadResVo
.
setFloorAreaList
(
floorAreaList
);
return
floorHomeLoadResVo
;
}
@Override
public
PageSizeData
<
FloorAreaResVo
>
areaLoadPage
(
FloorAreaLoadPageReqVo
req
)
{
PageSizeData
<
FloorAreaResVo
>
page
=
floorAreaDao
.
loadByPage
(
req
);
for
(
FloorAreaResVo
floorAreaResVo
:
page
.
getList
())
{
FloorAreaExtendVo
areaExtendVo
=
new
FloorAreaExtendVo
();
areaExtendVo
.
setAreaId
(
floorAreaResVo
.
getAreaId
());
areaExtendVo
.
setLanguageType
(
req
.
getLanguageType
()
==
null
?
CommonConstant
.
LANGUAGE_TYPE_CHINESE
:
req
.
getLanguageType
());
floorAreaResVo
.
setAreaExtendVo
(
floorAreaExtendDao
.
load
(
areaExtendVo
,
FloorAreaExtendVo
.
class
));
}
return
page
;
}
@Override
public
String
floorChangeStatus
(
FloorReqVo
req
)
{
FloorVo
floorVo
=
new
FloorVo
();
floorVo
.
setFloorId
(
req
.
getFloorId
());
FloorVo
load
=
floorDao
.
load
(
floorVo
,
FloorVo
.
class
);
load
.
setFloorStatus
(
req
.
getFloorStatus
());
floorDao
.
update
(
load
);
return
req
.
getFloorId
();
}
@Override
public
String
areaChangeStatus
(
FloorAreaReqVo
req
)
{
FloorAreaVo
areaVo
=
new
FloorAreaVo
();
areaVo
.
setAreaId
(
req
.
getAreaId
());
FloorAreaVo
load
=
floorAreaDao
.
load
(
areaVo
,
FloorAreaVo
.
class
);
load
.
setAreaStatus
(
req
.
getAreaStatus
());
floorAreaDao
.
update
(
load
);
return
req
.
getAreaId
();
}
}
src/main/java/com/tcm/common/service/impl/CarouselServiceImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
service
.
impl
;
import
com.tcm.common.dao.CarouselDao
;
import
com.tcm.common.dao.CarouselExtendDao
;
import
com.tcm.common.service.CarouselService
;
import
com.tcm.common.service.ImageService
;
import
com.tcm.util.common.CarouselExtendVo
;
import
com.tcm.util.common.CarouselVo
;
import
com.tcm.util.common.req.CarouselLoadPageReqVo
;
import
com.tcm.util.common.req.CarouselReqVo
;
import
com.tcm.util.common.req.ImageReqVo
;
import
com.tcm.util.common.res.CarouselResVo
;
import
com.tcm.util.common.res.ImageResVo
;
import
com.yanzuoguang.util.base.ObjectHelper
;
import
com.yanzuoguang.util.helper.DateHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
org.springframework.stereotype.Service
;
@Service
public
class
CarouselServiceImpl
implements
CarouselService
{
private
final
CarouselDao
carouselDao
;
private
final
ImageService
imageService
;
private
final
CarouselExtendDao
carouselExtendDao
;
public
CarouselServiceImpl
(
CarouselDao
carouselDao
,
ImageService
imageService
,
CarouselExtendDao
carouselExtendDao
)
{
this
.
carouselDao
=
carouselDao
;
this
.
imageService
=
imageService
;
this
.
carouselExtendDao
=
carouselExtendDao
;
}
@Override
public
CarouselResVo
load
(
CarouselReqVo
req
)
{
CarouselResVo
load
=
carouselDao
.
loadInfo
(
req
);
if
(
load
!=
null
)
{
CarouselExtendVo
carouselExtend
=
new
CarouselExtendVo
();
carouselExtend
.
setCarouselId
(
load
.
getCarouselId
());
carouselExtend
.
setLanguageType
(
req
.
getLanguageType
());
load
.
setCarouselExtendVo
(
carouselExtendDao
.
load
(
carouselExtend
,
CarouselExtendVo
.
class
));
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
load
.
getCarouselId
());
load
.
setImageList
(
imageService
.
loadList
(
imageReqVo
));
}
return
load
;
}
@Override
public
String
save
(
CarouselReqVo
req
)
{
if
(
StringHelper
.
isEmpty
(
req
.
getCarouselId
()))
{
CarouselVo
carousel
=
new
CarouselVo
();
String
carouselId
=
StringHelper
.
getNewID
();
ObjectHelper
.
writeWithFrom
(
carousel
,
req
);
carousel
.
setCarouselId
(
carouselId
);
carousel
.
setPushTime
(
DateHelper
.
getNow
());
carousel
.
setCreateTime
(
DateHelper
.
getNow
());
carouselDao
.
create
(
carousel
);
CarouselExtendVo
carouselExtend
=
new
CarouselExtendVo
();
carouselExtend
.
setCarouselId
(
carouselId
);
carouselExtend
.
setCarouselExtendId
(
StringHelper
.
getNewID
());
ObjectHelper
.
writeWithFrom
(
carouselExtend
,
req
.
getCarouselExtendVo
());
carouselExtendDao
.
create
(
carouselExtend
);
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
carouselId
);
imageReqVo
.
setImageList
(
req
.
getImageList
());
imageService
.
saveList
(
imageReqVo
);
return
carouselId
;
}
else
{
CarouselVo
carousel
=
new
CarouselVo
();
carousel
.
setCarouselId
(
req
.
getCarouselId
());
CarouselVo
load
=
carouselDao
.
load
(
carousel
,
CarouselVo
.
class
);
ObjectHelper
.
writeWithFrom
(
load
,
req
);
load
.
setUpdateTime
(
DateHelper
.
getNow
());
carouselDao
.
update
(
load
);
CarouselExtendVo
carouselExtend
=
new
CarouselExtendVo
();
carouselExtend
.
setCarouselId
(
req
.
getCarouselId
());
carouselExtend
.
setLanguageType
(
req
.
getCarouselExtendVo
().
getLanguageType
());
CarouselExtendVo
loadExtend
=
carouselExtendDao
.
load
(
carouselExtend
,
CarouselExtendVo
.
class
);
if
(
StringHelper
.
isEmpty
(
loadExtend
))
{
//新增
carouselExtend
.
setCarouselExtendId
(
StringHelper
.
getNewID
());
ObjectHelper
.
writeWithFrom
(
carouselExtend
,
req
.
getCarouselExtendVo
());
carouselExtendDao
.
create
(
carouselExtend
);
}
else
{
ObjectHelper
.
writeWithFrom
(
loadExtend
,
req
.
getCarouselExtendVo
());
carouselExtendDao
.
update
(
loadExtend
);
}
//删除老数据
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
req
.
getCarouselId
());
imageService
.
remove
(
imageReqVo
);
//保存图片
imageReqVo
.
setImageList
(
req
.
getImageList
());
imageService
.
saveList
(
imageReqVo
);
return
req
.
getCarouselId
();
}
}
@Override
public
PageSizeData
<
CarouselResVo
>
loadPage
(
CarouselLoadPageReqVo
req
)
{
PageSizeData
<
CarouselResVo
>
page
=
carouselDao
.
loadByPage
(
req
);
CarouselExtendVo
carouselExtend
=
new
CarouselExtendVo
();
for
(
CarouselResVo
carouselResVo
:
page
.
getList
())
{
carouselExtend
.
setCarouselId
(
carouselResVo
.
getCarouselId
());
carouselExtend
.
setLanguageType
(
req
.
getLanguageType
());
carouselResVo
.
setCarouselExtendVo
(
carouselExtendDao
.
load
(
carouselExtend
,
CarouselExtendVo
.
class
));
}
return
page
;
}
@Override
public
String
remove
(
CarouselReqVo
req
)
{
CarouselVo
carousel
=
new
CarouselVo
();
carousel
.
setCarouselId
(
req
.
getCarouselId
());
carouselDao
.
remove
(
carousel
);
CarouselExtendVo
carouselExtend
=
new
CarouselExtendVo
();
carouselExtend
.
setCarouselId
(
req
.
getCarouselId
());
carouselExtendDao
.
remove
(
carouselExtend
);
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
req
.
getCarouselId
());
imageService
.
remove
(
imageReqVo
);
return
req
.
getCarouselId
();
}
@Override
public
String
changeStatus
(
CarouselReqVo
req
)
{
CarouselVo
carousel
=
new
CarouselVo
();
carousel
.
setCarouselId
(
req
.
getCarouselId
());
CarouselVo
load
=
carouselDao
.
load
(
carousel
,
CarouselVo
.
class
);
load
.
setCarouselStatus
(
req
.
getCarouselStatus
());
carouselDao
.
update
(
load
);
return
req
.
getCarouselId
();
}
}
src/main/java/com/tcm/common/service/impl/CenterDisplayServiceImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
service
.
impl
;
import
com.tcm.common.dao.CenterDisplayDao
;
import
com.tcm.common.dao.ImageDao
;
import
com.tcm.common.service.CenterDisplayService
;
import
com.tcm.common.service.ImageService
;
import
com.tcm.util.area.CenterDisplayVo
;
import
com.tcm.util.area.req.CenterDisplayReqVo
;
import
com.tcm.util.area.res.CenterDisplayResVo
;
import
com.tcm.util.common.req.ImageReqVo
;
import
com.yanzuoguang.util.base.ObjectHelper
;
import
com.yanzuoguang.util.helper.DateHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
CenterDisplayServiceImpl
implements
CenterDisplayService
{
private
final
CenterDisplayDao
centerDisplayDao
;
private
final
ImageService
imageService
;
public
CenterDisplayServiceImpl
(
CenterDisplayDao
centerDisplayDao
,
ImageService
imageService
)
{
this
.
centerDisplayDao
=
centerDisplayDao
;
this
.
imageService
=
imageService
;
}
@Override
public
String
save
(
CenterDisplayReqVo
req
)
{
if
(
StringHelper
.
isEmpty
(
req
.
getDisplayId
()))
{
CenterDisplayVo
centerDisplay
=
new
CenterDisplayVo
();
String
displayId
=
StringHelper
.
getNewID
();
centerDisplay
.
setDisplayId
(
displayId
);
ObjectHelper
.
writeWithFrom
(
centerDisplay
,
req
);
centerDisplay
.
setCreateTime
(
DateHelper
.
getNow
());
centerDisplayDao
.
save
(
centerDisplay
);
return
displayId
;
}
else
{
CenterDisplayVo
centerDisplay
=
new
CenterDisplayVo
();
centerDisplay
.
setDisplayId
(
req
.
getDisplayId
());
CenterDisplayVo
load
=
centerDisplayDao
.
load
(
centerDisplay
,
CenterDisplayResVo
.
class
);
ObjectHelper
.
writeWithFrom
(
load
,
req
);
load
.
setUpdateTime
(
DateHelper
.
getNow
());
centerDisplayDao
.
update
(
load
);
return
req
.
getDisplayId
();
}
}
@Override
public
CenterDisplayResVo
load
(
CenterDisplayReqVo
req
)
{
CenterDisplayVo
centerDisplay
=
new
CenterDisplayVo
();
centerDisplay
.
setDisplayId
(
req
.
getDisplayId
());
return
centerDisplayDao
.
load
(
centerDisplay
,
CenterDisplayResVo
.
class
);
}
@Override
public
List
<
CenterDisplayResVo
>
loadList
(
CenterDisplayReqVo
req
)
{
List
<
CenterDisplayResVo
>
list
=
centerDisplayDao
.
loadByList
(
req
);
return
list
;
}
@Override
public
String
remove
(
CenterDisplayReqVo
req
)
{
CenterDisplayVo
centerDisplay
=
new
CenterDisplayVo
();
centerDisplay
.
setDisplayId
(
req
.
getDisplayId
());
centerDisplayDao
.
remove
(
centerDisplay
);
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
req
.
getDisplayId
());
imageService
.
remove
(
imageReqVo
);
return
req
.
getDisplayId
();
}
}
src/main/java/com/tcm/common/service/impl/CompanyServiceImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
service
.
impl
;
import
com.tcm.common.dao.CompanyDao
;
import
com.tcm.common.service.CompanyService
;
import
com.tcm.common.service.ImageService
;
import
com.tcm.util.common.CompanyVo
;
import
com.tcm.util.common.req.CompanyLoadPageReqVo
;
import
com.tcm.util.common.req.CompanyReqVo
;
import
com.tcm.util.common.req.ImageReqVo
;
import
com.tcm.util.common.res.CompanyResVo
;
import
com.yanzuoguang.util.base.ObjectHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
org.springframework.stereotype.Service
;
@Service
public
class
CompanyServiceImpl
implements
CompanyService
{
private
final
CompanyDao
companyDao
;
private
final
ImageService
imageService
;
public
CompanyServiceImpl
(
CompanyDao
companyDao
,
ImageService
imageService
)
{
this
.
companyDao
=
companyDao
;
this
.
imageService
=
imageService
;
}
@Override
public
String
save
(
CompanyReqVo
req
)
{
if
(
StringHelper
.
isEmpty
(
req
.
getCompanyId
()))
{
CompanyVo
company
=
new
CompanyVo
();
String
companyId
=
StringHelper
.
getNewID
();
company
.
setCompanyId
(
companyId
);
ObjectHelper
.
writeWithFrom
(
company
,
req
);
companyDao
.
save
(
company
);
return
companyId
;
}
else
{
CompanyVo
company
=
new
CompanyVo
();
company
.
setCompanyId
(
req
.
getCompanyId
());
CompanyVo
load
=
companyDao
.
load
(
company
,
CompanyVo
.
class
);
ObjectHelper
.
writeWithFrom
(
load
,
req
);
companyDao
.
update
(
load
);
return
req
.
getCompanyId
();
}
}
@Override
public
CompanyResVo
load
(
CompanyReqVo
req
)
{
CompanyVo
company
=
new
CompanyVo
();
company
.
setCompanyId
(
req
.
getCompanyId
());
company
.
setCompanyStatus
(
req
.
getCompanyStatus
()
==
null
?
0
:
req
.
getCompanyStatus
());
CompanyResVo
load
=
companyDao
.
load
(
company
,
CompanyResVo
.
class
);
// 图片加载
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
load
.
getCompanyId
());
load
.
setCompanyImageList
(
imageService
.
loadList
(
imageReqVo
));
return
load
;
}
@Override
public
PageSizeData
<
CompanyResVo
>
loadPage
(
CompanyLoadPageReqVo
req
)
{
PageSizeData
<
CompanyResVo
>
page
=
companyDao
.
loadPage
(
req
,
CompanyResVo
.
class
);
return
page
;
}
@Override
public
String
remove
(
CompanyReqVo
req
)
{
CompanyVo
company
=
new
CompanyVo
();
company
.
setCompanyId
(
req
.
getCompanyId
());
companyDao
.
remove
(
company
);
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
req
.
getCompanyId
());
imageService
.
remove
(
imageReqVo
);
return
req
.
getCompanyId
();
}
}
src/main/java/com/tcm/common/service/impl/ImageServiceImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
service
.
impl
;
import
com.tcm.common.dao.ImageDao
;
import
com.tcm.common.service.ImageService
;
import
com.tcm.util.common.ImageVo
;
import
com.tcm.util.common.req.ImageReqVo
;
import
com.tcm.util.common.res.ImageResVo
;
import
com.yanzuoguang.util.base.ObjectHelper
;
import
com.yanzuoguang.util.helper.DateHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
org.springframework.stereotype.Service
;
import
java.awt.*
;
import
java.util.ArrayList
;
import
java.util.List
;
@Service
public
class
ImageServiceImpl
implements
ImageService
{
private
final
ImageDao
imageDao
;
public
ImageServiceImpl
(
ImageDao
imageDao
)
{
this
.
imageDao
=
imageDao
;
}
@Override
public
String
save
(
ImageReqVo
req
)
{
if
(
StringHelper
.
isEmpty
(
req
.
getImageId
()))
{
ImageVo
image
=
new
ImageVo
();
String
imageId
=
StringHelper
.
getNewID
();
ObjectHelper
.
writeWithFrom
(
image
,
req
);
image
.
setImageId
(
imageId
);
image
.
setCreateTime
(
DateHelper
.
getNow
());
imageDao
.
save
(
image
);
return
imageId
;
}
else
{
ImageVo
image
=
new
ImageVo
();
image
.
setImageId
(
req
.
getImageId
());
ImageVo
load
=
imageDao
.
load
(
image
,
ImageVo
.
class
);
ObjectHelper
.
writeWithFrom
(
load
,
req
);
load
.
setUpdateTime
(
DateHelper
.
getNow
());
imageDao
.
update
(
load
);
return
req
.
getImageId
();
}
}
@Override
public
ImageResVo
load
(
ImageReqVo
req
)
{
ImageVo
image
=
new
ImageVo
();
image
.
setImageId
(
req
.
getImageId
());
return
imageDao
.
load
(
image
,
ImageResVo
.
class
);
}
@Override
public
String
remove
(
ImageReqVo
req
)
{
ImageVo
image
=
new
ImageVo
();
if
(!
StringHelper
.
isEmpty
(
req
.
getImageId
()))
{
image
.
setImageId
(
req
.
getImageId
());
}
if
(!
StringHelper
.
isEmpty
(
req
.
getRelationId
()))
{
image
.
setRelationId
(
req
.
getRelationId
());
}
if
(
StringHelper
.
isEmpty
(
req
.
getImageId
())
&&
StringHelper
.
isEmpty
(
req
.
getRelationId
()))
{
return
"fail"
;
}
imageDao
.
remove
(
image
);
return
"success"
;
}
@Override
public
List
<
ImageResVo
>
homeBanner
(
ImageReqVo
req
)
{
ImageVo
image
=
new
ImageVo
();
image
.
setImageType
(
req
.
getImageType
());
image
.
setImageStatus
(
req
.
getImageStatus
());
return
imageDao
.
loadList
(
image
,
ImageResVo
.
class
);
}
@Override
public
List
<
ImageResVo
>
loadList
(
ImageReqVo
req
)
{
ImageVo
image
=
new
ImageVo
();
ObjectHelper
.
writeWithFrom
(
image
,
req
);
return
imageDao
.
loadList
(
image
,
ImageResVo
.
class
);
}
@Override
public
String
saveList
(
ImageReqVo
imageReqVo
)
{
List
<
ImageVo
>
imageList
=
new
ArrayList
<>();
for
(
ImageVo
imageVo
:
imageReqVo
.
getImageList
())
{
ImageVo
image
=
new
ImageVo
();
ObjectHelper
.
writeWithFrom
(
image
,
imageReqVo
);
image
.
setImageId
(
StringHelper
.
getNewID
());
image
.
setCreateTime
(
DateHelper
.
getNow
());
image
.
setImageUrl
(
imageVo
.
getImageUrl
());
imageList
.
add
(
image
);
}
imageDao
.
createList
(
imageReqVo
.
getImageList
());
return
imageReqVo
.
getRelationId
();
}
}
src/main/java/com/tcm/common/service/impl/TcmEnumServiceImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
service
.
impl
;
import
com.tcm.common.dao.TcmEnumDao
;
import
com.tcm.common.service.TcmEnumService
;
import
com.tcm.util.common.TcmEnumVo
;
import
com.tcm.util.common.req.TcmEnumLoadPageReqVo
;
import
com.tcm.util.common.req.TcmEnumReqVo
;
import
com.tcm.util.common.res.TcmEnumResVo
;
import
com.yanzuoguang.util.base.ObjectHelper
;
import
com.yanzuoguang.util.helper.DateHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
org.springframework.stereotype.Service
;
@Service
public
class
TcmEnumServiceImpl
implements
TcmEnumService
{
private
final
TcmEnumDao
tcmEnumDao
;
public
TcmEnumServiceImpl
(
TcmEnumDao
tcmEnumDao
)
{
this
.
tcmEnumDao
=
tcmEnumDao
;
}
@Override
public
String
save
(
TcmEnumReqVo
req
)
{
if
(
StringHelper
.
isEmpty
(
req
.
getEnumId
()))
{
//新增
TcmEnumVo
tcmEnumVo
=
new
TcmEnumVo
();
String
enumId
=
StringHelper
.
getNewID
();
tcmEnumVo
.
setEnumId
(
enumId
);
ObjectHelper
.
writeWithFrom
(
tcmEnumVo
,
req
);
tcmEnumVo
.
setCreateTime
(
DateHelper
.
getNow
());
tcmEnumDao
.
save
(
tcmEnumVo
);
return
enumId
;
}
else
{
//修改
TcmEnumVo
tcmEnumVo
=
new
TcmEnumVo
();
tcmEnumVo
.
setEnumId
(
req
.
getEnumId
());
TcmEnumVo
load
=
tcmEnumDao
.
load
(
tcmEnumVo
,
TcmEnumVo
.
class
);
ObjectHelper
.
writeWithFrom
(
load
,
req
);
tcmEnumDao
.
update
(
load
);
return
req
.
getEnumId
();
}
}
@Override
public
TcmEnumResVo
load
(
TcmEnumReqVo
req
)
{
TcmEnumVo
tcmEnumVo
=
new
TcmEnumVo
();
tcmEnumVo
.
setEnumId
(
req
.
getEnumId
());
return
tcmEnumDao
.
load
(
tcmEnumVo
,
TcmEnumResVo
.
class
);
}
@Override
public
PageSizeData
<
TcmEnumResVo
>
loadPage
(
TcmEnumLoadPageReqVo
req
)
{
PageSizeData
<
TcmEnumResVo
>
page
=
tcmEnumDao
.
loadPage
(
req
,
TcmEnumResVo
.
class
);
return
page
;
}
@Override
public
String
remove
(
TcmEnumReqVo
req
)
{
TcmEnumVo
tcmEnumVo
=
new
TcmEnumVo
();
tcmEnumVo
.
setEnumId
(
req
.
getEnumId
());
tcmEnumDao
.
remove
(
tcmEnumVo
);
return
req
.
getEnumId
();
}
}
src/main/java/com/tcm/common/util/CommonConstant.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
util
;
/**
* 常用枚举
*/
public
class
CommonConstant
{
/**
* 图片类型
*/
public
static
final
Integer
IMAGE_TYPE_HOME
=
1
;
public
static
final
Integer
IMAGE_TYPE_CENTER_DISPLAY
=
2
;
/**
* 图片状态
*/
public
static
final
Integer
IMAGE_STATUS_ENABLE
=
0
;
public
static
final
Integer
IMAGE_STATUS_DISABLE
=
1
;
/**
* 内容类型0:首页1:展示区
*/
public
static
final
Integer
CAROUSEL_TYPE_HOME
=
0
;
public
static
final
Integer
CAROUSEL_TYPE_CENTER_DISPLAY
=
1
;
/**
* 语言类型:0中文1英文2韩文3日文4法文5俄文6西班牙文7葡萄牙文8阿拉伯文9意大利文10印地文11德文12俄文13丹麦文14西班牙文15瑞典
*/
public
static
final
Integer
LANGUAGE_TYPE_CHINESE
=
0
;
public
static
final
Integer
LANGUAGE_TYPE_ENGLISH
=
1
;
public
static
final
Integer
LANGUAGE_TYPE_KOREAN
=
2
;
public
static
final
Integer
LANGUAGE_TYPE_JAPANESE
=
3
;
public
static
final
Integer
LANGUAGE_TYPE_FRENCH
=
4
;
public
static
final
Integer
LANGUAGE_TYPE_RUSSIAN
=
5
;
public
static
final
Integer
LANGUAGE_TYPE_SPANISH
=
6
;
public
static
final
Integer
LANGUAGE_TYPE_PORTUGUESE
=
7
;
public
static
final
Integer
LANGUAGE_TYPE_ARABIC
=
8
;
public
static
final
Integer
LANGUAGE_TYPE_ITALIAN
=
9
;
public
static
final
Integer
LANGUAGE_TYPE_HINDI
=
10
;
public
static
final
Integer
LANGUAGE_TYPE_GERMAN
=
11
;
public
static
final
Integer
LANGUAGE_TYPE_DANISH
=
12
;
public
static
final
Integer
LANGUAGE_TYPE_SWEDISH
=
13
;
public
static
final
Integer
LANGUAGE_TYPE_FINNISH
=
14
;
public
static
final
Integer
LANGUAGE_TYPE_THAI
=
15
;
}
src/main/java/com/tcm/common/web/AreaController.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
web
;
import
com.tcm.common.service.AreaService
;
import
com.tcm.util.area.req.*
;
import
com.tcm.util.area.res.CenterDisplayHomeLoadResVo
;
import
com.tcm.util.area.res.FloorAreaResVo
;
import
com.tcm.util.area.res.FloorHomeLoadResVo
;
import
com.tcm.util.area.res.FloorResVo
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
com.yanzuoguang.util.vo.ResponseResult
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"/area"
)
public
class
AreaController
{
private
final
AreaService
areaService
;
public
AreaController
(
AreaService
areaService
)
{
this
.
areaService
=
areaService
;
}
/**
* 区域新增
*/
@RequestMapping
(
"/floorSave"
)
public
ResponseResult
<
String
>
floorSave
(
@RequestBody
FloorReqVo
req
)
{
return
ResponseResult
.
result
(
areaService
.
floorSave
(
req
));
}
/**
* 区域加载
*/
@RequestMapping
(
"/floorLoad"
)
public
ResponseResult
<
FloorResVo
>
floorLoad
(
@RequestBody
FloorReqVo
req
)
{
return
ResponseResult
.
result
(
areaService
.
floorLoad
(
req
));
}
/**
* 楼层分页查询
*/
@RequestMapping
(
"/floorLoadPage"
)
public
ResponseResult
<
PageSizeData
<
FloorResVo
>>
floorLoadPage
(
@RequestBody
FloorLoadPageReqVo
req
)
{
return
ResponseResult
.
result
(
areaService
.
floorLoadPage
(
req
));
}
/**
* 区域加载
*/
@RequestMapping
(
"/floorChangeStatus"
)
public
ResponseResult
<
String
>
floorChangeStatus
(
@RequestBody
FloorReqVo
req
)
{
return
ResponseResult
.
result
(
areaService
.
floorChangeStatus
(
req
));
}
/**
* 区域删除
*/
@RequestMapping
(
"/floorRemove"
)
public
ResponseResult
<
String
>
floorRemove
(
@RequestBody
FloorReqVo
req
)
{
return
ResponseResult
.
result
(
areaService
.
floorRemove
(
req
));
}
/**
* 区域加载
*/
@RequestMapping
(
"/areaLoad"
)
public
ResponseResult
<
FloorAreaResVo
>
areaLoad
(
@RequestBody
FloorAreaReqVo
req
)
{
return
ResponseResult
.
result
(
areaService
.
areaLoad
(
req
));
}
/**
* 区域保存
*/
@RequestMapping
(
"/areaSave"
)
public
ResponseResult
<
String
>
areaSave
(
@RequestBody
FloorAreaReqVo
req
)
{
return
ResponseResult
.
result
(
areaService
.
areaSave
(
req
));
}
/**
* 区域加载
*/
@RequestMapping
(
"/areaChangeStatus"
)
public
ResponseResult
<
String
>
areaChangeStatus
(
@RequestBody
FloorAreaReqVo
req
)
{
return
ResponseResult
.
result
(
areaService
.
areaChangeStatus
(
req
));
}
/**
* 区域删除
*/
@RequestMapping
(
"/areaRemove"
)
public
ResponseResult
<
String
>
areaRemove
(
@RequestBody
FloorAreaReqVo
req
)
{
return
ResponseResult
.
result
(
areaService
.
areaRemove
(
req
));
}
/**
* 中心展区加载
*/
@RequestMapping
(
"/loadCenter"
)
public
ResponseResult
<
FloorHomeLoadResVo
>
loadCenter
(
@RequestBody
FloorReqVo
req
)
{
return
ResponseResult
.
result
(
areaService
.
loadCenter
(
req
));
}
/**
* 区域分页查询
*/
@RequestMapping
(
"/areaLoadPage"
)
public
ResponseResult
<
PageSizeData
<
FloorAreaResVo
>>
areaLoadPage
(
@RequestBody
FloorAreaLoadPageReqVo
req
)
{
return
ResponseResult
.
result
(
areaService
.
areaLoadPage
(
req
));
}
}
src/main/java/com/tcm/common/web/CarouselController.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
web
;
import
com.tcm.common.service.CarouselService
;
import
com.tcm.util.common.req.CarouselLoadPageReqVo
;
import
com.tcm.util.common.req.CarouselReqVo
;
import
com.tcm.util.common.res.CarouselResVo
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
com.yanzuoguang.util.vo.ResponseResult
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"/carousel"
)
public
class
CarouselController
{
private
final
CarouselService
carouselService
;
public
CarouselController
(
CarouselService
carouselService
)
{
this
.
carouselService
=
carouselService
;
}
/**
* 内容新增
*/
@RequestMapping
(
"/save"
)
public
ResponseResult
<
String
>
save
(
@RequestBody
CarouselReqVo
req
)
{
return
ResponseResult
.
result
(
carouselService
.
save
(
req
));
}
/**
* 内容加载
*/
@RequestMapping
(
"/load"
)
public
ResponseResult
<
CarouselResVo
>
load
(
@RequestBody
CarouselReqVo
req
)
{
return
ResponseResult
.
result
(
carouselService
.
load
(
req
));
}
/**
* 内容列表
*/
@RequestMapping
(
"/loadPage"
)
public
ResponseResult
<
PageSizeData
<
CarouselResVo
>>
loadPage
(
@RequestBody
CarouselLoadPageReqVo
req
)
{
return
ResponseResult
.
result
(
carouselService
.
loadPage
(
req
));
}
/**
* 上下架
*/
@RequestMapping
(
"/changeStatus"
)
public
ResponseResult
<
String
>
changeStatus
(
@RequestBody
CarouselReqVo
req
)
{
return
ResponseResult
.
result
(
carouselService
.
changeStatus
(
req
));
}
/**
* 内容删除
*/
@RequestMapping
(
"/remove"
)
public
ResponseResult
<
String
>
remove
(
@RequestBody
CarouselReqVo
req
)
{
return
ResponseResult
.
result
(
carouselService
.
remove
(
req
));
}
}
src/main/java/com/tcm/common/web/CenterDisplayController.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
web
;
import
com.tcm.common.service.CenterDisplayService
;
import
com.tcm.util.area.req.CenterDisplayReqVo
;
import
com.tcm.util.area.res.CenterDisplayHomeLoadResVo
;
import
com.tcm.util.area.res.CenterDisplayResVo
;
import
com.tcm.util.common.req.TcmEnumReqVo
;
import
com.yanzuoguang.util.vo.ResponseResult
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@RestController
@RequestMapping
(
"/centerDisplay"
)
public
class
CenterDisplayController
{
private
final
CenterDisplayService
centerDisplayService
;
public
CenterDisplayController
(
CenterDisplayService
centerDisplayService
)
{
this
.
centerDisplayService
=
centerDisplayService
;
}
/**
* 展示区新增
*/
@RequestMapping
(
"/save"
)
public
ResponseResult
<
String
>
save
(
@RequestBody
CenterDisplayReqVo
req
)
{
return
ResponseResult
.
result
(
centerDisplayService
.
save
(
req
));
}
/**
* 展示区加载
*/
@RequestMapping
(
"/load"
)
public
ResponseResult
<
CenterDisplayResVo
>
load
(
@RequestBody
CenterDisplayReqVo
req
)
{
return
ResponseResult
.
result
(
centerDisplayService
.
load
(
req
));
}
/**
* 展示区列表
*/
@RequestMapping
(
"/loadList"
)
public
ResponseResult
<
List
<
CenterDisplayResVo
>>
loadList
(
@RequestBody
CenterDisplayReqVo
req
)
{
return
ResponseResult
.
result
(
centerDisplayService
.
loadList
(
req
));
}
/**
* 展示区删除
*/
@RequestMapping
(
"/remove"
)
public
ResponseResult
<
String
>
remove
(
@RequestBody
CenterDisplayReqVo
req
)
{
return
ResponseResult
.
result
(
centerDisplayService
.
remove
(
req
));
}
}
src/main/java/com/tcm/common/web/CompanyController.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
web
;
import
com.tcm.common.service.CompanyService
;
import
com.tcm.util.common.req.CompanyLoadPageReqVo
;
import
com.tcm.util.common.req.CompanyReqVo
;
import
com.tcm.util.common.res.CompanyResVo
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
com.yanzuoguang.util.vo.ResponseResult
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"/company"
)
public
class
CompanyController
{
private
final
CompanyService
companyService
;
public
CompanyController
(
CompanyService
companyService
)
{
this
.
companyService
=
companyService
;
}
/**
* 公司新增
*/
@RequestMapping
(
"/save"
)
public
ResponseResult
<
String
>
save
(
@RequestBody
CompanyReqVo
req
)
{
return
ResponseResult
.
result
(
companyService
.
save
(
req
));
}
/**
* 公司加载
*/
@RequestMapping
(
"/load"
)
public
ResponseResult
<
CompanyResVo
>
load
(
@RequestBody
CompanyReqVo
req
)
{
return
ResponseResult
.
result
(
companyService
.
load
(
req
));
}
/**
* 公司分页查询
*/
@RequestMapping
(
"/loadPage"
)
public
ResponseResult
<
PageSizeData
<
CompanyResVo
>>
loadPage
(
@RequestBody
CompanyLoadPageReqVo
req
)
{
return
ResponseResult
.
result
(
companyService
.
loadPage
(
req
));
}
/**
* 公司删除
*/
@RequestMapping
(
"/remove"
)
public
ResponseResult
<
String
>
remove
(
@RequestBody
CompanyReqVo
req
)
{
return
ResponseResult
.
result
(
companyService
.
remove
(
req
));
}
}
src/main/java/com/tcm/common/web/ImageController.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
web
;
import
com.tcm.common.service.ImageService
;
import
com.tcm.util.common.req.ImageReqVo
;
import
com.tcm.util.common.res.ImageResVo
;
import
com.yanzuoguang.util.vo.ResponseResult
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@RestController
@RequestMapping
(
"/image"
)
public
class
ImageController
{
private
final
ImageService
imageService
;
public
ImageController
(
ImageService
imageService
)
{
this
.
imageService
=
imageService
;
}
/**
* 图片新增
*/
@RequestMapping
(
"/save"
)
public
ResponseResult
<
String
>
save
(
@RequestBody
ImageReqVo
req
)
{
return
ResponseResult
.
result
(
imageService
.
save
(
req
));
}
/**
* 图片列表新增
*/
@RequestMapping
(
"/saveList"
)
public
ResponseResult
<
String
>
saveList
(
@RequestBody
ImageReqVo
req
)
{
return
ResponseResult
.
result
(
imageService
.
saveList
(
req
));
}
/**
* 图片加载
*/
@RequestMapping
(
"/load"
)
public
ResponseResult
<
ImageResVo
>
load
(
@RequestBody
ImageReqVo
req
)
{
return
ResponseResult
.
result
(
imageService
.
load
(
req
));
}
/**
* 图片删除
*/
@RequestMapping
(
"/remove"
)
public
ResponseResult
<
String
>
remove
(
@RequestBody
ImageReqVo
req
)
{
return
ResponseResult
.
result
(
imageService
.
remove
(
req
));
}
/**
* 首页图片加载
*/
@RequestMapping
(
"/homeBanner"
)
public
ResponseResult
<
List
<
ImageResVo
>>
homeBanner
(
@RequestBody
ImageReqVo
req
)
{
return
ResponseResult
.
result
(
imageService
.
homeBanner
(
req
));
}
}
src/main/java/com/tcm/common/web/TcmEnumController.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
common
.
web
;
import
com.tcm.common.service.TcmEnumService
;
import
com.tcm.util.common.req.TcmEnumLoadPageReqVo
;
import
com.tcm.util.common.req.TcmEnumReqVo
;
import
com.tcm.util.common.res.TcmEnumResVo
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
com.yanzuoguang.util.vo.ResponseResult
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"/tcmEnum"
)
public
class
TcmEnumController
{
private
final
TcmEnumService
tcmEnumService
;
public
TcmEnumController
(
TcmEnumService
tcmEnumService
)
{
this
.
tcmEnumService
=
tcmEnumService
;
}
/**
* 枚举新增
*/
@RequestMapping
(
"/save"
)
public
ResponseResult
<
String
>
save
(
@RequestBody
TcmEnumReqVo
req
)
{
return
ResponseResult
.
result
(
tcmEnumService
.
save
(
req
));
}
/**
* 枚举加载
*/
@RequestMapping
(
"/load"
)
public
ResponseResult
<
TcmEnumResVo
>
load
(
@RequestBody
TcmEnumReqVo
req
)
{
return
ResponseResult
.
result
(
tcmEnumService
.
load
(
req
));
}
/**
* 枚举分页查询
*/
@RequestMapping
(
"/loadPage"
)
public
ResponseResult
<
PageSizeData
<
TcmEnumResVo
>>
loadPage
(
@RequestBody
TcmEnumLoadPageReqVo
req
)
{
return
ResponseResult
.
result
(
tcmEnumService
.
loadPage
(
req
));
}
/**
* 枚举删除
*/
@RequestMapping
(
"/remove"
)
public
ResponseResult
<
String
>
remove
(
@RequestBody
TcmEnumReqVo
req
)
{
return
ResponseResult
.
result
(
tcmEnumService
.
remove
(
req
));
}
}
src/main/java/com/tcm/product/dao/ProductCategoryDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
dao
;
import
com.tcm.util.product.req.ProductCategoryLoadPageReqVo
;
import
com.tcm.util.product.res.ProductCategoryResVo
;
import
com.yanzuoguang.dao.BaseDao
;
import
com.yanzuoguang.util.vo.PageSizeData
;
public
interface
ProductCategoryDao
extends
BaseDao
{
/**
* 分页加载
* @param req
* @return
*/
PageSizeData
<
ProductCategoryResVo
>
loadByPage
(
ProductCategoryLoadPageReqVo
req
);
}
src/main/java/com/tcm/product/dao/ProductDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
dao
;
import
com.tcm.util.product.req.ProductLoadPageReqVo
;
import
com.tcm.util.product.req.ProductReqVo
;
import
com.tcm.util.product.res.ProductResVo
;
import
com.yanzuoguang.dao.BaseDao
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
java.util.List
;
public
interface
ProductDao
extends
BaseDao
{
/**
* 产品信息全加载
* @param productVo
* @return
*/
List
<
ProductResVo
>
loadInfoList
(
ProductReqVo
productVo
);
/**
* 分页加载
* @param req
* @return
*/
PageSizeData
<
ProductResVo
>
loadByPage
(
ProductLoadPageReqVo
req
);
}
src/main/java/com/tcm/product/dao/ProductExtendDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
dao
;
import
com.yanzuoguang.dao.BaseDao
;
public
interface
ProductExtendDao
extends
BaseDao
{
}
src/main/java/com/tcm/product/dao/ProductPriceDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
dao
;
import
com.yanzuoguang.dao.BaseDao
;
public
interface
ProductPriceDao
extends
BaseDao
{
}
src/main/java/com/tcm/product/dao/ProductStockDao.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
dao
;
import
com.yanzuoguang.dao.BaseDao
;
public
interface
ProductStockDao
extends
BaseDao
{
}
src/main/java/com/tcm/product/dao/impl/ProductCategoryDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
dao
.
impl
;
import
com.tcm.product.dao.ProductCategoryDao
;
import
com.tcm.util.product.ProductCategoryVo
;
import
com.tcm.util.product.req.ProductCategoryLoadPageReqVo
;
import
com.tcm.util.product.res.ProductCategoryResVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
org.springframework.stereotype.Component
;
@Component
public
class
ProductCategoryDaoImpl
extends
BaseDaoImpl
implements
ProductCategoryDao
{
private
static
final
String
SQL_LOAD_BY_PAGE
=
"LOAD_BY_PAGE"
;
@Override
protected
void
init
()
{
register
(
ProductCategoryVo
.
class
);
table
.
add
(
SQL_LOAD_BY_PAGE
,
"select p.*,pe.category_name as categoryName,pe.introduction as introduction,"
+
" pe.product_efficacy as productEfficacy,ti.image_url as imageUrl from tcm_product_category as p "
+
" left join tcm_product_category_extend as pe on p.category_id = pe.category_id"
+
" left join tcm_image as ti on p.category_id = ti.relation_id where 1=1 {WHERE} order by p.sort"
)
.
add
(
"categoryId"
,
"and p.category_id = ?"
)
.
add
(
"languageType"
,
"and pe.language_type =?"
)
;
}
@Override
public
PageSizeData
<
ProductCategoryResVo
>
loadByPage
(
ProductCategoryLoadPageReqVo
req
)
{
return
this
.
queryPage
(
ProductCategoryResVo
.
class
,
req
,
SQL_LOAD_BY_PAGE
,
req
);
}
}
src/main/java/com/tcm/product/dao/impl/ProductDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
dao
.
impl
;
import
com.tcm.product.dao.ProductDao
;
import
com.tcm.util.product.ProductVo
;
import
com.tcm.util.product.req.ProductLoadPageReqVo
;
import
com.tcm.util.product.req.ProductReqVo
;
import
com.tcm.util.product.res.ProductResVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
@Component
public
class
ProductDaoImpl
extends
BaseDaoImpl
implements
ProductDao
{
private
static
final
String
SQL_PRODUCT_LOAD_INFO
=
"product_load_info"
;
private
static
final
String
SQL_PRODUCT_LOAD_BY_PAGE
=
"product_load_by_page"
;
@Override
protected
void
init
()
{
register
(
ProductVo
.
class
);
table
.
add
(
SQL_PRODUCT_LOAD_INFO
,
"select p.* from tcm_product as p where 1=1 {WHERE} order by p.sort"
)
.
add
(
"productId"
,
" AND p.product_id = ?"
)
.
add
(
"categoryId"
,
" AND p.category_id =?"
)
;
table
.
add
(
SQL_PRODUCT_LOAD_BY_PAGE
,
"select p.* from tcm_product as p"
+
" left join tcm_product_extend as pe on p.product_id = pe.product_id where 1=1 {WHERE} order by p.sort"
)
.
add
(
"productId"
,
" AND p.product_id = ?"
)
.
add
(
"categoryId"
,
" AND p.category_id =?"
)
.
add
(
"productName"
,
" AND pe.product_name like concat('%',?,'%')"
)
.
add
(
"productType"
,
" AND p.product_type =?"
)
.
add
(
"status"
,
" AND p.status =?"
)
.
add
(
"position"
,
" AND pe.position =?"
)
.
add
(
"categoryType"
,
" AND p.category_type =?"
);
}
@Override
public
List
<
ProductResVo
>
loadInfoList
(
ProductReqVo
req
)
{
return
query
(
ProductResVo
.
class
,
SQL_PRODUCT_LOAD_INFO
,
req
);
}
@Override
public
PageSizeData
<
ProductResVo
>
loadByPage
(
ProductLoadPageReqVo
req
)
{
return
this
.
queryPage
(
ProductResVo
.
class
,
req
,
SQL_PRODUCT_LOAD_BY_PAGE
,
req
);
}
}
src/main/java/com/tcm/product/dao/impl/ProductExtendDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
dao
.
impl
;
import
com.tcm.product.dao.ProductExtendDao
;
import
com.tcm.util.product.ProductExtendVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
org.springframework.stereotype.Component
;
@Component
public
class
ProductExtendDaoImpl
extends
BaseDaoImpl
implements
ProductExtendDao
{
@Override
protected
void
init
()
{
register
(
ProductExtendVo
.
class
);
}
}
src/main/java/com/tcm/product/dao/impl/ProductPriceDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
dao
.
impl
;
import
com.tcm.product.dao.ProductPriceDao
;
import
com.tcm.util.product.ProductPriceVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
org.springframework.stereotype.Component
;
@Component
public
class
ProductPriceDaoImpl
extends
BaseDaoImpl
implements
ProductPriceDao
{
@Override
protected
void
init
()
{
register
(
ProductPriceVo
.
class
);
}
}
src/main/java/com/tcm/product/dao/impl/ProductStockDaoImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
dao
.
impl
;
import
com.tcm.product.dao.ProductStockDao
;
import
com.tcm.util.product.ProductStockVo
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
org.springframework.stereotype.Component
;
@Component
public
class
ProductStockDaoImpl
extends
BaseDaoImpl
implements
ProductStockDao
{
@Override
protected
void
init
()
{
register
(
ProductStockVo
.
class
);
}
}
src/main/java/com/tcm/product/service/ProductCategoryService.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
service
;
import
com.tcm.util.product.req.ProductCategoryLoadPageReqVo
;
import
com.tcm.util.product.req.ProductCategoryReqVo
;
import
com.tcm.util.product.res.ProductCategoryResVo
;
import
com.yanzuoguang.util.vo.PageSizeData
;
public
interface
ProductCategoryService
{
/**
* 产品分类保存
*
* @param req
* @return
*/
String
save
(
ProductCategoryReqVo
req
);
/**
* 产品分类加载
*
* @param req
* @return
*/
ProductCategoryResVo
load
(
ProductCategoryReqVo
req
);
/**
* 产品分类分页
*
* @param req
* @return
*/
PageSizeData
<
ProductCategoryResVo
>
loadPage
(
ProductCategoryLoadPageReqVo
req
);
/**
* 产品分类删除
*
* @param req
* @return
*/
String
remove
(
ProductCategoryReqVo
req
);
/**
* 首页展示产品类型
* @param req
* @return
*/
PageSizeData
<
ProductCategoryResVo
>
categoryProductPage
(
ProductCategoryLoadPageReqVo
req
);
}
src/main/java/com/tcm/product/service/ProductService.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
service
;
import
com.tcm.util.product.req.ProductLoadPageReqVo
;
import
com.tcm.util.product.req.ProductReqVo
;
import
com.tcm.util.product.res.ProductResVo
;
import
com.yanzuoguang.util.vo.PageSizeData
;
public
interface
ProductService
{
/**
* 产品保存
*
* @param req
* @return
*/
String
save
(
ProductReqVo
req
);
/**
* 产品加载
*
* @param req
* @return
*/
ProductResVo
load
(
ProductReqVo
req
);
/**
* 产品分页
*
* @param req
* @return
*/
PageSizeData
<
ProductResVo
>
loadPage
(
ProductLoadPageReqVo
req
);
/**
* 产品删除
*
* @param req
* @return
*/
String
remove
(
ProductReqVo
req
);
/**
* 客户端产品列表
* @param req
* @return
*/
PageSizeData
<
ProductResVo
>
displayList
(
ProductLoadPageReqVo
req
);
/**
* 上下架
* @param req
* @return
*/
String
changeStatus
(
ProductReqVo
req
);
}
src/main/java/com/tcm/product/service/impl/ProductCategoryServiceImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
service
.
impl
;
import
com.tcm.common.service.ImageService
;
import
com.tcm.product.dao.ProductCategoryDao
;
import
com.tcm.product.dao.ProductDao
;
import
com.tcm.product.dao.ProductExtendDao
;
import
com.tcm.product.service.ProductCategoryService
;
import
com.tcm.util.common.req.ImageReqVo
;
import
com.tcm.util.common.res.ImageResVo
;
import
com.tcm.util.product.ProductCategoryVo
;
import
com.tcm.util.product.ProductExtendVo
;
import
com.tcm.util.product.req.ProductCategoryLoadPageReqVo
;
import
com.tcm.util.product.req.ProductCategoryReqVo
;
import
com.tcm.util.product.req.ProductReqVo
;
import
com.tcm.util.product.res.ProductCategoryResVo
;
import
com.tcm.util.product.res.ProductResVo
;
import
com.yanzuoguang.util.base.ObjectHelper
;
import
com.yanzuoguang.util.helper.DateHelper
;
import
com.yanzuoguang.util.helper.MapHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.Map
;
@Service
public
class
ProductCategoryServiceImpl
implements
ProductCategoryService
{
private
final
ProductCategoryDao
productCategoryDao
;
private
final
ProductDao
productDao
;
private
final
ProductExtendDao
productExtendDao
;
private
final
ImageService
imageService
;
public
ProductCategoryServiceImpl
(
ProductCategoryDao
productCategoryDao
,
ProductDao
productDao
,
ProductExtendDao
productExtendDao
,
ImageService
imageService
)
{
this
.
productCategoryDao
=
productCategoryDao
;
this
.
productDao
=
productDao
;
this
.
productExtendDao
=
productExtendDao
;
this
.
imageService
=
imageService
;
}
@Override
public
String
save
(
ProductCategoryReqVo
req
)
{
if
(
StringHelper
.
isEmpty
(
req
.
getCategoryId
()))
{
//新增
ProductCategoryVo
productCategoryVo
=
new
ProductCategoryVo
();
String
categoryId
=
StringHelper
.
getNewID
();
ObjectHelper
.
writeWithFrom
(
productCategoryVo
,
req
);
productCategoryVo
.
setCategoryId
(
categoryId
);
productCategoryVo
.
setCreateTime
(
DateHelper
.
getNow
());
productCategoryDao
.
save
(
productCategoryVo
);
return
categoryId
;
}
else
{
ProductCategoryVo
productCategoryVo
=
new
ProductCategoryVo
();
productCategoryVo
.
setCategoryId
(
req
.
getCategoryId
());
ProductCategoryVo
load
=
productCategoryDao
.
load
(
productCategoryVo
,
ProductCategoryVo
.
class
);
ObjectHelper
.
writeWithFrom
(
load
,
req
);
load
.
setUpdateTime
(
DateHelper
.
getNow
());
productCategoryDao
.
update
(
load
);
return
req
.
getCategoryId
();
}
}
@Override
public
ProductCategoryResVo
load
(
ProductCategoryReqVo
req
)
{
ProductCategoryVo
productCategoryVo
=
new
ProductCategoryVo
();
productCategoryVo
.
setCategoryId
(
req
.
getCategoryId
());
ProductCategoryResVo
load
=
productCategoryDao
.
load
(
productCategoryVo
,
ProductCategoryResVo
.
class
);
return
load
;
}
@Override
public
PageSizeData
<
ProductCategoryResVo
>
loadPage
(
ProductCategoryLoadPageReqVo
req
)
{
PageSizeData
<
ProductCategoryResVo
>
page
=
productCategoryDao
.
loadPage
(
req
,
ProductCategoryResVo
.
class
);
return
page
;
}
@Override
public
String
remove
(
ProductCategoryReqVo
req
)
{
ProductCategoryVo
productCategoryVo
=
new
ProductCategoryVo
();
productCategoryVo
.
setCategoryId
(
req
.
getCategoryId
());
productCategoryDao
.
remove
(
productCategoryVo
);
productDao
.
remove
(
productCategoryVo
);
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
req
.
getCategoryId
());
imageService
.
remove
(
imageReqVo
);
return
req
.
getCategoryId
();
}
@Override
public
PageSizeData
<
ProductCategoryResVo
>
categoryProductPage
(
ProductCategoryLoadPageReqVo
req
)
{
PageSizeData
<
ProductCategoryResVo
>
page
=
productCategoryDao
.
loadByPage
(
req
);
List
<
ProductExtendVo
>
productExtendList
=
productExtendDao
.
loadList
(
req
,
ProductExtendVo
.
class
);
Map
<
String
,
ProductExtendVo
>
productExtendVoMap
=
MapHelper
.
getMap
(
productExtendList
,
ProductExtendVo:
:
getProductId
);
page
.
getList
().
forEach
(
item
->
{
ProductReqVo
productVo
=
new
ProductReqVo
();
productVo
.
setCategoryId
(
item
.
getCategoryId
());
List
<
ProductResVo
>
loadList
=
productDao
.
loadInfoList
(
productVo
);
loadList
.
forEach
(
product
->
{
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
product
.
getProductId
());
List
<
ImageResVo
>
imageList
=
imageService
.
loadList
(
imageReqVo
);
product
.
setImageList
(
imageList
);
ProductExtendVo
productExtendVo
=
productExtendVoMap
.
get
(
product
.
getProductId
());
if
(
productExtendVo
!=
null
)
{
product
.
setProductName
(
productExtendVo
.
getProductName
());
product
.
setProductExtendVo
(
productExtendVo
);
}
});
item
.
setProductList
(
loadList
);
});
return
page
;
}
}
src/main/java/com/tcm/product/service/impl/ProductServiceImpl.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
service
.
impl
;
import
com.tcm.common.service.ImageService
;
import
com.tcm.product.dao.ProductCategoryDao
;
import
com.tcm.product.dao.ProductDao
;
import
com.tcm.product.dao.ProductExtendDao
;
import
com.tcm.product.service.ProductService
;
import
com.tcm.util.common.ImageVo
;
import
com.tcm.util.common.req.ImageReqVo
;
import
com.tcm.util.common.res.ImageResVo
;
import
com.tcm.util.product.ProductExtendVo
;
import
com.tcm.util.product.ProductVo
;
import
com.tcm.util.product.req.ProductLoadPageReqVo
;
import
com.tcm.util.product.req.ProductReqVo
;
import
com.tcm.util.product.res.ProductResVo
;
import
com.yanzuoguang.util.base.ObjectHelper
;
import
com.yanzuoguang.util.helper.DateHelper
;
import
com.yanzuoguang.util.helper.MapHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
@Service
public
class
ProductServiceImpl
implements
ProductService
{
private
final
ProductDao
productDao
;
private
final
ProductExtendDao
productExtendDao
;
private
final
ProductCategoryDao
productCategoryDao
;
private
final
ImageService
imageService
;
public
ProductServiceImpl
(
ProductDao
productDao
,
ProductExtendDao
productExtendDao
,
ProductCategoryDao
productCategoryDao
,
ImageService
imageService
)
{
this
.
productDao
=
productDao
;
this
.
productExtendDao
=
productExtendDao
;
this
.
productCategoryDao
=
productCategoryDao
;
this
.
imageService
=
imageService
;
}
@Override
public
String
save
(
ProductReqVo
req
)
{
if
(
StringHelper
.
isEmpty
(
req
.
getProductId
()))
{
//新增
ProductVo
productVo
=
new
ProductVo
();
ObjectHelper
.
writeWithFrom
(
productVo
,
req
);
String
productId
=
StringHelper
.
getNewID
();
productVo
.
setProductId
(
productId
);
productVo
.
setCreateTime
(
DateHelper
.
getNow
());
productDao
.
create
(
productVo
);
ProductExtendVo
productExtendVo
=
new
ProductExtendVo
();
ObjectHelper
.
writeWithFrom
(
productExtendVo
,
req
.
getProductExtendVo
());
productExtendVo
.
setProductId
(
productId
);
productExtendVo
.
setProductExtendId
(
StringHelper
.
getNewID
());
productExtendVo
.
setCreateTime
(
DateHelper
.
getNow
());
productExtendDao
.
create
(
productExtendVo
);
//图片保存
saveImageList
(
req
.
getImageList
(),
productId
);
return
productId
;
}
else
{
ProductVo
productVo
=
new
ProductVo
();
productVo
.
setProductId
(
req
.
getProductId
());
ProductVo
load
=
productDao
.
load
(
productVo
,
ProductVo
.
class
);
ObjectHelper
.
writeWithFrom
(
load
,
req
);
load
.
setUpdateTime
(
DateHelper
.
getNow
());
productDao
.
update
(
load
);
//保存图片
saveImageList
(
req
.
getImageList
(),
req
.
getProductId
());
ProductExtendVo
productExtendVo
=
new
ProductExtendVo
();
productExtendVo
.
setProductId
(
req
.
getProductId
());
productExtendVo
.
setLanguageType
(
req
.
getProductExtendVo
().
getLanguageType
());
ProductExtendVo
loadExtend
=
productExtendDao
.
load
(
productExtendVo
,
ProductExtendVo
.
class
);
if
(
StringHelper
.
isEmpty
(
loadExtend
))
{
//新增
ObjectHelper
.
writeWithFrom
(
productExtendVo
,
req
.
getProductExtendVo
());
productExtendVo
.
setProductExtendId
(
StringHelper
.
getNewID
());
productExtendVo
.
setCreateTime
(
DateHelper
.
getNow
());
productExtendDao
.
create
(
productExtendVo
);
}
else
{
ObjectHelper
.
writeWithFrom
(
loadExtend
,
req
.
getProductExtendVo
());
loadExtend
.
setUpdateTime
(
DateHelper
.
getNow
());
productExtendDao
.
update
(
loadExtend
);
}
return
req
.
getProductId
();
}
}
private
void
saveImageList
(
List
<
ImageVo
>
imageList
,
String
productId
)
{
if
(
imageList
.
size
()
>
0
)
{
//删除之前的图片
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
productId
);
imageService
.
remove
(
imageReqVo
);
//保存图片
List
<
ImageVo
>
saveList
=
new
ArrayList
<>();
for
(
ImageVo
imageVo
:
imageList
)
{
ImageReqVo
imageSave
=
new
ImageReqVo
();
imageSave
.
setImageUrl
(
imageVo
.
getImageUrl
());
saveList
.
add
(
imageSave
);
}
imageReqVo
.
setImageStatus
(
0
);
imageReqVo
.
setImageType
(
0
);
imageReqVo
.
setRelationId
(
productId
);
imageReqVo
.
setImageList
(
saveList
);
imageService
.
saveList
(
imageReqVo
);
}
}
@Override
public
ProductResVo
load
(
ProductReqVo
req
)
{
ProductVo
productVo
=
new
ProductVo
();
productVo
.
setProductId
(
req
.
getProductId
());
ProductResVo
loadRes
=
productDao
.
load
(
productVo
,
ProductResVo
.
class
);
ProductExtendVo
productExtendVo
=
new
ProductExtendVo
();
productExtendVo
.
setProductId
(
req
.
getProductId
());
productExtendVo
.
setLanguageType
(
req
.
getLanguageType
());
ProductExtendVo
loadExtend
=
productExtendDao
.
load
(
productExtendVo
,
ProductExtendVo
.
class
);
loadRes
.
setProductExtendVo
(
loadExtend
);
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
req
.
getProductId
());
List
<
ImageResVo
>
imageList
=
imageService
.
loadList
(
imageReqVo
);
loadRes
.
setImageList
(
imageList
);
return
loadRes
;
}
@Override
public
PageSizeData
<
ProductResVo
>
loadPage
(
ProductLoadPageReqVo
req
)
{
PageSizeData
<
ProductResVo
>
page
=
productDao
.
loadByPage
(
req
);
ProductExtendVo
productExtendVo
=
new
ProductExtendVo
();
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
for
(
ProductResVo
res
:
page
.
getList
())
{
productExtendVo
.
setProductId
(
res
.
getProductId
());
productExtendVo
.
setLanguageType
(
req
.
getLanguageType
());
ProductExtendVo
loadExtend
=
productExtendDao
.
load
(
productExtendVo
,
ProductExtendVo
.
class
);
res
.
setProductExtendVo
(
loadExtend
);
imageReqVo
.
setRelationId
(
res
.
getProductId
());
List
<
ImageResVo
>
imageList
=
imageService
.
loadList
(
imageReqVo
);
res
.
setImageList
(
imageList
);
}
return
page
;
}
@Override
public
String
remove
(
ProductReqVo
req
)
{
ProductVo
productVo
=
new
ProductVo
();
productVo
.
setProductId
(
req
.
getProductId
());
productDao
.
remove
(
productVo
);
ProductExtendVo
productExtendVo
=
new
ProductExtendVo
();
productExtendVo
.
setProductId
(
req
.
getProductId
());
productExtendDao
.
remove
(
productExtendVo
);
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
req
.
getProductId
());
imageService
.
remove
(
imageReqVo
);
return
req
.
getProductId
();
}
@Override
public
PageSizeData
<
ProductResVo
>
displayList
(
ProductLoadPageReqVo
req
)
{
PageSizeData
<
ProductResVo
>
page
=
productDao
.
loadPage
(
req
,
ProductResVo
.
class
);
List
<
ProductExtendVo
>
productExtendList
=
productExtendDao
.
loadList
(
req
,
ProductExtendVo
.
class
);
Map
<
String
,
ProductExtendVo
>
productExtendVoMap
=
MapHelper
.
getMap
(
productExtendList
,
ProductExtendVo:
:
getProductId
);
page
.
getList
().
forEach
(
item
->
{
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
imageReqVo
.
setRelationId
(
item
.
getProductId
());
item
.
setImageList
(
imageService
.
loadList
(
imageReqVo
));
ProductExtendVo
productExtendVo
=
productExtendVoMap
.
get
(
item
.
getProductId
());
item
.
setProductExtendVo
(
productExtendVo
);
item
.
setProductName
(
productExtendVo
.
getProductName
());
});
return
page
;
}
@Override
public
String
changeStatus
(
ProductReqVo
req
)
{
ProductVo
productVo
=
new
ProductVo
();
productVo
.
setProductId
(
req
.
getProductId
());
ProductVo
load
=
productDao
.
load
(
productVo
,
ProductVo
.
class
);
load
.
setStatus
(
req
.
getStatus
());
productDao
.
update
(
load
);
return
req
.
getProductId
();
}
}
src/main/java/com/tcm/product/web/ProductCategoryController.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
web
;
import
com.tcm.product.service.ProductCategoryService
;
import
com.tcm.util.product.req.ProductCategoryLoadPageReqVo
;
import
com.tcm.util.product.req.ProductCategoryReqVo
;
import
com.tcm.util.product.res.ProductCategoryResVo
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
com.yanzuoguang.util.vo.ResponseResult
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 产品分类管理
*/
@RestController
@RequestMapping
(
"/productCategory"
)
public
class
ProductCategoryController
{
private
final
ProductCategoryService
productCategoryService
;
public
ProductCategoryController
(
ProductCategoryService
productCategoryService
)
{
this
.
productCategoryService
=
productCategoryService
;
}
/**
* 产品分类新增
*/
@RequestMapping
(
"/save"
)
public
ResponseResult
<
String
>
save
(
@RequestBody
ProductCategoryReqVo
req
)
{
return
ResponseResult
.
result
(
productCategoryService
.
save
(
req
));
}
/**
* 产品分类加载
*/
@RequestMapping
(
"/load"
)
public
ResponseResult
<
ProductCategoryResVo
>
load
(
@RequestBody
ProductCategoryReqVo
req
)
{
return
ResponseResult
.
result
(
productCategoryService
.
load
(
req
));
}
/**
* 产品分类分页查询
*/
@RequestMapping
(
"/loadPage"
)
public
ResponseResult
<
PageSizeData
<
ProductCategoryResVo
>>
loadPage
(
@RequestBody
ProductCategoryLoadPageReqVo
req
)
{
return
ResponseResult
.
result
(
productCategoryService
.
loadPage
(
req
));
}
/**
* 产品分类删除
*/
@RequestMapping
(
"/remove"
)
public
ResponseResult
<
String
>
remove
(
@RequestBody
ProductCategoryReqVo
req
)
{
return
ResponseResult
.
result
(
productCategoryService
.
remove
(
req
));
}
/**
* 分类展示产品
*/
@RequestMapping
(
"/categoryProductPage"
)
public
ResponseResult
<
PageSizeData
<
ProductCategoryResVo
>>
categoryProductPage
(
@RequestBody
ProductCategoryLoadPageReqVo
req
)
{
return
ResponseResult
.
result
(
productCategoryService
.
categoryProductPage
(
req
));
}
}
src/main/java/com/tcm/product/web/ProductController.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
product
.
web
;
import
com.tcm.product.service.ProductService
;
import
com.tcm.util.product.req.ProductLoadPageReqVo
;
import
com.tcm.util.product.req.ProductReqVo
;
import
com.tcm.util.product.res.ProductResVo
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
com.yanzuoguang.util.vo.ResponseResult
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"/product"
)
public
class
ProductController
{
private
final
ProductService
productService
;
public
ProductController
(
ProductService
productService
)
{
this
.
productService
=
productService
;
}
/**
* 产品新增
*/
@RequestMapping
(
"/save"
)
public
ResponseResult
<
String
>
save
(
@RequestBody
ProductReqVo
req
)
{
return
ResponseResult
.
result
(
productService
.
save
(
req
));
}
/**
* 产品加载
*/
@RequestMapping
(
"/load"
)
public
ResponseResult
<
ProductResVo
>
load
(
@RequestBody
ProductReqVo
req
)
{
return
ResponseResult
.
result
(
productService
.
load
(
req
));
}
/**
* 产品分页查询
*/
@RequestMapping
(
"/loadPage"
)
public
ResponseResult
<
PageSizeData
<
ProductResVo
>>
loadPage
(
@RequestBody
ProductLoadPageReqVo
req
)
{
return
ResponseResult
.
result
(
productService
.
loadPage
(
req
));
}
/**
* 产品上下架
*/
@RequestMapping
(
"/changeStatus"
)
public
ResponseResult
<
String
>
changeStatus
(
@RequestBody
ProductReqVo
req
)
{
return
ResponseResult
.
result
(
productService
.
changeStatus
(
req
));
}
/**
* 产品删除
*/
@RequestMapping
(
"/remove"
)
public
ResponseResult
<
String
>
remove
(
@RequestBody
ProductReqVo
req
)
{
return
ResponseResult
.
result
(
productService
.
remove
(
req
));
}
/**
* 客户端展示产品
*/
@RequestMapping
(
"/displayList"
)
public
ResponseResult
<
PageSizeData
<
ProductResVo
>>
displayList
(
@RequestBody
ProductLoadPageReqVo
req
)
{
return
ResponseResult
.
result
(
productService
.
displayList
(
req
));
}
}
src/main/java/com/tcm/system/position/vo/PositionVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
system
.
position
.
vo
;
public
class
PositionVo
{
}
src/main/java/com/tcm/util/area/CenterDisplayVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_center_display"
)
public
class
CenterDisplayVo
{
/**
* 中心展示内容主键id
*/
@TableAnnotation
(
"display_id"
)
@ApiModelProperty
(
notes
=
"中心展示内容主键id"
)
private
String
displayId
;
/**
* 区域id
*/
@TableAnnotation
(
"area_id"
)
@ApiModelProperty
(
notes
=
"区域id"
)
private
String
areaId
;
/**
* 标题
*/
@TableAnnotation
(
"title"
)
@ApiModelProperty
(
notes
=
"标题"
)
private
String
title
;
/**
* 展示类型
*/
@TableAnnotation
(
"content_type"
)
@ApiModelProperty
(
notes
=
"展示类型"
)
private
Integer
contentType
;
/**
* 内容介绍
*/
@TableAnnotation
(
"content"
)
@ApiModelProperty
(
notes
=
"内容介绍"
)
private
String
content
;
/**
* 展示状态0展示1不展示
*/
@TableAnnotation
(
"display_status"
)
@ApiModelProperty
(
notes
=
"展示状态0展示1不展示"
)
private
Integer
displayStatus
;
/**
* 排序
*/
@TableAnnotation
(
"sort"
)
@ApiModelProperty
(
notes
=
"排序"
)
private
Integer
sort
;
/**
* 创建时间
*/
@TableAnnotation
(
"create_time"
)
@ApiModelProperty
(
notes
=
"创建时间"
)
private
String
createTime
;
/**
* 更新时间
*/
@TableAnnotation
(
"update_time"
)
@ApiModelProperty
(
notes
=
"更新时间"
)
private
String
updateTime
;
public
CenterDisplayVo
()
{
}
public
String
getDisplayId
()
{
return
displayId
;
}
public
void
setDisplayId
(
String
displayId
)
{
this
.
displayId
=
displayId
;
}
public
String
getAreaId
()
{
return
areaId
;
}
public
void
setAreaId
(
String
areaId
)
{
this
.
areaId
=
areaId
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
Integer
getContentType
()
{
return
contentType
;
}
public
void
setContentType
(
Integer
contentType
)
{
this
.
contentType
=
contentType
;
}
public
String
getContent
()
{
return
content
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
}
public
Integer
getDisplayStatus
()
{
return
displayStatus
;
}
public
void
setDisplayStatus
(
Integer
displayStatus
)
{
this
.
displayStatus
=
displayStatus
;
}
public
Integer
getSort
()
{
return
sort
;
}
public
void
setSort
(
Integer
sort
)
{
this
.
sort
=
sort
;
}
public
String
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
String
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
src/main/java/com/tcm/util/area/FloorAreaExtendVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_floor_area_extend"
)
public
class
FloorAreaExtendVo
{
/**
* 区域扩展id
*/
@TableAnnotation
(
"area_extend_id"
)
@ApiModelProperty
(
notes
=
"区域扩展id"
)
private
String
areaExtendId
;
/**
* 区域id
*/
@TableAnnotation
(
"area_id"
)
@ApiModelProperty
(
notes
=
"区域id"
)
private
String
areaId
;
/**
* 语言类型
*/
@TableAnnotation
(
"language_type"
)
@ApiModelProperty
(
notes
=
"语言类型"
)
private
Integer
languageType
;
/**
* 区域名称
*/
@TableAnnotation
(
"area_name"
)
@ApiModelProperty
(
notes
=
"区域名称"
)
private
String
areaName
;
/**
* 区域标签
*/
@TableAnnotation
(
"label"
)
@ApiModelProperty
(
notes
=
"区域标签"
)
private
String
label
;
/**
* 区域描述
*/
@TableAnnotation
(
"area_desc"
)
@ApiModelProperty
(
notes
=
"区域描述"
)
private
String
areaDesc
;
/**
* 位置
*/
@TableAnnotation
(
"position"
)
@ApiModelProperty
(
notes
=
"位置"
)
private
String
position
;
public
FloorAreaExtendVo
()
{
}
public
String
getAreaExtendId
()
{
return
areaExtendId
;
}
public
void
setAreaExtendId
(
String
areaExtendId
)
{
this
.
areaExtendId
=
areaExtendId
;
}
public
String
getAreaId
()
{
return
areaId
;
}
public
void
setAreaId
(
String
areaId
)
{
this
.
areaId
=
areaId
;
}
public
Integer
getLanguageType
()
{
return
languageType
;
}
public
void
setLanguageType
(
Integer
languageType
)
{
this
.
languageType
=
languageType
;
}
public
String
getAreaName
()
{
return
areaName
;
}
public
void
setAreaName
(
String
areaName
)
{
this
.
areaName
=
areaName
;
}
public
String
getAreaDesc
()
{
return
areaDesc
;
}
public
void
setAreaDesc
(
String
areaDesc
)
{
this
.
areaDesc
=
areaDesc
;
}
public
String
getPosition
()
{
return
position
;
}
public
void
setPosition
(
String
position
)
{
this
.
position
=
position
;
}
public
String
getLabel
()
{
return
label
;
}
public
void
setLabel
(
String
label
)
{
this
.
label
=
label
;
}
}
src/main/java/com/tcm/util/area/FloorAreaVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.models.auth.In
;
@TableAnnotation
(
"tcm_floor_area"
)
public
class
FloorAreaVo
{
/**
* 区域主键id
*/
@TableAnnotation
(
"area_id"
)
@ApiModelProperty
(
notes
=
"区域主键id"
)
private
String
areaId
;
/**
* 楼层主键id
*/
@TableAnnotation
(
"floor_id"
)
@ApiModelProperty
(
notes
=
"楼层主键id"
)
private
String
floorId
;
/**
* 是否特殊区0是1否
*/
@TableAnnotation
(
"is_feature"
)
@ApiModelProperty
(
notes
=
"是否特殊区0是1否"
)
private
Integer
isFeature
;
/**
* 区域图标
*/
@TableAnnotation
(
"area_icon"
)
@ApiModelProperty
(
notes
=
"区域图标"
)
private
String
areaIcon
;
/**
* 排序
*/
@TableAnnotation
(
"sort"
)
@ApiModelProperty
(
notes
=
"排序"
)
private
Integer
sort
;
/**
* 区域状态0启用1禁用
*/
@TableAnnotation
(
"area_status"
)
@ApiModelProperty
(
notes
=
"区域状态0启用1禁用"
)
private
Integer
areaStatus
;
/**
* 创建时间
*/
@TableAnnotation
(
"create_time"
)
@ApiModelProperty
(
notes
=
"创建时间"
)
private
String
createTime
;
/**
* 更新时间
*/
@TableAnnotation
(
"update_time"
)
@ApiModelProperty
(
notes
=
"更新时间"
)
private
String
updateTime
;
public
FloorAreaVo
()
{
}
public
String
getAreaId
()
{
return
areaId
;
}
public
void
setAreaId
(
String
areaId
)
{
this
.
areaId
=
areaId
;
}
public
String
getFloorId
()
{
return
floorId
;
}
public
void
setFloorId
(
String
floorId
)
{
this
.
floorId
=
floorId
;
}
public
Integer
getIsFeature
()
{
return
isFeature
;
}
public
void
setIsFeature
(
Integer
isFeature
)
{
this
.
isFeature
=
isFeature
;
}
public
String
getAreaIcon
()
{
return
areaIcon
;
}
public
void
setAreaIcon
(
String
areaIcon
)
{
this
.
areaIcon
=
areaIcon
;
}
public
Integer
getSort
()
{
return
sort
;
}
public
void
setSort
(
Integer
sort
)
{
this
.
sort
=
sort
;
}
public
String
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
String
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
Integer
getAreaStatus
()
{
return
areaStatus
;
}
public
void
setAreaStatus
(
Integer
areaStatus
)
{
this
.
areaStatus
=
areaStatus
;
}
}
src/main/java/com/tcm/util/area/FloorExtendVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_floor_extend"
)
public
class
FloorExtendVo
{
/**
* 楼层扩展id
*/
@TableAnnotation
(
"floor_extend_id"
)
@ApiModelProperty
(
notes
=
"楼层扩展id"
)
private
String
floorExtendId
;
/**
* 楼层id
*/
@TableAnnotation
(
"floor_id"
)
@ApiModelProperty
(
notes
=
"楼层id"
)
private
String
floorId
;
/**
* 楼层名称
*/
@TableAnnotation
(
"floor_name"
)
@ApiModelProperty
(
notes
=
"楼层名称"
)
private
String
floorName
;
/**
* 楼层标签
*/
@TableAnnotation
(
"label"
)
@ApiModelProperty
(
notes
=
"楼层标签"
)
private
String
label
;
/**
* 语言类型
*/
@TableAnnotation
(
"language_type"
)
@ApiModelProperty
(
notes
=
"语言类型"
)
private
Integer
languageType
;
/**
* 楼层详情介绍
*/
@TableAnnotation
(
"floor_desc"
)
@ApiModelProperty
(
notes
=
"楼层详情介绍"
)
private
String
floorDesc
;
public
FloorExtendVo
()
{
}
public
String
getFloorExtendId
()
{
return
floorExtendId
;
}
public
void
setFloorExtendId
(
String
floorExtendId
)
{
this
.
floorExtendId
=
floorExtendId
;
}
public
String
getFloorId
()
{
return
floorId
;
}
public
void
setFloorId
(
String
floorId
)
{
this
.
floorId
=
floorId
;
}
public
String
getFloorName
()
{
return
floorName
;
}
public
void
setFloorName
(
String
floorName
)
{
this
.
floorName
=
floorName
;
}
public
Integer
getLanguageType
()
{
return
languageType
;
}
public
void
setLanguageType
(
Integer
languageType
)
{
this
.
languageType
=
languageType
;
}
public
String
getFloorDesc
()
{
return
floorDesc
;
}
public
void
setFloorDesc
(
String
floorDesc
)
{
this
.
floorDesc
=
floorDesc
;
}
public
String
getLabel
()
{
return
label
;
}
public
void
setLabel
(
String
label
)
{
this
.
label
=
label
;
}
}
src/main/java/com/tcm/util/area/FloorVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_floor"
)
public
class
FloorVo
{
/**
* 楼层主键id
*/
@TableAnnotation
(
"floor_id"
)
@ApiModelProperty
(
notes
=
"楼层主键id"
)
private
String
floorId
;
/**
* 楼层图标
*/
@TableAnnotation
(
"floor_icon"
)
@ApiModelProperty
(
notes
=
"楼层图标"
)
private
String
floorIcon
;
/**
* 楼层状态
*/
@TableAnnotation
(
"floor_status"
)
@ApiModelProperty
(
notes
=
"楼层状态"
)
private
Integer
floorStatus
;
/**
* 排序
*/
@TableAnnotation
(
"sort"
)
@ApiModelProperty
(
notes
=
"排序"
)
private
Integer
sort
;
/**
* 创建时间
*/
@TableAnnotation
(
"create_time"
)
@ApiModelProperty
(
notes
=
"创建时间"
)
private
String
createTime
;
/**
* 更新时间
*/
@TableAnnotation
(
"update_time"
)
@ApiModelProperty
(
notes
=
"更新时间"
)
private
String
updateTime
;
public
FloorVo
()
{
}
public
String
getFloorId
()
{
return
floorId
;
}
public
void
setFloorId
(
String
floorId
)
{
this
.
floorId
=
floorId
;
}
public
String
getFloorIcon
()
{
return
floorIcon
;
}
public
void
setFloorIcon
(
String
floorIcon
)
{
this
.
floorIcon
=
floorIcon
;
}
public
Integer
getFloorStatus
()
{
return
floorStatus
;
}
public
void
setFloorStatus
(
Integer
floorStatus
)
{
this
.
floorStatus
=
floorStatus
;
}
public
Integer
getSort
()
{
return
sort
;
}
public
void
setSort
(
Integer
sort
)
{
this
.
sort
=
sort
;
}
public
String
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
String
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
src/main/java/com/tcm/util/area/req/CenterDisplayReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
.
req
;
import
com.tcm.util.area.CenterDisplayVo
;
public
class
CenterDisplayReqVo
extends
CenterDisplayVo
{
}
src/main/java/com/tcm/util/area/req/FloorAreaLoadPageReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
.
req
;
import
com.yanzuoguang.util.vo.PageSizeReqVo
;
public
class
FloorAreaLoadPageReqVo
extends
PageSizeReqVo
{
private
String
floorId
;
private
String
areaId
;
private
Integer
languageType
;
private
String
areaName
;
private
Integer
areaStatus
;
public
String
getFloorId
()
{
return
floorId
;
}
public
void
setFloorId
(
String
floorId
)
{
this
.
floorId
=
floorId
;
}
public
String
getAreaId
()
{
return
areaId
;
}
public
void
setAreaId
(
String
areaId
)
{
this
.
areaId
=
areaId
;
}
public
Integer
getLanguageType
()
{
return
languageType
;
}
public
void
setLanguageType
(
Integer
languageType
)
{
this
.
languageType
=
languageType
;
}
public
String
getAreaName
()
{
return
areaName
;
}
public
void
setAreaName
(
String
areaName
)
{
this
.
areaName
=
areaName
;
}
public
Integer
getAreaStatus
()
{
return
areaStatus
;
}
public
void
setAreaStatus
(
Integer
areaStatus
)
{
this
.
areaStatus
=
areaStatus
;
}
}
src/main/java/com/tcm/util/area/req/FloorAreaReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
.
req
;
import
com.tcm.util.area.FloorAreaExtendVo
;
import
com.tcm.util.area.FloorAreaVo
;
import
com.tcm.util.common.ImageVo
;
import
java.util.List
;
public
class
FloorAreaReqVo
extends
FloorAreaVo
{
private
Integer
languageType
;
private
FloorAreaExtendVo
floorAreaExtendVo
;
private
List
<
ImageVo
>
imageVoList
;
public
List
<
ImageVo
>
getImageVoList
()
{
return
imageVoList
;
}
public
void
setImageVoList
(
List
<
ImageVo
>
imageVoList
)
{
this
.
imageVoList
=
imageVoList
;
}
public
FloorAreaExtendVo
getFloorAreaExtendVo
()
{
return
floorAreaExtendVo
;
}
public
void
setFloorAreaExtendVo
(
FloorAreaExtendVo
floorAreaExtendVo
)
{
this
.
floorAreaExtendVo
=
floorAreaExtendVo
;
}
public
Integer
getLanguageType
()
{
return
languageType
;
}
public
void
setLanguageType
(
Integer
languageType
)
{
this
.
languageType
=
languageType
;
}
}
src/main/java/com/tcm/util/area/req/FloorLoadPageReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
.
req
;
import
com.yanzuoguang.util.vo.PageSizeReqVo
;
public
class
FloorLoadPageReqVo
extends
PageSizeReqVo
{
private
Integer
languageType
;
private
Integer
floorStatus
;
public
Integer
getLanguageType
()
{
return
languageType
;
}
public
void
setLanguageType
(
Integer
languageType
)
{
this
.
languageType
=
languageType
;
}
public
Integer
getFloorStatus
()
{
return
floorStatus
;
}
public
void
setFloorStatus
(
Integer
floorStatus
)
{
this
.
floorStatus
=
floorStatus
;
}
}
src/main/java/com/tcm/util/area/req/FloorReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
.
req
;
import
com.tcm.util.area.FloorExtendVo
;
import
com.tcm.util.area.FloorVo
;
import
com.tcm.util.common.ImageVo
;
import
com.tcm.util.common.res.ImageResVo
;
import
java.util.List
;
public
class
FloorReqVo
extends
FloorVo
{
private
Integer
isFeature
;
private
Integer
areaStatus
;
private
Integer
languageType
;
private
FloorExtendVo
floorExtendVo
;
private
List
<
ImageVo
>
imageList
;
public
FloorExtendVo
getFloorExtendVo
()
{
return
floorExtendVo
;
}
public
void
setFloorExtendVo
(
FloorExtendVo
floorExtendVo
)
{
this
.
floorExtendVo
=
floorExtendVo
;
}
public
Integer
getLanguageType
()
{
return
languageType
;
}
public
void
setLanguageType
(
Integer
languageType
)
{
this
.
languageType
=
languageType
;
}
public
Integer
getIsFeature
()
{
return
isFeature
;
}
public
void
setIsFeature
(
Integer
isFeature
)
{
this
.
isFeature
=
isFeature
;
}
public
Integer
getAreaStatus
()
{
return
areaStatus
;
}
public
void
setAreaStatus
(
Integer
areaStatus
)
{
this
.
areaStatus
=
areaStatus
;
}
public
List
<
ImageVo
>
getImageList
()
{
return
imageList
;
}
public
void
setImageList
(
List
<
ImageVo
>
imageList
)
{
this
.
imageList
=
imageList
;
}
}
src/main/java/com/tcm/util/area/res/CenterDisplayHomeLoadResVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
.
res
;
import
com.tcm.util.common.ImageVo
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
CenterDisplayHomeLoadResVo
{
private
String
content
;
private
List
<
ImageVo
>
imageList
=
new
ArrayList
<>();
private
List
<
CenterDisplayLoadResVo
>
loadTypeList
=
new
ArrayList
<>();
public
String
getContent
()
{
return
content
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
}
public
List
<
ImageVo
>
getImageList
()
{
return
imageList
;
}
public
void
setImageList
(
List
<
ImageVo
>
imageList
)
{
this
.
imageList
=
imageList
;
}
public
List
<
CenterDisplayLoadResVo
>
getLoadTypeList
()
{
return
loadTypeList
;
}
public
void
setLoadTypeList
(
List
<
CenterDisplayLoadResVo
>
loadTypeList
)
{
this
.
loadTypeList
=
loadTypeList
;
}
}
src/main/java/com/tcm/util/area/res/CenterDisplayLoadResVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
.
res
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
CenterDisplayLoadResVo
{
private
String
title
;
private
String
content
;
private
Integer
contentType
;
private
List
<
FloorAreaResVo
>
list
=
new
ArrayList
<>();
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
List
<
FloorAreaResVo
>
getList
()
{
return
list
;
}
public
void
setList
(
List
<
FloorAreaResVo
>
list
)
{
this
.
list
=
list
;
}
public
String
getContent
()
{
return
content
;
}
public
void
setContent
(
String
content
)
{
this
.
content
=
content
;
}
public
Integer
getContentType
()
{
return
contentType
;
}
public
void
setContentType
(
Integer
contentType
)
{
this
.
contentType
=
contentType
;
}
}
src/main/java/com/tcm/util/area/res/CenterDisplayResVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
.
res
;
import
com.tcm.util.area.CenterDisplayVo
;
public
class
CenterDisplayResVo
extends
CenterDisplayVo
{
private
String
iconUrl
;
public
String
getIconUrl
()
{
return
iconUrl
;
}
public
void
setIconUrl
(
String
iconUrl
)
{
this
.
iconUrl
=
iconUrl
;
}
}
src/main/java/com/tcm/util/area/res/FloorAreaResVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
.
res
;
import
com.tcm.util.area.FloorAreaExtendVo
;
import
com.tcm.util.area.FloorAreaVo
;
import
com.tcm.util.area.FloorExtendVo
;
import
com.tcm.util.common.res.ImageResVo
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
FloorAreaResVo
extends
FloorAreaVo
{
/**
* 区域名称
*/
@ApiModelProperty
(
notes
=
"区域名称"
)
private
String
areaName
;
/**
* 区域描述
*/
@ApiModelProperty
(
notes
=
"区域描述"
)
private
String
areaDesc
;
/**
* 区域具体位置介绍
*/
@ApiModelProperty
(
notes
=
"区域具体位置介绍"
)
private
String
position
;
private
FloorAreaExtendVo
areaExtendVo
;
public
String
getAreaName
()
{
return
areaName
;
}
public
void
setAreaName
(
String
areaName
)
{
this
.
areaName
=
areaName
;
}
public
String
getAreaDesc
()
{
return
areaDesc
;
}
public
void
setAreaDesc
(
String
areaDesc
)
{
this
.
areaDesc
=
areaDesc
;
}
public
String
getPosition
()
{
return
position
;
}
public
void
setPosition
(
String
position
)
{
this
.
position
=
position
;
}
private
List
<
ImageResVo
>
imageList
=
new
ArrayList
<>();
public
List
<
ImageResVo
>
getImageList
()
{
return
imageList
;
}
public
void
setImageList
(
List
<
ImageResVo
>
imageList
)
{
this
.
imageList
=
imageList
;
}
public
FloorAreaExtendVo
getAreaExtendVo
()
{
return
areaExtendVo
;
}
public
void
setAreaExtendVo
(
FloorAreaExtendVo
areaExtendVo
)
{
this
.
areaExtendVo
=
areaExtendVo
;
}
}
src/main/java/com/tcm/util/area/res/FloorHomeLoadResVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
.
res
;
import
com.tcm.util.common.res.CarouselResVo
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
FloorHomeLoadResVo
{
private
CarouselResVo
carouselVo
;
private
List
<
FloorResVo
>
floorList
=
new
ArrayList
<>();
private
List
<
FloorAreaResVo
>
floorAreaList
=
new
ArrayList
<>();
public
List
<
FloorResVo
>
getFloorList
()
{
return
floorList
;
}
public
void
setFloorList
(
List
<
FloorResVo
>
floorList
)
{
this
.
floorList
=
floorList
;
}
public
List
<
FloorAreaResVo
>
getFloorAreaList
()
{
return
floorAreaList
;
}
public
void
setFloorAreaList
(
List
<
FloorAreaResVo
>
floorAreaList
)
{
this
.
floorAreaList
=
floorAreaList
;
}
public
CarouselResVo
getCarouselVo
()
{
return
carouselVo
;
}
public
void
setCarouselVo
(
CarouselResVo
carouselVo
)
{
this
.
carouselVo
=
carouselVo
;
}
}
src/main/java/com/tcm/util/area/res/FloorResVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
area
.
res
;
import
com.tcm.util.area.FloorExtendVo
;
import
com.tcm.util.area.FloorVo
;
import
com.tcm.util.common.res.ImageResVo
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
FloorResVo
extends
FloorVo
{
private
String
floorName
;
private
String
floorDesc
;
private
FloorExtendVo
floorExtendVo
;
private
List
<
FloorAreaResVo
>
floorAreaVoList
=
new
ArrayList
<>();
private
List
<
ImageResVo
>
imageResVoList
=
new
ArrayList
<>();
public
List
<
ImageResVo
>
getImageResVoList
()
{
return
imageResVoList
;
}
public
void
setImageResVoList
(
List
<
ImageResVo
>
imageResVoList
)
{
this
.
imageResVoList
=
imageResVoList
;
}
public
List
<
FloorAreaResVo
>
getFloorAreaVoList
()
{
return
floorAreaVoList
;
}
public
void
setFloorAreaVoList
(
List
<
FloorAreaResVo
>
floorAreaVoList
)
{
this
.
floorAreaVoList
=
floorAreaVoList
;
}
public
String
getFloorName
()
{
return
floorName
;
}
public
void
setFloorName
(
String
floorName
)
{
this
.
floorName
=
floorName
;
}
public
String
getFloorDesc
()
{
return
floorDesc
;
}
public
void
setFloorDesc
(
String
floorDesc
)
{
this
.
floorDesc
=
floorDesc
;
}
public
FloorExtendVo
getFloorExtendVo
()
{
return
floorExtendVo
;
}
public
void
setFloorExtendVo
(
FloorExtendVo
floorExtendVo
)
{
this
.
floorExtendVo
=
floorExtendVo
;
}
}
src/main/java/com/tcm/util/common/CarouselExtendVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.models.auth.In
;
@TableAnnotation
(
"tcm_carousel_extend"
)
public
class
CarouselExtendVo
{
/**
* 主键id
*/
@TableAnnotation
(
"carousel_extend_id"
)
@ApiModelProperty
(
notes
=
"主键id"
)
private
String
carouselExtendId
;
/**
* 标题
*/
@TableAnnotation
(
"title"
)
@ApiModelProperty
(
notes
=
"标题"
)
private
String
title
;
/**
* 内容详情
*/
@TableAnnotation
(
"carousel_info"
)
@ApiModelProperty
(
notes
=
"内容详情"
)
private
String
carouselInfo
;
/**
* 内容id
*/
@TableAnnotation
(
"carousel_id"
)
@ApiModelProperty
(
notes
=
"内容id"
)
private
String
carouselId
;
/**
* 语言类型
*/
@TableAnnotation
(
"language_type"
)
@ApiModelProperty
(
notes
=
"语言类型"
)
private
Integer
languageType
;
public
CarouselExtendVo
()
{
}
public
String
getCarouselExtendId
()
{
return
carouselExtendId
;
}
public
void
setCarouselExtendId
(
String
carouselExtendId
)
{
this
.
carouselExtendId
=
carouselExtendId
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
String
getCarouselInfo
()
{
return
carouselInfo
;
}
public
void
setCarouselInfo
(
String
carouselInfo
)
{
this
.
carouselInfo
=
carouselInfo
;
}
public
String
getCarouselId
()
{
return
carouselId
;
}
public
void
setCarouselId
(
String
carouselId
)
{
this
.
carouselId
=
carouselId
;
}
public
Integer
getLanguageType
()
{
return
languageType
;
}
public
void
setLanguageType
(
Integer
languageType
)
{
this
.
languageType
=
languageType
;
}
}
src/main/java/com/tcm/util/common/CarouselVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_carousel"
)
public
class
CarouselVo
{
/**
* 内容管理相关表主键id
*/
@TableAnnotation
(
"carousel_id"
)
@ApiModelProperty
(
notes
=
"内容管理相关表主键id"
)
private
String
carouselId
;
/**
* 内容类型
*/
@TableAnnotation
(
"carousel_type"
)
@ApiModelProperty
(
notes
=
"内容类型"
)
private
Integer
carouselType
;
/**
* 打开类型0当前页1新页面
*/
@TableAnnotation
(
"open_type"
)
@ApiModelProperty
(
notes
=
"内容类型"
)
private
Integer
openType
;
/**
* 资源url
*/
@TableAnnotation
(
"resource_url"
)
@ApiModelProperty
(
notes
=
"资源url"
)
private
String
resourceUrl
;
/**
* 关联内容url
*/
@TableAnnotation
(
"link_url"
)
@ApiModelProperty
(
notes
=
"关联内容url"
)
private
String
linkUrl
;
/**
* 展示位置0首页
*/
@TableAnnotation
(
"display_position"
)
@ApiModelProperty
(
notes
=
"展示位置"
)
private
Integer
displayPosition
;
/**
* 状态0正常1下架
*/
@TableAnnotation
(
"carousel_status"
)
@ApiModelProperty
(
notes
=
"状态0正常1下架"
)
private
Integer
carouselStatus
;
/**
* 排序
*/
@TableAnnotation
(
"sort"
)
@ApiModelProperty
(
notes
=
"排序"
)
private
Integer
sort
;
/**
* 发布时间
*/
@TableAnnotation
(
"push_time"
)
@ApiModelProperty
(
notes
=
"发布时间"
)
private
String
pushTime
;
/**
* 创建时间
*/
@TableAnnotation
(
"create_time"
)
@ApiModelProperty
(
notes
=
"创建时间"
)
private
String
createTime
;
/**
* 创建人
*/
@TableAnnotation
(
"create_user"
)
@ApiModelProperty
(
notes
=
"创建人"
)
private
String
createUser
;
/**
* 更新时间
*/
@TableAnnotation
(
"update_time"
)
@ApiModelProperty
(
notes
=
"更新时间"
)
private
String
updateTime
;
public
CarouselVo
()
{
}
public
String
getCarouselId
()
{
return
carouselId
;
}
public
void
setCarouselId
(
String
carouselId
)
{
this
.
carouselId
=
carouselId
;
}
public
Integer
getCarouselType
()
{
return
carouselType
;
}
public
void
setCarouselType
(
Integer
carouselType
)
{
this
.
carouselType
=
carouselType
;
}
public
String
getResourceUrl
()
{
return
resourceUrl
;
}
public
void
setResourceUrl
(
String
resourceUrl
)
{
this
.
resourceUrl
=
resourceUrl
;
}
public
String
getLinkUrl
()
{
return
linkUrl
;
}
public
void
setLinkUrl
(
String
linkUrl
)
{
this
.
linkUrl
=
linkUrl
;
}
public
Integer
getDisplayPosition
()
{
return
displayPosition
;
}
public
void
setDisplayPosition
(
Integer
displayPosition
)
{
this
.
displayPosition
=
displayPosition
;
}
public
Integer
getCarouselStatus
()
{
return
carouselStatus
;
}
public
void
setCarouselStatus
(
Integer
carouselStatus
)
{
this
.
carouselStatus
=
carouselStatus
;
}
public
Integer
getSort
()
{
return
sort
;
}
public
void
setSort
(
Integer
sort
)
{
this
.
sort
=
sort
;
}
public
String
getPushTime
()
{
return
pushTime
;
}
public
void
setPushTime
(
String
pushTime
)
{
this
.
pushTime
=
pushTime
;
}
public
String
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getCreateUser
()
{
return
createUser
;
}
public
void
setCreateUser
(
String
createUser
)
{
this
.
createUser
=
createUser
;
}
public
String
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
String
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
Integer
getOpenType
()
{
return
openType
;
}
public
void
setOpenType
(
Integer
openType
)
{
this
.
openType
=
openType
;
}
}
src/main/java/com/tcm/util/common/CompanyVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_company"
)
public
class
CompanyVo
{
/**
* 公司主键id
*/
@TableAnnotation
(
"company_id"
)
@ApiModelProperty
(
notes
=
"公司主键id"
)
private
String
companyId
;
/**
* 公司名称
*/
@TableAnnotation
(
"company_name"
)
@ApiModelProperty
(
notes
=
"公司名称"
)
private
String
companyName
;
/**
* 公司类型
*/
@TableAnnotation
(
"company_type"
)
@ApiModelProperty
(
notes
=
"公司类型"
)
private
Integer
companyType
;
/**
* 公司地址
*/
@TableAnnotation
(
"company_address"
)
@ApiModelProperty
(
notes
=
"公司地址"
)
private
String
companyAddress
;
/**
* 经度
*/
@TableAnnotation
(
"longitude"
)
@ApiModelProperty
(
notes
=
"经度"
)
private
Double
longitude
;
/**
* 纬度
*/
@TableAnnotation
(
"latitude"
)
@ApiModelProperty
(
notes
=
"纬度"
)
private
Double
latitude
;
/**
* 公司座机
*/
@TableAnnotation
(
"company_telephone"
)
@ApiModelProperty
(
notes
=
"公司座机"
)
private
String
companyTelephone
;
/**
* 工作日期时间
*/
@TableAnnotation
(
"work_time"
)
@ApiModelProperty
(
notes
=
"工作日期时间"
)
private
String
workTime
;
/**
* 节假日日期
*/
@TableAnnotation
(
"weekend_time"
)
@ApiModelProperty
(
notes
=
"节假日日期"
)
private
String
weekendTime
;
/**
* 公司状态0启用1禁用
*/
@TableAnnotation
(
"company_status"
)
@ApiModelProperty
(
notes
=
"公司状态0启用1禁用"
)
private
Integer
companyStatus
;
/**
* 创建时间
*/
@TableAnnotation
(
"create_time"
)
@ApiModelProperty
(
notes
=
"创建时间"
)
private
String
createTime
;
/**
* 更新时间
*/
@TableAnnotation
(
"update_time"
)
@ApiModelProperty
(
notes
=
"更新时间"
)
private
String
updateTime
;
public
CompanyVo
()
{
}
public
String
getCompanyId
()
{
return
companyId
;
}
public
void
setCompanyId
(
String
companyId
)
{
this
.
companyId
=
companyId
;
}
public
Integer
getCompanyType
()
{
return
companyType
;
}
public
void
setCompanyType
(
Integer
companyType
)
{
this
.
companyType
=
companyType
;
}
public
String
getCompanyName
()
{
return
companyName
;
}
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
public
String
getCompanyAddress
()
{
return
companyAddress
;
}
public
void
setCompanyAddress
(
String
companyAddress
)
{
this
.
companyAddress
=
companyAddress
;
}
public
Double
getLongitude
()
{
return
longitude
;
}
public
void
setLongitude
(
Double
longitude
)
{
this
.
longitude
=
longitude
;
}
public
Double
getLatitude
()
{
return
latitude
;
}
public
void
setLatitude
(
Double
latitude
)
{
this
.
latitude
=
latitude
;
}
public
String
getCompanyTelephone
()
{
return
companyTelephone
;
}
public
void
setCompanyTelephone
(
String
companyTelephone
)
{
this
.
companyTelephone
=
companyTelephone
;
}
public
String
getWorkTime
()
{
return
workTime
;
}
public
void
setWorkTime
(
String
workTime
)
{
this
.
workTime
=
workTime
;
}
public
String
getWeekendTime
()
{
return
weekendTime
;
}
public
void
setWeekendTime
(
String
weekendTime
)
{
this
.
weekendTime
=
weekendTime
;
}
public
String
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
String
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
Integer
getCompanyStatus
()
{
return
companyStatus
;
}
public
void
setCompanyStatus
(
Integer
companyStatus
)
{
this
.
companyStatus
=
companyStatus
;
}
}
src/main/java/com/tcm/util/common/ImageVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_image"
)
public
class
ImageVo
{
/**
* 图片主键id
*/
@TableAnnotation
(
"image_id"
)
@ApiModelProperty
(
notes
=
"图片主键id"
)
private
String
imageId
;
/**
* 关联id
*/
@TableAnnotation
(
"relation_id"
)
@ApiModelProperty
(
notes
=
"关联id"
)
private
String
relationId
;
/**
* 图片类型
*/
@TableAnnotation
(
"image_type"
)
@ApiModelProperty
(
notes
=
"图片类型"
)
private
Integer
imageType
;
/**
* 图片位置
*/
@TableAnnotation
(
"location"
)
@ApiModelProperty
(
notes
=
"图片位置"
)
private
Integer
location
;
/**
* 图片地址
*/
@TableAnnotation
(
"image_url"
)
@ApiModelProperty
(
notes
=
"图片地址"
)
private
String
imageUrl
;
/**
* 图片状态0启用1禁用
*/
@TableAnnotation
(
"image_status"
)
@ApiModelProperty
(
notes
=
"图片状态0启用1禁用"
)
private
Integer
imageStatus
;
/**
* 创建时间
*/
@TableAnnotation
(
"create_time"
)
@ApiModelProperty
(
notes
=
"创建时间"
)
private
String
createTime
;
/**
* 更新时间
*/
@TableAnnotation
(
"update_time"
)
@ApiModelProperty
(
notes
=
"更新时间"
)
private
String
updateTime
;
public
ImageVo
()
{
}
public
String
getImageId
()
{
return
imageId
;
}
public
void
setImageId
(
String
imageId
)
{
this
.
imageId
=
imageId
;
}
public
String
getRelationId
()
{
return
relationId
;
}
public
void
setRelationId
(
String
relationId
)
{
this
.
relationId
=
relationId
;
}
public
Integer
getImageType
()
{
return
imageType
;
}
public
void
setImageType
(
Integer
imageType
)
{
this
.
imageType
=
imageType
;
}
public
Integer
getLocation
()
{
return
location
;
}
public
void
setLocation
(
Integer
location
)
{
this
.
location
=
location
;
}
public
String
getImageUrl
()
{
return
imageUrl
;
}
public
void
setImageUrl
(
String
imageUrl
)
{
this
.
imageUrl
=
imageUrl
;
}
public
Integer
getImageStatus
()
{
return
imageStatus
;
}
public
void
setImageStatus
(
Integer
imageStatus
)
{
this
.
imageStatus
=
imageStatus
;
}
public
String
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
String
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
src/main/java/com/tcm/util/common/TcmEnumVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_enum"
)
public
class
TcmEnumVo
{
/**
* 枚举主键id
*/
@TableAnnotation
(
"enum_id"
)
@ApiModelProperty
(
notes
=
"枚举主键id"
)
private
String
enumId
;
/**
* 枚举类型
*/
@TableAnnotation
(
"enum_type"
)
@ApiModelProperty
(
notes
=
"枚举类型"
)
private
Integer
enumType
;
/**
* 枚举名称
*/
@TableAnnotation
(
"enum_name"
)
@ApiModelProperty
(
notes
=
"枚举名称"
)
private
String
enumName
;
/**
* 枚举子类型
*/
@TableAnnotation
(
"child_type"
)
@ApiModelProperty
(
notes
=
"枚举子类型"
)
private
String
childType
;
/**
* 枚举key
*/
@TableAnnotation
(
"enum_key"
)
@ApiModelProperty
(
notes
=
"枚举key"
)
private
String
enumKey
;
/**
* 枚举value
*/
@TableAnnotation
(
"enum_value"
)
@ApiModelProperty
(
notes
=
"枚举value"
)
private
String
enumValue
;
/**
* 排序
*/
@TableAnnotation
(
"sort"
)
@ApiModelProperty
(
notes
=
"排序"
)
private
Integer
sort
;
/**
* 枚举状态0启用1禁用
*/
@TableAnnotation
(
"enum_status"
)
@ApiModelProperty
(
notes
=
"枚举状态0启用1禁用"
)
private
Integer
enumStatus
;
/**
* 创建时间
*/
@TableAnnotation
(
"create_time"
)
@ApiModelProperty
(
notes
=
"创建时间"
)
private
String
createTime
;
/**
* 更新时间
*/
@TableAnnotation
(
"update_time"
)
@ApiModelProperty
(
notes
=
"更新时间"
)
private
String
updateTime
;
public
TcmEnumVo
()
{
}
public
String
getEnumId
()
{
return
enumId
;
}
public
void
setEnumId
(
String
enumId
)
{
this
.
enumId
=
enumId
;
}
public
Integer
getEnumType
()
{
return
enumType
;
}
public
void
setEnumType
(
Integer
enumType
)
{
this
.
enumType
=
enumType
;
}
public
String
getEnumName
()
{
return
enumName
;
}
public
void
setEnumName
(
String
enumName
)
{
this
.
enumName
=
enumName
;
}
public
String
getChildType
()
{
return
childType
;
}
public
void
setChildType
(
String
childType
)
{
this
.
childType
=
childType
;
}
public
String
getEnumKey
()
{
return
enumKey
;
}
public
void
setEnumKey
(
String
enumKey
)
{
this
.
enumKey
=
enumKey
;
}
public
String
getEnumValue
()
{
return
enumValue
;
}
public
void
setEnumValue
(
String
enumValue
)
{
this
.
enumValue
=
enumValue
;
}
public
Integer
getSort
()
{
return
sort
;
}
public
void
setSort
(
Integer
sort
)
{
this
.
sort
=
sort
;
}
public
Integer
getEnumStatus
()
{
return
enumStatus
;
}
public
void
setEnumStatus
(
Integer
enumStatus
)
{
this
.
enumStatus
=
enumStatus
;
}
public
String
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
String
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
src/main/java/com/tcm/util/common/VisitorVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
;
public
class
VisitorVo
{
}
src/main/java/com/tcm/util/common/req/CarouselLoadPageReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
.
req
;
import
com.yanzuoguang.util.vo.PageSizeReqVo
;
public
class
CarouselLoadPageReqVo
extends
PageSizeReqVo
{
/**
* 标题
*/
private
String
title
;
/**
* 内容类型
*/
private
Integer
carouselType
;
/**
* 内容状态0上架1下架
*/
private
Integer
carouselStatus
;
/**
* 语言类型
*/
private
Integer
languageType
;
public
Integer
getLanguageType
()
{
return
languageType
;
}
public
void
setLanguageType
(
Integer
languageType
)
{
this
.
languageType
=
languageType
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
Integer
getCarouselType
()
{
return
carouselType
;
}
public
void
setCarouselType
(
Integer
carouselType
)
{
this
.
carouselType
=
carouselType
;
}
public
Integer
getCarouselStatus
()
{
return
carouselStatus
;
}
public
void
setCarouselStatus
(
Integer
carouselStatus
)
{
this
.
carouselStatus
=
carouselStatus
;
}
}
src/main/java/com/tcm/util/common/req/CarouselReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
.
req
;
import
com.tcm.util.common.CarouselExtendVo
;
import
com.tcm.util.common.CarouselVo
;
import
com.tcm.util.common.ImageVo
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
CarouselReqVo
extends
CarouselVo
{
private
Integer
languageType
;
private
CarouselExtendVo
carouselExtendVo
;
private
List
<
ImageVo
>
imageList
=
new
ArrayList
<>();
public
List
<
ImageVo
>
getImageList
()
{
return
imageList
;
}
public
void
setImageList
(
List
<
ImageVo
>
imageList
)
{
this
.
imageList
=
imageList
;
}
public
Integer
getLanguageType
()
{
return
languageType
;
}
public
void
setLanguageType
(
Integer
languageType
)
{
this
.
languageType
=
languageType
;
}
public
CarouselExtendVo
getCarouselExtendVo
()
{
return
carouselExtendVo
;
}
public
void
setCarouselExtendVo
(
CarouselExtendVo
carouselExtendVo
)
{
this
.
carouselExtendVo
=
carouselExtendVo
;
}
}
src/main/java/com/tcm/util/common/req/CompanyLoadPageReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
.
req
;
import
com.yanzuoguang.util.vo.PageSizeReqVo
;
public
class
CompanyLoadPageReqVo
extends
PageSizeReqVo
{
private
String
companyId
;
private
String
companyName
;
public
String
getCompanyId
()
{
return
companyId
;
}
public
void
setCompanyId
(
String
companyId
)
{
this
.
companyId
=
companyId
;
}
public
String
getCompanyName
()
{
return
companyName
;
}
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
}
src/main/java/com/tcm/util/common/req/CompanyReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
.
req
;
import
com.tcm.util.common.CompanyVo
;
public
class
CompanyReqVo
extends
CompanyVo
{
}
src/main/java/com/tcm/util/common/req/ImageReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
.
req
;
import
com.tcm.util.common.ImageVo
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
ImageReqVo
extends
ImageVo
{
private
List
<
ImageVo
>
imageList
=
new
ArrayList
<>();
public
List
<
ImageVo
>
getImageList
()
{
return
imageList
;
}
public
void
setImageList
(
List
<
ImageVo
>
imageList
)
{
this
.
imageList
=
imageList
;
}
}
src/main/java/com/tcm/util/common/req/TcmEnumLoadPageReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
.
req
;
import
com.yanzuoguang.util.vo.PageSizeReqVo
;
public
class
TcmEnumLoadPageReqVo
extends
PageSizeReqVo
{
}
src/main/java/com/tcm/util/common/req/TcmEnumReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
.
req
;
import
com.tcm.util.common.TcmEnumVo
;
public
class
TcmEnumReqVo
extends
TcmEnumVo
{
}
src/main/java/com/tcm/util/common/res/CarouselResVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
.
res
;
import
com.tcm.util.common.CarouselExtendVo
;
import
com.tcm.util.common.CarouselVo
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
CarouselResVo
extends
CarouselVo
{
/**
* 内容标题
*/
@ApiModelProperty
(
notes
=
"内容标题"
)
private
String
title
;
/**
* 文字介绍
*/
@ApiModelProperty
(
notes
=
"文字介绍"
)
private
String
carouselInfo
;
private
CarouselExtendVo
carouselExtendVo
;
public
CarouselExtendVo
getCarouselExtendVo
()
{
return
carouselExtendVo
;
}
public
void
setCarouselExtendVo
(
CarouselExtendVo
carouselExtendVo
)
{
this
.
carouselExtendVo
=
carouselExtendVo
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
String
getCarouselInfo
()
{
return
carouselInfo
;
}
public
void
setCarouselInfo
(
String
carouselInfo
)
{
this
.
carouselInfo
=
carouselInfo
;
}
private
List
<
ImageResVo
>
imageList
=
new
ArrayList
<>();
public
List
<
ImageResVo
>
getImageList
()
{
return
imageList
;
}
public
void
setImageList
(
List
<
ImageResVo
>
imageList
)
{
this
.
imageList
=
imageList
;
}
}
src/main/java/com/tcm/util/common/res/CompanyResVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
.
res
;
import
com.tcm.util.common.CompanyVo
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
CompanyResVo
extends
CompanyVo
{
private
List
<
ImageResVo
>
companyImageList
=
new
ArrayList
<>();
public
List
<
ImageResVo
>
getCompanyImageList
()
{
return
companyImageList
;
}
public
void
setCompanyImageList
(
List
<
ImageResVo
>
companyImageList
)
{
this
.
companyImageList
=
companyImageList
;
}
}
src/main/java/com/tcm/util/common/res/ImageResVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
.
res
;
import
com.tcm.util.common.ImageVo
;
public
class
ImageResVo
extends
ImageVo
{
}
src/main/java/com/tcm/util/common/res/TcmEnumResVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
common
.
res
;
import
com.tcm.util.common.TcmEnumVo
;
public
class
TcmEnumResVo
extends
TcmEnumVo
{
}
src/main/java/com/tcm/util/doctor/DoctorScheduleVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
doctor
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_doctor_schedule"
)
public
class
DoctorScheduleVo
{
/**
* 出诊主键id
*/
@TableAnnotation
(
"schedule_id"
)
@ApiModelProperty
(
notes
=
"出诊主键id"
)
private
String
scheduleId
;
/**
* 医生id
*/
@TableAnnotation
(
"doctor_id"
)
@ApiModelProperty
(
notes
=
"医生id"
)
private
String
doctorId
;
/**
* 出诊日期
*/
@TableAnnotation
(
"business_days"
)
@ApiModelProperty
(
notes
=
"出诊日期"
)
private
String
businessDays
;
/**
* 出诊开始时段
*/
@TableAnnotation
(
"start_time_slot"
)
@ApiModelProperty
(
notes
=
"出诊开始时段"
)
private
String
startTimeSlot
;
/**
* 出诊结束时段
*/
@TableAnnotation
(
"end_time_slot"
)
@ApiModelProperty
(
notes
=
"出诊结束时段"
)
private
String
endTimeSlot
;
/**
* 可预约总库存
*/
@TableAnnotation
(
"total_stock"
)
@ApiModelProperty
(
notes
=
"可预约总库存"
)
private
Integer
totalStock
;
/**
* 剩余库存
*/
@TableAnnotation
(
"remaining_stock"
)
@ApiModelProperty
(
notes
=
"剩余库存"
)
private
Integer
remainingStock
;
/**
* 开始日期
*/
@TableAnnotation
(
"start_date"
)
@ApiModelProperty
(
notes
=
"开始日期"
)
private
String
startDate
;
/**
* 结束日期
*/
@TableAnnotation
(
"end_date"
)
@ApiModelProperty
(
notes
=
"结束日期"
)
private
String
endDate
;
/**
* 创建时间
*/
@TableAnnotation
(
"create_time"
)
@ApiModelProperty
(
notes
=
"创建时间"
)
private
String
createTime
;
/**
* 更新时间
*/
@TableAnnotation
(
"update_time"
)
@ApiModelProperty
(
notes
=
"更新时间"
)
private
String
updateTime
;
public
DoctorScheduleVo
()
{
}
public
String
getScheduleId
()
{
return
scheduleId
;
}
public
void
setScheduleId
(
String
scheduleId
)
{
this
.
scheduleId
=
scheduleId
;
}
public
String
getDoctorId
()
{
return
doctorId
;
}
public
void
setDoctorId
(
String
doctorId
)
{
this
.
doctorId
=
doctorId
;
}
public
String
getBusinessDays
()
{
return
businessDays
;
}
public
void
setBusinessDays
(
String
businessDays
)
{
this
.
businessDays
=
businessDays
;
}
public
String
getStartTimeSlot
()
{
return
startTimeSlot
;
}
public
void
setStartTimeSlot
(
String
startTimeSlot
)
{
this
.
startTimeSlot
=
startTimeSlot
;
}
public
String
getEndTimeSlot
()
{
return
endTimeSlot
;
}
public
void
setEndTimeSlot
(
String
endTimeSlot
)
{
this
.
endTimeSlot
=
endTimeSlot
;
}
public
Integer
getTotalStock
()
{
return
totalStock
;
}
public
void
setTotalStock
(
Integer
totalStock
)
{
this
.
totalStock
=
totalStock
;
}
public
Integer
getRemainingStock
()
{
return
remainingStock
;
}
public
void
setRemainingStock
(
Integer
remainingStock
)
{
this
.
remainingStock
=
remainingStock
;
}
public
String
getStartDate
()
{
return
startDate
;
}
public
void
setStartDate
(
String
startDate
)
{
this
.
startDate
=
startDate
;
}
public
String
getEndDate
()
{
return
endDate
;
}
public
void
setEndDate
(
String
endDate
)
{
this
.
endDate
=
endDate
;
}
public
String
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
String
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
src/main/java/com/tcm/util/doctor/DoctorVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
doctor
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_doctor"
)
public
class
DoctorVo
{
/**
* 医生主键id
*/
@TableAnnotation
(
"doctor_id"
)
@ApiModelProperty
(
notes
=
"医生主键id"
)
private
String
doctorId
;
/**
* 用户id
*/
@TableAnnotation
(
"user_id"
)
@ApiModelProperty
(
notes
=
"用户id"
)
private
String
userId
;
/**
* 医生职称
*/
@TableAnnotation
(
"title"
)
@ApiModelProperty
(
notes
=
"医生职称"
)
private
String
title
;
/**
* 头像
*/
@TableAnnotation
(
"avatar"
)
@ApiModelProperty
(
notes
=
"头像"
)
private
String
avatar
;
/**
* 医生介绍
*/
@TableAnnotation
(
"introduction"
)
@ApiModelProperty
(
notes
=
"医生介绍"
)
private
String
introduction
;
/**
* 状态0启用1休假2禁用
*/
@TableAnnotation
(
"status"
)
@ApiModelProperty
(
notes
=
"状态0启用1休假2禁用"
)
private
Integer
status
;
/**
* 创建时间
*/
@TableAnnotation
(
"create_time"
)
@ApiModelProperty
(
notes
=
"创建时间"
)
private
String
createTime
;
/**
* 更新时间
*/
@TableAnnotation
(
"update_time"
)
@ApiModelProperty
(
notes
=
"更新时间"
)
private
String
updateTime
;
public
DoctorVo
()
{
}
public
String
getDoctorId
()
{
return
doctorId
;
}
public
void
setDoctorId
(
String
doctorId
)
{
this
.
doctorId
=
doctorId
;
}
public
String
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
String
getAvatar
()
{
return
avatar
;
}
public
void
setAvatar
(
String
avatar
)
{
this
.
avatar
=
avatar
;
}
public
String
getIntroduction
()
{
return
introduction
;
}
public
void
setIntroduction
(
String
introduction
)
{
this
.
introduction
=
introduction
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
String
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
String
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
src/main/java/com/tcm/util/product/ProductCategoryExtendVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
product
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_product_category_extend"
)
public
class
ProductCategoryExtendVo
{
/**
* 主键id
*/
@TableAnnotation
(
"category_extend_id"
)
@ApiModelProperty
(
notes
=
"主键id"
)
private
String
categoryExtendId
;
/**
* 类别名称
*/
@TableAnnotation
(
"category_name"
)
@ApiModelProperty
(
notes
=
"类别名称"
)
private
String
categoryName
;
/**
* 介绍
*/
@TableAnnotation
(
"introduction"
)
@ApiModelProperty
(
notes
=
"介绍"
)
private
String
introduction
;
/**
* 功效
*/
@TableAnnotation
(
"product_efficacy"
)
@ApiModelProperty
(
notes
=
"功效"
)
private
String
productEfficacy
;
/**
* 类别id
*/
@TableAnnotation
(
"category_id"
)
@ApiModelProperty
(
notes
=
"类别id"
)
private
String
categoryId
;
/**
* 语言类型
*/
@TableAnnotation
(
"language_type"
)
@ApiModelProperty
(
notes
=
"语言类型"
)
private
String
languageType
;
public
ProductCategoryExtendVo
()
{
}
public
String
getCategoryExtendId
()
{
return
categoryExtendId
;
}
public
void
setCategoryExtendId
(
String
categoryExtendId
)
{
this
.
categoryExtendId
=
categoryExtendId
;
}
public
String
getCategoryName
()
{
return
categoryName
;
}
public
void
setCategoryName
(
String
categoryName
)
{
this
.
categoryName
=
categoryName
;
}
public
String
getIntroduction
()
{
return
introduction
;
}
public
void
setIntroduction
(
String
introduction
)
{
this
.
introduction
=
introduction
;
}
public
String
getCategoryId
()
{
return
categoryId
;
}
public
void
setCategoryId
(
String
categoryId
)
{
this
.
categoryId
=
categoryId
;
}
public
String
getLanguageType
()
{
return
languageType
;
}
public
void
setLanguageType
(
String
languageType
)
{
this
.
languageType
=
languageType
;
}
public
String
getProductEfficacy
()
{
return
productEfficacy
;
}
public
void
setProductEfficacy
(
String
productEfficacy
)
{
this
.
productEfficacy
=
productEfficacy
;
}
}
src/main/java/com/tcm/util/product/ProductCategoryVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
product
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_product_category"
)
public
class
ProductCategoryVo
{
/**
* 主键id
*/
@TableAnnotation
(
"category_id"
)
@ApiModelProperty
(
notes
=
"主键id"
)
private
String
categoryId
;
/**
* 父类id
*/
@TableAnnotation
(
"parent_id"
)
@ApiModelProperty
(
notes
=
"父类id"
)
private
String
parentId
;
/**
* 排序
*/
@TableAnnotation
(
"sort"
)
@ApiModelProperty
(
notes
=
"排序"
)
private
Integer
sort
;
/**
* 状态0启用1禁用
*/
@TableAnnotation
(
"status"
)
@ApiModelProperty
(
notes
=
"状态0启用1禁用"
)
private
Integer
status
;
/**
* 创建时间
*/
@TableAnnotation
(
"create_time"
)
@ApiModelProperty
(
notes
=
"创建时间"
)
private
String
createTime
;
/**
* 更新时间
*/
@TableAnnotation
(
"update_time"
)
@ApiModelProperty
(
notes
=
"更新时间"
)
private
String
updateTime
;
public
ProductCategoryVo
()
{
}
public
String
getCategoryId
()
{
return
categoryId
;
}
public
void
setCategoryId
(
String
categoryId
)
{
this
.
categoryId
=
categoryId
;
}
public
String
getParentId
()
{
return
parentId
;
}
public
void
setParentId
(
String
parentId
)
{
this
.
parentId
=
parentId
;
}
public
Integer
getSort
()
{
return
sort
;
}
public
void
setSort
(
Integer
sort
)
{
this
.
sort
=
sort
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
String
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
String
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
src/main/java/com/tcm/util/product/ProductExtendVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
product
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_product_extend"
)
public
class
ProductExtendVo
{
/**
* 产品扩展主键id
*/
@TableAnnotation
(
"product_extend_id"
)
@ApiModelProperty
(
notes
=
"产品扩展主键id"
)
private
String
productExtendId
;
/**
* 关联产品id
*/
@TableAnnotation
(
"product_id"
)
@ApiModelProperty
(
notes
=
"关联产品id"
)
private
String
productId
;
/**
* 产品名称
*/
@TableAnnotation
(
"product_name"
)
@ApiModelProperty
(
notes
=
"产品名称"
)
private
String
productName
;
/**
* 标题
*/
@TableAnnotation
(
"title"
)
@ApiModelProperty
(
notes
=
"标题"
)
private
String
title
;
/**
* 描述详情
*/
@TableAnnotation
(
"description"
)
@ApiModelProperty
(
notes
=
"描述详情"
)
private
String
description
;
/**
* 位置
*/
@TableAnnotation
(
"position"
)
@ApiModelProperty
(
notes
=
"位置"
)
private
String
position
;
/**
* 语言类型0中文1英文2韩文3日文
*/
@TableAnnotation
(
"language_type"
)
@ApiModelProperty
(
notes
=
"语言类型0中文1英文2韩文3日文"
)
private
Integer
languageType
;
/**
* 服务类型
*/
@TableAnnotation
(
"service_type"
)
@ApiModelProperty
(
notes
=
"服务类型"
)
private
Integer
serviceType
;
/**
* 服务时长
*/
@TableAnnotation
(
"service_duration"
)
@ApiModelProperty
(
notes
=
"服务时长"
)
private
String
serviceDuration
;
/**
* 创建时间
*/
@TableAnnotation
(
"create_time"
)
@ApiModelProperty
(
notes
=
"创建时间"
)
private
String
createTime
;
/**
* 更新时间
*/
@TableAnnotation
(
"update_time"
)
@ApiModelProperty
(
notes
=
"更新时间"
)
private
String
updateTime
;
public
ProductExtendVo
()
{
}
public
String
getProductExtendId
()
{
return
productExtendId
;
}
public
void
setProductExtendId
(
String
productExtendId
)
{
this
.
productExtendId
=
productExtendId
;
}
public
String
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
productId
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
String
getDescription
()
{
return
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
public
String
getPosition
()
{
return
position
;
}
public
void
setPosition
(
String
position
)
{
this
.
position
=
position
;
}
public
Integer
getServiceType
()
{
return
serviceType
;
}
public
void
setServiceType
(
Integer
serviceType
)
{
this
.
serviceType
=
serviceType
;
}
public
String
getServiceDuration
()
{
return
serviceDuration
;
}
public
void
setServiceDuration
(
String
serviceDuration
)
{
this
.
serviceDuration
=
serviceDuration
;
}
public
String
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
String
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
String
getProductName
()
{
return
productName
;
}
public
void
setProductName
(
String
productName
)
{
this
.
productName
=
productName
;
}
public
Integer
getLanguageType
()
{
return
languageType
;
}
public
void
setLanguageType
(
Integer
languageType
)
{
this
.
languageType
=
languageType
;
}
}
src/main/java/com/tcm/util/product/ProductPriceVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
product
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_product_price"
)
public
class
ProductPriceVo
{
/**
* 价格主键id
*/
@TableAnnotation
(
"price_id"
)
@ApiModelProperty
(
notes
=
"价格主键id"
)
private
String
priceId
;
/**
* 产品id
*/
@TableAnnotation
(
"product_id"
)
@ApiModelProperty
(
notes
=
"产品id"
)
private
String
productId
;
/**
* 价格类型
*/
@TableAnnotation
(
"price_type"
)
@ApiModelProperty
(
notes
=
"价格类型"
)
private
Integer
priceType
;
/**
* 开始时间
*/
@TableAnnotation
(
"start_date"
)
@ApiModelProperty
(
notes
=
"开始时间"
)
private
String
startDate
;
/**
* 结束时间
*/
@TableAnnotation
(
"end_date"
)
@ApiModelProperty
(
notes
=
"结束时间"
)
private
String
endDate
;
/**
* 价格
*/
@TableAnnotation
(
"price"
)
@ApiModelProperty
(
notes
=
"价格"
)
private
Double
price
;
/**
* 市场价
*/
@TableAnnotation
(
"market_price"
)
@ApiModelProperty
(
notes
=
"市场价"
)
private
Double
marketPrice
;
/**
* 结算价
*/
@TableAnnotation
(
"settlement_price"
)
@ApiModelProperty
(
notes
=
"结算价"
)
private
Double
settlementPrice
;
/**
* 价格状态0上架1下架
*/
@TableAnnotation
(
"price_status"
)
@ApiModelProperty
(
notes
=
"价格状态0上架1下架"
)
private
Integer
priceStatus
;
/**
* 备注
*/
@TableAnnotation
(
"remark"
)
@ApiModelProperty
(
notes
=
"备注"
)
private
String
remark
;
/**
* 创建时间
*/
@TableAnnotation
(
"create_time"
)
@ApiModelProperty
(
notes
=
"创建时间"
)
private
String
createTime
;
/**
* 更新时间
*/
@TableAnnotation
(
"update_time"
)
@ApiModelProperty
(
notes
=
"更新时间"
)
private
String
updateTime
;
public
ProductPriceVo
()
{
}
public
String
getPriceId
()
{
return
priceId
;
}
public
void
setPriceId
(
String
priceId
)
{
this
.
priceId
=
priceId
;
}
public
String
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
productId
;
}
public
Integer
getPriceType
()
{
return
priceType
;
}
public
void
setPriceType
(
Integer
priceType
)
{
this
.
priceType
=
priceType
;
}
public
String
getStartDate
()
{
return
startDate
;
}
public
void
setStartDate
(
String
startDate
)
{
this
.
startDate
=
startDate
;
}
public
String
getEndDate
()
{
return
endDate
;
}
public
void
setEndDate
(
String
endDate
)
{
this
.
endDate
=
endDate
;
}
public
Double
getPrice
()
{
return
price
;
}
public
void
setPrice
(
Double
price
)
{
this
.
price
=
price
;
}
public
Double
getMarketPrice
()
{
return
marketPrice
;
}
public
void
setMarketPrice
(
Double
marketPrice
)
{
this
.
marketPrice
=
marketPrice
;
}
public
Double
getSettlementPrice
()
{
return
settlementPrice
;
}
public
void
setSettlementPrice
(
Double
settlementPrice
)
{
this
.
settlementPrice
=
settlementPrice
;
}
public
Integer
getPriceStatus
()
{
return
priceStatus
;
}
public
void
setPriceStatus
(
Integer
priceStatus
)
{
this
.
priceStatus
=
priceStatus
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
String
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
src/main/java/com/tcm/util/product/ProductStockVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
product
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_product_stock"
)
public
class
ProductStockVo
{
/**
* 库存主键id
*/
@TableAnnotation
(
"stock_id"
)
@ApiModelProperty
(
notes
=
"库存主键id"
)
private
String
stockId
;
/**
* 产品id
*/
@TableAnnotation
(
"product_id"
)
@ApiModelProperty
(
notes
=
"产品id"
)
private
String
productId
;
/**
* 库存类型
*/
@TableAnnotation
(
"stock_type"
)
@ApiModelProperty
(
notes
=
"库存类型"
)
private
Integer
stockType
;
/**
* 总量
*/
@TableAnnotation
(
"total"
)
@ApiModelProperty
(
notes
=
"总量"
)
private
Integer
total
;
/**
* 剩余量
*/
@TableAnnotation
(
"surplus"
)
@ApiModelProperty
(
notes
=
"剩余量"
)
private
Integer
surplus
;
/**
* 库存状态0上架1下架
*/
@TableAnnotation
(
"stock_status"
)
@ApiModelProperty
(
notes
=
"库存状态0上架1下架"
)
private
Integer
stockStatus
;
/**
* 开始时间
*/
@TableAnnotation
(
"start_date"
)
@ApiModelProperty
(
notes
=
"开始时间"
)
private
String
startDate
;
/**
* 结束时间
*/
@TableAnnotation
(
"end_date"
)
@ApiModelProperty
(
notes
=
"结束时间"
)
private
String
endDate
;
/**
* 创建时间
*/
@TableAnnotation
(
"create_time"
)
@ApiModelProperty
(
notes
=
"创建时间"
)
private
String
createTime
;
/**
* 更新时间
*/
@TableAnnotation
(
"update_time"
)
@ApiModelProperty
(
notes
=
"更新时间"
)
private
String
updateTime
;
public
ProductStockVo
()
{
}
public
String
getStockId
()
{
return
stockId
;
}
public
void
setStockId
(
String
stockId
)
{
this
.
stockId
=
stockId
;
}
public
String
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
productId
;
}
public
Integer
getStockType
()
{
return
stockType
;
}
public
void
setStockType
(
Integer
stockType
)
{
this
.
stockType
=
stockType
;
}
public
Integer
getTotal
()
{
return
total
;
}
public
void
setTotal
(
Integer
total
)
{
this
.
total
=
total
;
}
public
Integer
getSurplus
()
{
return
surplus
;
}
public
void
setSurplus
(
Integer
surplus
)
{
this
.
surplus
=
surplus
;
}
public
Integer
getStockStatus
()
{
return
stockStatus
;
}
public
void
setStockStatus
(
Integer
stockStatus
)
{
this
.
stockStatus
=
stockStatus
;
}
public
String
getStartDate
()
{
return
startDate
;
}
public
void
setStartDate
(
String
startDate
)
{
this
.
startDate
=
startDate
;
}
public
String
getEndDate
()
{
return
endDate
;
}
public
void
setEndDate
(
String
endDate
)
{
this
.
endDate
=
endDate
;
}
public
String
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
String
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
src/main/java/com/tcm/util/product/ProductVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
product
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
@TableAnnotation
(
"tcm_product"
)
public
class
ProductVo
{
/**
* 产品主键id
*/
@TableAnnotation
(
"product_id"
)
@ApiModelProperty
(
notes
=
"产品主键id"
)
private
String
productId
;
/**
* 产品名称
*/
@TableAnnotation
(
"product_name"
)
@ApiModelProperty
(
notes
=
"产品名称"
)
private
String
productName
;
/**
* 类别id
*/
@TableAnnotation
(
"category_id"
)
@ApiModelProperty
(
notes
=
"类别id"
)
private
String
categoryId
;
/**
* 产品类型1 - 大健康产品,2 - 预约产品
*/
@TableAnnotation
(
"category_type"
)
@ApiModelProperty
(
notes
=
"产品类型1 - 大健康产品,2 - 预约产品"
)
private
Integer
categoryType
;
/**
* 产品分类0茶饮类1理疗类2器械类3针灸4推拿5拔罐6熏蒸7养生
*/
@TableAnnotation
(
"product_type"
)
@ApiModelProperty
(
notes
=
"产品分类0茶饮类1理疗类2器械类3针灸4推拿5拔罐6熏蒸7养生"
)
private
Integer
productType
;
/**
* 是否推荐0推荐1不推荐
*/
@TableAnnotation
(
"is_recommend"
)
@ApiModelProperty
(
notes
=
"产品类型1 - 大健康产品,2 - 预约产品"
)
private
Integer
isRecommend
;
/**
* 可约人数 / 天(仅预约产品)
*/
@TableAnnotation
(
"max_people"
)
@ApiModelProperty
(
notes
=
"可约人数 / 天(仅预约产品)"
)
private
Integer
maxPeople
;
/**
* 已预约人数
*/
@TableAnnotation
(
"booked_people"
)
@ApiModelProperty
(
notes
=
"已预约人数"
)
private
Integer
bookedPeople
;
/**
* 售价
*/
@TableAnnotation
(
"price"
)
@ApiModelProperty
(
notes
=
"售价"
)
private
Double
price
;
/**
* 门市价
*/
@TableAnnotation
(
"market_price"
)
@ApiModelProperty
(
notes
=
"门市价"
)
private
Double
marketPrice
;
/**
* 结算价
*/
@TableAnnotation
(
"settlement_price"
)
@ApiModelProperty
(
notes
=
"结算价"
)
private
Double
settlementPrice
;
/**
* 状态
*/
@TableAnnotation
(
"status"
)
@ApiModelProperty
(
notes
=
"状态"
)
private
Integer
status
;
/**
* 排序
*/
@TableAnnotation
(
"sort"
)
@ApiModelProperty
(
notes
=
"排序"
)
private
Integer
sort
;
/**
* 创建时间
*/
@TableAnnotation
(
"create_time"
)
@ApiModelProperty
(
notes
=
"创建时间"
)
private
String
createTime
;
/**
* 更新时间
*/
@TableAnnotation
(
"update_time"
)
@ApiModelProperty
(
notes
=
"更新时间"
)
private
String
updateTime
;
public
ProductVo
()
{
}
public
String
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
productId
;
}
public
String
getProductName
()
{
return
productName
;
}
public
void
setProductName
(
String
productName
)
{
this
.
productName
=
productName
;
}
public
String
getCategoryId
()
{
return
categoryId
;
}
public
void
setCategoryId
(
String
categoryId
)
{
this
.
categoryId
=
categoryId
;
}
public
Integer
getProductType
()
{
return
productType
;
}
public
void
setProductType
(
Integer
productType
)
{
this
.
productType
=
productType
;
}
public
Integer
getMaxPeople
()
{
return
maxPeople
;
}
public
void
setMaxPeople
(
Integer
maxPeople
)
{
this
.
maxPeople
=
maxPeople
;
}
public
Integer
getBookedPeople
()
{
return
bookedPeople
;
}
public
void
setBookedPeople
(
Integer
bookedPeople
)
{
this
.
bookedPeople
=
bookedPeople
;
}
public
Double
getPrice
()
{
return
price
;
}
public
void
setPrice
(
Double
price
)
{
this
.
price
=
price
;
}
public
Double
getMarketPrice
()
{
return
marketPrice
;
}
public
void
setMarketPrice
(
Double
marketPrice
)
{
this
.
marketPrice
=
marketPrice
;
}
public
Double
getSettlementPrice
()
{
return
settlementPrice
;
}
public
void
setSettlementPrice
(
Double
settlementPrice
)
{
this
.
settlementPrice
=
settlementPrice
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Integer
getSort
()
{
return
sort
;
}
public
void
setSort
(
Integer
sort
)
{
this
.
sort
=
sort
;
}
public
String
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
String
createTime
)
{
this
.
createTime
=
createTime
;
}
public
String
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
String
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
Integer
getCategoryType
()
{
return
categoryType
;
}
public
void
setCategoryType
(
Integer
categoryType
)
{
this
.
categoryType
=
categoryType
;
}
public
Integer
getIsRecommend
()
{
return
isRecommend
;
}
public
void
setIsRecommend
(
Integer
isRecommend
)
{
this
.
isRecommend
=
isRecommend
;
}
}
src/main/java/com/tcm/util/product/req/ProductCategoryLoadPageReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
product
.
req
;
import
com.yanzuoguang.util.vo.PageSizeReqVo
;
public
class
ProductCategoryLoadPageReqVo
extends
PageSizeReqVo
{
private
Integer
status
;
private
String
parentId
;
private
String
categoryId
;
private
String
categoryName
;
private
Integer
languageType
;
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
String
getParentId
()
{
return
parentId
;
}
public
void
setParentId
(
String
parentId
)
{
this
.
parentId
=
parentId
;
}
public
String
getCategoryId
()
{
return
categoryId
;
}
public
void
setCategoryId
(
String
categoryId
)
{
this
.
categoryId
=
categoryId
;
}
public
String
getCategoryName
()
{
return
categoryName
;
}
public
void
setCategoryName
(
String
categoryName
)
{
this
.
categoryName
=
categoryName
;
}
public
Integer
getLanguageType
()
{
return
languageType
;
}
public
void
setLanguageType
(
Integer
languageType
)
{
this
.
languageType
=
languageType
;
}
}
src/main/java/com/tcm/util/product/req/ProductCategoryReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
product
.
req
;
import
com.tcm.util.product.ProductCategoryVo
;
public
class
ProductCategoryReqVo
extends
ProductCategoryVo
{
}
src/main/java/com/tcm/util/product/req/ProductExtendReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
product
.
req
;
import
com.tcm.util.product.ProductExtendVo
;
public
class
ProductExtendReqVo
extends
ProductExtendVo
{
}
src/main/java/com/tcm/util/product/req/ProductLoadPageReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
product
.
req
;
import
com.yanzuoguang.util.vo.PageSizeReqVo
;
public
class
ProductLoadPageReqVo
extends
PageSizeReqVo
{
private
String
productId
;
private
String
productName
;
private
String
productCategoryId
;
private
String
productStatus
;
private
Integer
productType
;
private
Integer
languageType
;
public
String
getProductId
()
{
return
productId
;
}
public
void
setProductId
(
String
productId
)
{
this
.
productId
=
productId
;
}
public
String
getProductName
()
{
return
productName
;
}
public
void
setProductName
(
String
productName
)
{
this
.
productName
=
productName
;
}
public
String
getProductCategoryId
()
{
return
productCategoryId
;
}
public
void
setProductCategoryId
(
String
productCategoryId
)
{
this
.
productCategoryId
=
productCategoryId
;
}
public
String
getProductStatus
()
{
return
productStatus
;
}
public
void
setProductStatus
(
String
productStatus
)
{
this
.
productStatus
=
productStatus
;
}
public
Integer
getLanguageType
()
{
return
languageType
;
}
public
void
setLanguageType
(
Integer
languageType
)
{
this
.
languageType
=
languageType
;
}
public
Integer
getProductType
()
{
return
productType
;
}
public
void
setProductType
(
Integer
productType
)
{
this
.
productType
=
productType
;
}
}
src/main/java/com/tcm/util/product/req/ProductReqVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
product
.
req
;
import
com.tcm.util.common.ImageVo
;
import
com.tcm.util.product.ProductExtendVo
;
import
com.tcm.util.product.ProductVo
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
ProductReqVo
extends
ProductVo
{
private
ProductExtendVo
productExtendVo
;
private
Integer
languageType
;
public
Integer
getLanguageType
()
{
return
languageType
;
}
public
void
setLanguageType
(
Integer
languageType
)
{
this
.
languageType
=
languageType
;
}
private
List
<
ImageVo
>
imageList
=
new
ArrayList
<>();
public
List
<
ImageVo
>
getImageList
()
{
return
imageList
;
}
public
void
setImageList
(
List
<
ImageVo
>
imageList
)
{
this
.
imageList
=
imageList
;
}
public
ProductExtendVo
getProductExtendVo
()
{
return
productExtendVo
;
}
public
void
setProductExtendVo
(
ProductExtendVo
productExtendVo
)
{
this
.
productExtendVo
=
productExtendVo
;
}
}
src/main/java/com/tcm/util/product/res/ProductCategoryResVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
product
.
res
;
import
com.tcm.util.product.ProductCategoryVo
;
import
com.yanzuoguang.dao.TableAnnotation
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
ProductCategoryResVo
extends
ProductCategoryVo
{
/**
* 类别名称
*/
@TableAnnotation
(
"category_name"
)
@ApiModelProperty
(
notes
=
"类别名称"
)
private
String
categoryName
;
/**
* 介绍
*/
@ApiModelProperty
(
notes
=
"介绍"
)
private
String
introduction
;
private
String
productEfficacy
;
public
String
getCategoryName
()
{
return
categoryName
;
}
public
void
setCategoryName
(
String
categoryName
)
{
this
.
categoryName
=
categoryName
;
}
public
String
getIntroduction
()
{
return
introduction
;
}
public
void
setIntroduction
(
String
introduction
)
{
this
.
introduction
=
introduction
;
}
private
List
<
ProductResVo
>
productList
=
new
ArrayList
<>();
private
String
imageUrl
;
public
String
getImageUrl
()
{
return
imageUrl
;
}
public
void
setImageUrl
(
String
imageUrl
)
{
this
.
imageUrl
=
imageUrl
;
}
public
List
<
ProductResVo
>
getProductList
()
{
return
productList
;
}
public
void
setProductList
(
List
<
ProductResVo
>
productList
)
{
this
.
productList
=
productList
;
}
public
String
getProductEfficacy
()
{
return
productEfficacy
;
}
public
void
setProductEfficacy
(
String
productEfficacy
)
{
this
.
productEfficacy
=
productEfficacy
;
}
}
src/main/java/com/tcm/util/product/res/ProductExtendResVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
product
.
res
;
import
com.tcm.util.product.ProductExtendVo
;
public
class
ProductExtendResVo
extends
ProductExtendVo
{
}
src/main/java/com/tcm/util/product/res/ProductResVo.java
0 → 100644
View file @
f68f619b
package
com
.
tcm
.
util
.
product
.
res
;
import
com.tcm.util.common.res.ImageResVo
;
import
com.tcm.util.product.ProductExtendVo
;
import
com.tcm.util.product.ProductVo
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
ProductResVo
extends
ProductVo
{
private
ProductExtendVo
productExtendVo
;
private
List
<
ImageResVo
>
imageList
=
new
ArrayList
<>();
public
List
<
ImageResVo
>
getImageList
()
{
return
imageList
;
}
public
void
setImageList
(
List
<
ImageResVo
>
imageList
)
{
this
.
imageList
=
imageList
;
}
public
ProductExtendVo
getProductExtendVo
()
{
return
productExtendVo
;
}
public
void
setProductExtendVo
(
ProductExtendVo
productExtendVo
)
{
this
.
productExtendVo
=
productExtendVo
;
}
}
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