Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yichengstreet-be
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
yichengstreet
yichengstreet-be
Commits
c5e58077
Commit
c5e58077
authored
Mar 06, 2025
by
luben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'main'
Dev See merge request
!48
parents
8dc2aa70
f2741c4d
Pipeline
#142954
passed with stages
in 3 minutes and 43 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
1 deletion
+56
-1
CompanyController.java
...java/com/ruoyi/web/controller/grid/CompanyController.java
+13
-0
ShopController.java
...in/java/com/ruoyi/web/controller/grid/ShopController.java
+13
-0
GridCompanyMapper.java
.../java/com/ruoyi/system/mapper/grid/GridCompanyMapper.java
+4
-0
GridShopMapper.java
...ain/java/com/ruoyi/system/mapper/grid/GridShopMapper.java
+4
-0
GridCompanyMapper.xml
...stem/src/main/resources/mapper/grid/GridCompanyMapper.xml
+12
-1
GridShopMapper.xml
...-system/src/main/resources/mapper/grid/GridShopMapper.xml
+10
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/grid/CompanyController.java
View file @
c5e58077
...
...
@@ -16,6 +16,7 @@ import com.ruoyi.system.domain.grid.ext.GridCompanyExt;
import
com.ruoyi.system.domain.grid.ext.GridCompanyPeopleExt
;
import
com.ruoyi.system.domain.grid.vo.GridCompanySearchParam
;
import
com.ruoyi.system.domain.other.BsCommon
;
import
com.ruoyi.system.mapper.grid.GridCompanyMapper
;
import
com.ruoyi.system.service.grid.GridCompanyPeopleService
;
import
com.ruoyi.system.service.grid.GridCompanyService
;
import
com.ruoyi.system.service.grid.GridRegionService
;
...
...
@@ -49,6 +50,8 @@ public class CompanyController extends BaseController {
private
BsCommonService
bsCommonService
;
@Autowired
private
GridRegionService
gridRegionService
;
@Autowired
private
GridCompanyMapper
gridCompanyMapper
;
@RequestMapping
(
value
=
"/page"
,
method
=
RequestMethod
.
GET
)
public
AjaxResult
page
(
@RequestParam
(
value
=
"pageNum"
,
defaultValue
=
"1"
)
int
pageNum
,
...
...
@@ -214,4 +217,14 @@ public class CompanyController extends BaseController {
return
AjaxResult
.
success
(
gridCompanyService
.
getAllCompanyList
(
param
));
}
@GetMapping
(
"/saveLabel"
)
public
AjaxResult
saveLabel
(
@RequestParam
(
value
=
"id"
)
String
id
,
@RequestParam
(
value
=
"label"
)
String
label
){
return
AjaxResult
.
success
(
gridCompanyMapper
.
insertLabelById
(
id
,
label
));
}
@GetMapping
(
"/selectLabel"
)
public
AjaxResult
selectLabel
(
@RequestParam
(
value
=
"id"
)
String
id
){
return
AjaxResult
.
success
(
gridCompanyMapper
.
selectLabelById
(
id
));
}
}
ruoyi-admin/src/main/java/com/ruoyi/web/controller/grid/ShopController.java
View file @
c5e58077
...
...
@@ -5,6 +5,7 @@ import com.ruoyi.common.utils.StringUtils;
import
com.ruoyi.system.domain.grid.GridShop
;
import
com.ruoyi.system.domain.grid.GridShopStaff
;
import
com.ruoyi.system.domain.grid.vo.GridShopSearchParam
;
import
com.ruoyi.system.mapper.grid.GridShopMapper
;
import
com.ruoyi.system.service.grid.GridShopService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -23,6 +24,8 @@ public class ShopController {
@Autowired
GridShopService
gridShopService
;
@Autowired
GridShopMapper
gridShopMapper
;
/**
* 保存
...
...
@@ -127,4 +130,14 @@ public class ShopController {
}
return
AjaxResult
.
success
(
gridShopService
.
getAllShopList
(
param
));
}
@GetMapping
(
"/saveLabel"
)
public
AjaxResult
saveLabel
(
@RequestParam
(
value
=
"id"
)
String
id
,
@RequestParam
(
value
=
"label"
)
String
label
){
return
AjaxResult
.
success
(
gridShopMapper
.
insertLabelById
(
id
,
label
));
}
@GetMapping
(
"/selectLabel"
)
public
AjaxResult
selectLabel
(
@RequestParam
(
value
=
"id"
)
String
id
){
return
AjaxResult
.
success
(
gridShopMapper
.
selectLabelById
(
id
));
}
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/grid/GridCompanyMapper.java
View file @
c5e58077
...
...
@@ -47,4 +47,8 @@ public interface GridCompanyMapper {
* @return
*/
List
<
SimpleGridCompanyItem
>
simplePointList
(
@Param
(
"wgCode"
)
String
wgCode
,
@Param
(
"name"
)
String
name
);
int
insertLabelById
(
@Param
(
"id"
)
String
id
,
@Param
(
"label"
)
String
label
);
String
selectLabelById
(
@Param
(
"id"
)
String
id
);
}
ruoyi-system/src/main/java/com/ruoyi/system/mapper/grid/GridShopMapper.java
View file @
c5e58077
...
...
@@ -41,4 +41,8 @@ public interface GridShopMapper {
List
<
GridShop
>
listByParam
(
GridShopSearchParam
param
);
List
<
SimpleGridShopItem
>
listShopPoint
(
@Param
(
"wgCode"
)
String
wgCode
,
@Param
(
"name"
)
String
name
);
int
insertLabelById
(
@Param
(
"id"
)
String
id
,
@Param
(
"label"
)
String
label
);
String
selectLabelById
(
@Param
(
"id"
)
String
id
);
}
ruoyi-system/src/main/resources/mapper/grid/GridCompanyMapper.xml
View file @
c5e58077
...
...
@@ -273,7 +273,8 @@
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.ruoyi.system.domain.grid.GridCompanyExample"
resultType=
"java.lang.Long"
>
<select
id=
"countByExample"
parameterType=
"com.ruoyi.system.domain.grid.GridCompanyExample"
resultType=
"java.lang.Long"
>
select count(*) from grid_company
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
...
...
@@ -550,4 +551,14 @@
and wg_code like CONCAT(#{wgCode}, '%')
</if>
</select>
<select
id=
"selectLabelById"
resultType=
"java.lang.String"
>
select label from grid_company
where id = #{id}
</select>
<insert
id=
"insertLabelById"
>
insert into grid_company
(label) values (#{label,jdbcType=VARCHAR})
where id = #{id}
</insert>
</mapper>
ruoyi-system/src/main/resources/mapper/grid/GridShopMapper.xml
View file @
c5e58077
...
...
@@ -470,4 +470,14 @@
</if>
</select>
<select
id=
"selectLabelById"
resultType=
"java.lang.String"
>
select label from grid_shop
where id = #{id}
</select>
<insert
id=
"insertLabelById"
>
insert into grid_shop
(label) values (#{label,jdbcType=VARCHAR})
where id = #{id}
</insert>
</mapper>
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