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
cb3422ec
Commit
cb3422ec
authored
Dec 26, 2025
by
dmy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中医药小程序代码提交
parent
71c24d00
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
18 deletions
+34
-18
AreaServiceImpl.java
...ain/java/com/tcm/common/service/impl/AreaServiceImpl.java
+7
-5
ImageServiceImpl.java
...in/java/com/tcm/common/service/impl/ImageServiceImpl.java
+11
-8
ProductCategoryDaoImpl.java
...java/com/tcm/product/dao/impl/ProductCategoryDaoImpl.java
+1
-0
FloorAreaReqVo.java
src/main/java/com/tcm/util/area/req/FloorAreaReqVo.java
+5
-5
ProductCategoryLoadPageReqVo.java
...om/tcm/util/product/req/ProductCategoryLoadPageReqVo.java
+10
-0
No files found.
src/main/java/com/tcm/common/service/impl/AreaServiceImpl.java
View file @
cb3422ec
...
@@ -213,15 +213,17 @@ public class AreaServiceImpl implements AreaService {
...
@@ -213,15 +213,17 @@ public class AreaServiceImpl implements AreaService {
if
(
StringHelper
.
isEmpty
(
req
.
getAreaId
()))
{
if
(
StringHelper
.
isEmpty
(
req
.
getAreaId
()))
{
FloorAreaVo
areaVo
=
new
FloorAreaVo
();
FloorAreaVo
areaVo
=
new
FloorAreaVo
();
String
areaId
=
StringHelper
.
getNewID
();
String
areaId
=
StringHelper
.
getNewID
();
areaVo
.
setFloorId
(
areaId
);
areaVo
.
setAreaId
(
areaId
);
areaVo
.
setFloorId
(
req
.
getFloorId
());
ObjectHelper
.
writeWithFrom
(
areaVo
,
req
);
ObjectHelper
.
writeWithFrom
(
areaVo
,
req
);
areaVo
.
setCreateTime
(
DateHelper
.
getNow
());
areaVo
.
setCreateTime
(
DateHelper
.
getNow
());
areaVo
.
setIsFeature
(
0
);
floorAreaDao
.
create
(
areaVo
);
floorAreaDao
.
create
(
areaVo
);
FloorAreaExtendVo
areaExtendVo
=
new
FloorAreaExtendVo
();
FloorAreaExtendVo
areaExtendVo
=
new
FloorAreaExtendVo
();
areaExtendVo
.
setAreaId
(
areaId
);
areaExtendVo
.
setAreaId
(
areaId
);
areaExtendVo
.
setAreaExtendId
(
StringHelper
.
getNewID
());
areaExtendVo
.
setAreaExtendId
(
StringHelper
.
getNewID
());
ObjectHelper
.
writeWithFrom
(
areaExtendVo
,
req
.
get
Floor
AreaExtendVo
());
ObjectHelper
.
writeWithFrom
(
areaExtendVo
,
req
.
getAreaExtendVo
());
floorAreaExtendDao
.
create
(
areaExtendVo
);
floorAreaExtendDao
.
create
(
areaExtendVo
);
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
...
@@ -239,15 +241,15 @@ public class AreaServiceImpl implements AreaService {
...
@@ -239,15 +241,15 @@ public class AreaServiceImpl implements AreaService {
FloorAreaExtendVo
areaExtendVo
=
new
FloorAreaExtendVo
();
FloorAreaExtendVo
areaExtendVo
=
new
FloorAreaExtendVo
();
areaExtendVo
.
setAreaId
(
req
.
getAreaId
());
areaExtendVo
.
setAreaId
(
req
.
getAreaId
());
areaExtendVo
.
setLanguageType
(
req
.
get
Floor
AreaExtendVo
().
getLanguageType
());
areaExtendVo
.
setLanguageType
(
req
.
getAreaExtendVo
().
getLanguageType
());
FloorAreaExtendVo
loadExtend
=
floorAreaExtendDao
.
load
(
areaExtendVo
,
FloorAreaExtendVo
.
class
);
FloorAreaExtendVo
loadExtend
=
floorAreaExtendDao
.
load
(
areaExtendVo
,
FloorAreaExtendVo
.
class
);
if
(
loadExtend
==
null
)
{
if
(
loadExtend
==
null
)
{
//新增
//新增
areaExtendVo
.
setAreaExtendId
(
StringHelper
.
getNewID
());
areaExtendVo
.
setAreaExtendId
(
StringHelper
.
getNewID
());
ObjectHelper
.
writeWithFrom
(
areaExtendVo
,
req
.
get
Floor
AreaExtendVo
());
ObjectHelper
.
writeWithFrom
(
areaExtendVo
,
req
.
getAreaExtendVo
());
floorAreaExtendDao
.
create
(
areaExtendVo
);
floorAreaExtendDao
.
create
(
areaExtendVo
);
}
else
{
}
else
{
ObjectHelper
.
writeWithFrom
(
loadExtend
,
req
.
get
Floor
AreaExtendVo
());
ObjectHelper
.
writeWithFrom
(
loadExtend
,
req
.
getAreaExtendVo
());
floorAreaExtendDao
.
update
(
loadExtend
);
floorAreaExtendDao
.
update
(
loadExtend
);
}
}
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
ImageReqVo
imageReqVo
=
new
ImageReqVo
();
...
...
src/main/java/com/tcm/common/service/impl/ImageServiceImpl.java
View file @
cb3422ec
...
@@ -87,15 +87,18 @@ public class ImageServiceImpl implements ImageService {
...
@@ -87,15 +87,18 @@ public class ImageServiceImpl implements ImageService {
@Override
@Override
public
String
saveList
(
ImageReqVo
imageReqVo
)
{
public
String
saveList
(
ImageReqVo
imageReqVo
)
{
List
<
ImageVo
>
imageList
=
new
ArrayList
<>();
List
<
ImageVo
>
imageList
=
new
ArrayList
<>();
for
(
ImageVo
imageVo
:
imageReqVo
.
getImageList
())
{
if
(!
StringHelper
.
isEmpty
(
imageReqVo
.
getImageList
())
ImageVo
image
=
new
ImageVo
();
&&
imageReqVo
.
getImageList
().
size
()
>
0
)
{
ObjectHelper
.
writeWithFrom
(
image
,
imageReqVo
);
for
(
ImageVo
imageVo
:
imageReqVo
.
getImageList
())
{
image
.
setImageId
(
StringHelper
.
getNewID
());
ImageVo
image
=
new
ImageVo
();
image
.
setCreateTime
(
DateHelper
.
getNow
());
ObjectHelper
.
writeWithFrom
(
image
,
imageReqVo
);
image
.
setImageUrl
(
imageVo
.
getImageUrl
());
image
.
setImageId
(
StringHelper
.
getNewID
());
imageList
.
add
(
image
);
image
.
setCreateTime
(
DateHelper
.
getNow
());
image
.
setImageUrl
(
imageVo
.
getImageUrl
());
imageList
.
add
(
image
);
}
imageDao
.
createList
(
imageList
);
}
}
imageDao
.
createList
(
imageReqVo
.
getImageList
());
return
imageReqVo
.
getRelationId
();
return
imageReqVo
.
getRelationId
();
}
}
}
}
src/main/java/com/tcm/product/dao/impl/ProductCategoryDaoImpl.java
View file @
cb3422ec
...
@@ -22,6 +22,7 @@ public class ProductCategoryDaoImpl extends BaseDaoImpl implements ProductCatego
...
@@ -22,6 +22,7 @@ public class ProductCategoryDaoImpl extends BaseDaoImpl implements ProductCatego
" left join tcm_image as ti on p.category_id = ti.relation_id where 1=1 {WHERE} order by p.sort"
)
" 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
(
"categoryId"
,
"and p.category_id = ?"
)
.
add
(
"languageType"
,
"and pe.language_type =?"
)
.
add
(
"languageType"
,
"and pe.language_type =?"
)
.
add
(
"categoryType"
,
"and p.category_type = ?"
)
;
;
}
}
...
...
src/main/java/com/tcm/util/area/req/FloorAreaReqVo.java
View file @
cb3422ec
...
@@ -10,7 +10,7 @@ public class FloorAreaReqVo extends FloorAreaVo {
...
@@ -10,7 +10,7 @@ public class FloorAreaReqVo extends FloorAreaVo {
private
Integer
languageType
;
private
Integer
languageType
;
private
FloorAreaExtendVo
floorA
reaExtendVo
;
private
FloorAreaExtendVo
a
reaExtendVo
;
private
List
<
ImageVo
>
imageVoList
;
private
List
<
ImageVo
>
imageVoList
;
...
@@ -22,12 +22,12 @@ public class FloorAreaReqVo extends FloorAreaVo {
...
@@ -22,12 +22,12 @@ public class FloorAreaReqVo extends FloorAreaVo {
this
.
imageVoList
=
imageVoList
;
this
.
imageVoList
=
imageVoList
;
}
}
public
FloorAreaExtendVo
get
Floor
AreaExtendVo
()
{
public
FloorAreaExtendVo
getAreaExtendVo
()
{
return
floorA
reaExtendVo
;
return
a
reaExtendVo
;
}
}
public
void
set
FloorAreaExtendVo
(
FloorAreaExtendVo
floorA
reaExtendVo
)
{
public
void
set
AreaExtendVo
(
FloorAreaExtendVo
a
reaExtendVo
)
{
this
.
floorAreaExtendVo
=
floorA
reaExtendVo
;
this
.
areaExtendVo
=
a
reaExtendVo
;
}
}
public
Integer
getLanguageType
()
{
public
Integer
getLanguageType
()
{
...
...
src/main/java/com/tcm/util/product/req/ProductCategoryLoadPageReqVo.java
View file @
cb3422ec
...
@@ -9,6 +9,8 @@ public class ProductCategoryLoadPageReqVo extends PageSizeReqVo {
...
@@ -9,6 +9,8 @@ public class ProductCategoryLoadPageReqVo extends PageSizeReqVo {
private
String
categoryId
;
private
String
categoryId
;
private
Integer
categoryType
;
private
String
categoryName
;
private
String
categoryName
;
private
Integer
languageType
;
private
Integer
languageType
;
...
@@ -52,4 +54,12 @@ public class ProductCategoryLoadPageReqVo extends PageSizeReqVo {
...
@@ -52,4 +54,12 @@ public class ProductCategoryLoadPageReqVo extends PageSizeReqVo {
public
void
setLanguageType
(
Integer
languageType
)
{
public
void
setLanguageType
(
Integer
languageType
)
{
this
.
languageType
=
languageType
;
this
.
languageType
=
languageType
;
}
}
public
Integer
getCategoryType
()
{
return
categoryType
;
}
public
void
setCategoryType
(
Integer
categoryType
)
{
this
.
categoryType
=
categoryType
;
}
}
}
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