Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
gassafety-progress
Commits
4ddda673
Commit
4ddda673
authored
Jun 25, 2023
by
zhangjianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加企业分类字段
parent
4a2ff26b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
3 deletions
+22
-3
TEnterpriseInfoController.java
...g/web/controller/supervise/TEnterpriseInfoController.java
+3
-1
TEnterpriseInfo.java
...c/main/java/com/zehong/system/domain/TEnterpriseInfo.java
+11
-0
TEnterpriseInfoVO.java
...n/java/com/zehong/system/domain/vo/TEnterpriseInfoVO.java
+2
-0
TEnterpriseInfoServiceImpl.java
...ehong/system/service/impl/TEnterpriseInfoServiceImpl.java
+0
-1
TEnterpriseInfoMapper.xml
...rc/main/resources/mapper/system/TEnterpriseInfoMapper.xml
+6
-1
No files found.
gassafetyprogress-admin/src/main/java/com/zehong/web/controller/supervise/TEnterpriseInfoController.java
View file @
4ddda673
...
@@ -11,6 +11,7 @@ import com.zehong.common.utils.SecurityUtils;
...
@@ -11,6 +11,7 @@ import com.zehong.common.utils.SecurityUtils;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.framework.config.ServerConfig
;
import
com.zehong.framework.config.ServerConfig
;
import
com.zehong.system.domain.TEnterpriseInfo
;
import
com.zehong.system.domain.TEnterpriseInfo
;
import
com.zehong.system.domain.vo.TEnterpriseInfoVO
;
import
com.zehong.system.service.ITEnterpriseInfoService
;
import
com.zehong.system.service.ITEnterpriseInfoService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PreAuthorize
;
...
@@ -71,7 +72,8 @@ public class TEnterpriseInfoController extends BaseController
...
@@ -71,7 +72,8 @@ public class TEnterpriseInfoController extends BaseController
@GetMapping
(
"/enterpriseInfoList"
)
@GetMapping
(
"/enterpriseInfoList"
)
public
AjaxResult
enterpriseInfoList
(
TEnterpriseInfo
tEnterpriseInfo
)
public
AjaxResult
enterpriseInfoList
(
TEnterpriseInfo
tEnterpriseInfo
)
{
{
return
AjaxResult
.
success
(
tEnterpriseInfoService
.
enterpriseInfoList
(
tEnterpriseInfo
));
List
<
TEnterpriseInfoVO
>
list
=
tEnterpriseInfoService
.
enterpriseInfoList
(
tEnterpriseInfo
);
return
AjaxResult
.
success
(
list
);
}
}
/**
/**
...
...
gassafetyprogress-system/src/main/java/com/zehong/system/domain/TEnterpriseInfo.java
View file @
4ddda673
...
@@ -27,6 +27,9 @@ public class TEnterpriseInfo extends BaseEntity
...
@@ -27,6 +27,9 @@ public class TEnterpriseInfo extends BaseEntity
@Excel
(
name
=
"企业名称"
)
@Excel
(
name
=
"企业名称"
)
private
String
enterpriseName
;
private
String
enterpriseName
;
@Excel
(
name
=
"企业分类"
)
private
Integer
enterpriseType
;
/** 注册地址 */
/** 注册地址 */
@Excel
(
name
=
"注册地址"
)
@Excel
(
name
=
"注册地址"
)
private
String
registerAddress
;
private
String
registerAddress
;
...
@@ -73,6 +76,14 @@ public class TEnterpriseInfo extends BaseEntity
...
@@ -73,6 +76,14 @@ public class TEnterpriseInfo extends BaseEntity
/**本地存储图片路径*/
/**本地存储图片路径*/
private
String
burl
;
private
String
burl
;
public
Integer
getEnterpriseType
()
{
return
enterpriseType
;
}
public
void
setEnterpriseType
(
Integer
enterpriseType
)
{
this
.
enterpriseType
=
enterpriseType
;
}
public
Long
getCreateEnterpriseId
()
{
public
Long
getCreateEnterpriseId
()
{
return
createEnterpriseId
;
return
createEnterpriseId
;
}
}
...
...
gassafetyprogress-system/src/main/java/com/zehong/system/domain/vo/TEnterpriseInfoVO.java
View file @
4ddda673
...
@@ -27,6 +27,8 @@ public class TEnterpriseInfoVO extends BaseEntity
...
@@ -27,6 +27,8 @@ public class TEnterpriseInfoVO extends BaseEntity
/** 企业切换使用 */
/** 企业切换使用 */
private
String
companyType
;
private
String
companyType
;
private
Integer
enterpriseType
;
/** 经度 */
/** 经度 */
private
BigDecimal
longitude
;
private
BigDecimal
longitude
;
...
...
gassafetyprogress-system/src/main/java/com/zehong/system/service/impl/TEnterpriseInfoServiceImpl.java
View file @
4ddda673
...
@@ -51,7 +51,6 @@ public class TEnterpriseInfoServiceImpl implements ITEnterpriseInfoService
...
@@ -51,7 +51,6 @@ public class TEnterpriseInfoServiceImpl implements ITEnterpriseInfoService
TEnterpriseInfoVO
tEnterpriseInfoVO
=
new
TEnterpriseInfoVO
();
TEnterpriseInfoVO
tEnterpriseInfoVO
=
new
TEnterpriseInfoVO
();
BeanUtils
.
copyProperties
(
info
,
tEnterpriseInfoVO
);
BeanUtils
.
copyProperties
(
info
,
tEnterpriseInfoVO
);
tEnterpriseInfoVO
.
setCompanyType
(
info
.
getEnterpriseId
().
toString
());
tEnterpriseInfoVO
.
setCompanyType
(
info
.
getEnterpriseId
().
toString
());
list
.
add
(
tEnterpriseInfoVO
);
list
.
add
(
tEnterpriseInfoVO
);
}
}
return
list
;
return
list
;
...
...
gassafetyprogress-system/src/main/resources/mapper/system/TEnterpriseInfoMapper.xml
View file @
4ddda673
...
@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"enterpriseId"
column=
"enterprise_id"
/>
<result
property=
"enterpriseId"
column=
"enterprise_id"
/>
<result
property=
"createEnterpriseId"
column=
"create_enterprise_id"
/>
<result
property=
"createEnterpriseId"
column=
"create_enterprise_id"
/>
<result
property=
"enterpriseName"
column=
"enterprise_name"
/>
<result
property=
"enterpriseName"
column=
"enterprise_name"
/>
<result
property=
"enterpriseType"
column=
"enterprise_type"
/>
<result
property=
"registerAddress"
column=
"register_address"
/>
<result
property=
"registerAddress"
column=
"register_address"
/>
<result
property=
"legalRepresentative"
column=
"legal_representative"
/>
<result
property=
"legalRepresentative"
column=
"legal_representative"
/>
<result
property=
"businessArea"
column=
"business_area"
/>
<result
property=
"businessArea"
column=
"business_area"
/>
...
@@ -27,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -27,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
</resultMap>
<sql
id=
"selectTEnterpriseInfoVo"
>
<sql
id=
"selectTEnterpriseInfoVo"
>
select enterprise_id, enterprise_name, register_address, legal_representative,
select enterprise_id, enterprise_name, register_address, legal_representative,
enterprise_type,
business_area, longitude, latitude, icon_type, license_key, license_validity_time, annual_supervision_inspection,
business_area, longitude, latitude, icon_type, license_key, license_validity_time, annual_supervision_inspection,
create_by, create_time, update_by, update_time, remarks,do_business from t_enterprise_info
create_by, create_time, update_by, update_time, remarks,do_business from t_enterprise_info
</sql>
</sql>
...
@@ -41,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -41,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
</if>
<if
test=
"enterpriseName != null and enterpriseName != ''"
>
and enterprise_name like concat('%', #{enterpriseName}, '%')
</if>
<if
test=
"enterpriseName != null and enterpriseName != ''"
>
and enterprise_name like concat('%', #{enterpriseName}, '%')
</if>
<if
test=
"registerAddress != null and registerAddress != ''"
>
and register_address = #{registerAddress}
</if>
<if
test=
"registerAddress != null and registerAddress != ''"
>
and register_address = #{registerAddress}
</if>
<if
test=
"enterpriseType != null"
>
and enterprise_type =#{enterpriseType}
</if>
<if
test=
"legalRepresentative != null and legalRepresentative != ''"
>
and legal_representative = #{legalRepresentative}
</if>
<if
test=
"legalRepresentative != null and legalRepresentative != ''"
>
and legal_representative = #{legalRepresentative}
</if>
<if
test=
"businessArea != null and businessArea != ''"
>
and business_area = #{businessArea}
</if>
<if
test=
"businessArea != null and businessArea != ''"
>
and business_area = #{businessArea}
</if>
<if
test=
"licenseKey != null and licenseKey != ''"
>
and license_key = #{licenseKey}
</if>
<if
test=
"licenseKey != null and licenseKey != ''"
>
and license_key = #{licenseKey}
</if>
...
@@ -61,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -61,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"createEnterpriseId != null"
>
create_enterprise_id,
</if>
<if
test=
"createEnterpriseId != null"
>
create_enterprise_id,
</if>
<if
test=
"enterpriseName != null"
>
enterprise_name,
</if>
<if
test=
"enterpriseName != null"
>
enterprise_name,
</if>
<if
test=
"enterpriseType!=null"
>
enterprise_type,
</if>
<if
test=
"registerAddress != null"
>
register_address,
</if>
<if
test=
"registerAddress != null"
>
register_address,
</if>
<if
test=
"legalRepresentative != null"
>
legal_representative,
</if>
<if
test=
"legalRepresentative != null"
>
legal_representative,
</if>
<if
test=
"businessArea != null"
>
business_area,
</if>
<if
test=
"businessArea != null"
>
business_area,
</if>
...
@@ -81,6 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -81,6 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"createEnterpriseId != null"
>
#{createEnterpriseId},
</if>
<if
test=
"createEnterpriseId != null"
>
#{createEnterpriseId},
</if>
<if
test=
"enterpriseName != null"
>
#{enterpriseName},
</if>
<if
test=
"enterpriseName != null"
>
#{enterpriseName},
</if>
<if
test=
"enterpriseType != null"
>
#{enterpriseType},
</if>
<if
test=
"registerAddress != null"
>
#{registerAddress},
</if>
<if
test=
"registerAddress != null"
>
#{registerAddress},
</if>
<if
test=
"legalRepresentative != null"
>
#{legalRepresentative},
</if>
<if
test=
"legalRepresentative != null"
>
#{legalRepresentative},
</if>
<if
test=
"businessArea != null"
>
#{businessArea},
</if>
<if
test=
"businessArea != null"
>
#{businessArea},
</if>
...
@@ -104,6 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -104,6 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update t_enterprise_info
update t_enterprise_info
<trim
prefix=
"SET"
suffixOverrides=
","
>
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"enterpriseName != null"
>
enterprise_name = #{enterpriseName},
</if>
<if
test=
"enterpriseName != null"
>
enterprise_name = #{enterpriseName},
</if>
<if
test=
"enterpriseType!=null"
>
enterprise_type = #{enterpriseType}
</if>
<if
test=
"registerAddress != null"
>
register_address = #{registerAddress},
</if>
<if
test=
"registerAddress != null"
>
register_address = #{registerAddress},
</if>
<if
test=
"legalRepresentative != null"
>
legal_representative = #{legalRepresentative},
</if>
<if
test=
"legalRepresentative != null"
>
legal_representative = #{legalRepresentative},
</if>
<if
test=
"businessArea != null"
>
business_area = #{businessArea},
</if>
<if
test=
"businessArea != null"
>
business_area = #{businessArea},
</if>
...
...
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