Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
f9dbfc69
Commit
f9dbfc69
authored
Nov 22, 2022
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
焊工统计接口开发
parent
382b0468
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
0 deletions
+50
-0
WelderMapper.java
...yeejoin/amos/boot/module/ugp/api/mapper/WelderMapper.java
+10
-0
WelderMapper.xml
...module-ugp-api/src/main/resources/mapper/WelderMapper.xml
+16
-0
WelderController.java
...amos/boot/module/ugp/biz/controller/WelderController.java
+10
-0
WelderServiceImpl.java
...s/boot/module/ugp/biz/service/impl/WelderServiceImpl.java
+14
-0
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/mapper/WelderMapper.java
0 → 100644
View file @
f9dbfc69
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
java.util.List
;
import
java.util.Map
;
public
interface
WelderMapper
extends
BaseMapper
{
List
<
Map
>
welderStatistics
(
String
bizOrgCode
);
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/resources/mapper/WelderMapper.xml
0 → 100644
View file @
f9dbfc69
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.ugp.api.mapper.WelderMapper"
>
<select
id=
"welderStatistics"
resultType=
"java.util.Map"
>
SELECT
fi.field_value AS `name`,COUNT(1) AS value
FROM
cb_org_usr AS ou
LEFT JOIN cb_dynamic_form_instance AS fi ON ou.sequence_nbr = fi.instance_id and fi.field_code = "licensedProject"
WHERE ou.org_expand_attr1 = "WELDER" AND ou.biz_org_type="PERSON" AND ou.biz_org_code LIKE CONCAT("%",#{bizOrgCode},"%")
GROUP BY fi.field_value
</select>
</mapper>
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/WelderController.java
View file @
f9dbfc69
...
@@ -239,4 +239,14 @@ public class WelderController extends BaseController {
...
@@ -239,4 +239,14 @@ public class WelderController extends BaseController {
return
ResponseHelper
.
buildResponse
(
page
);
return
ResponseHelper
.
buildResponse
(
page
);
}
}
/**
* 焊工持证项目统计
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"焊工持证项目统计"
,
notes
=
"焊工持证项目统计"
)
@GetMapping
(
value
=
"/welderStatistics"
)
public
ResponseModel
<
List
<
Map
>>
welderStatistics
()
{
return
ResponseHelper
.
buildResponse
(
welderServiceImpl
.
welderStatistics
());
}
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/WelderServiceImpl.java
View file @
f9dbfc69
...
@@ -6,10 +6,13 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
...
@@ -6,10 +6,13 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.OrgUsrDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.OrgUsr
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.OrgUsrServiceImpl
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.OrgEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.OrgEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.ProjectResourceEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.ProjectResourceEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Project
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Project
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.ProjectResource
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.ProjectResource
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.WelderMapper
;
import
com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify
;
import
com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
...
@@ -38,6 +41,11 @@ public class WelderServiceImpl {
...
@@ -38,6 +41,11 @@ public class WelderServiceImpl {
@Value
(
"${amos.secret.key}"
)
@Value
(
"${amos.secret.key}"
)
String
secretKey
;
String
secretKey
;
@Autowired
OrgUsrServiceImpl
orgUsrService
;
@Autowired
WelderMapper
welderMapper
;
/**
/**
* 获取当前登录所在单位下的项目中的所有焊工列表
* 获取当前登录所在单位下的项目中的所有焊工列表
...
@@ -156,4 +164,10 @@ public class WelderServiceImpl {
...
@@ -156,4 +164,10 @@ public class WelderServiceImpl {
return
orgService
.
dataHandling
(
jsonObject
,
bizOrgType
,
sequenceNbr
);
return
orgService
.
dataHandling
(
jsonObject
,
bizOrgType
,
sequenceNbr
);
}
}
@BusinessIdentify
public
List
<
Map
>
welderStatistics
()
{
String
bizOrgCode
=
orgUsrService
.
getById
(
orgService
.
getReginParams
().
getBusinessInfo
().
getCompanySequenceNbr
()).
getBizOrgCode
();
return
welderMapper
.
welderStatistics
(
bizOrgCode
);
}
}
}
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