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
126d2a58
Commit
126d2a58
authored
Mar 19, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
23228:小程序端-运检工单】运检工单列表,工单推送后,所有运维人员都看到数据,应该是推给谁,谁来执行
parent
b53c0e34
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
HYGFMaintenanceTicketsMapper.java
.../module/hygf/api/mapper/HYGFMaintenanceTicketsMapper.java
+1
-1
HYGFMaintenanceTicketsMapper.xml
...n/resources/mapper/mysql/HYGFMaintenanceTicketsMapper.xml
+10
-5
HYGFMaintenanceTicketsServiceImpl.java
...f/biz/service/impl/HYGFMaintenanceTicketsServiceImpl.java
+3
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/HYGFMaintenanceTicketsMapper.java
View file @
126d2a58
...
...
@@ -14,5 +14,5 @@ public interface HYGFMaintenanceTicketsMapper extends BaseMapper<HYGFMaintenance
List
<
String
>
queryInverterSncodesByStationId
(
String
stationId
);
@Update
(
"update hygf_maintenance_tickets SET score = #{score} WHERE sequence_nbr = #{sequenceNbr}"
)
void
updateScoreBySequenceNbr
(
String
score
,
Long
sequenceNbr
);
List
<
HYGFMaintenanceTicketsDto
>
qureyListByQueryparams
(
@Param
(
"dto"
)
HYGFMaintenanceTicketsDto
dto
);
List
<
HYGFMaintenanceTicketsDto
>
qureyListByQueryparams
(
@Param
(
"dto"
)
HYGFMaintenanceTicketsDto
dto
,
@Param
(
"amosUserId"
)
String
amosUserId
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/HYGFMaintenanceTicketsMapper.xml
View file @
126d2a58
...
...
@@ -5,17 +5,22 @@
<select
id=
"qureyListByQueryparams"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.HYGFMaintenanceTicketsDto"
>
select * from
select
hygf_maintenance_tickets.
* from
hygf_maintenance_tickets
left join
hygf_maintenance on hygf_maintenance_tickets.maintenance_person_id = hygf_maintenance.sequence_nbr
LEFT JOIN
std_user_biz on hygf_maintenance.foundation_id = std_user_biz.sequence_nbr
<where>
is_delete = 0
std_user_biz.amos_user_id =#{amosUserId}
and hygf_maintenance_tickets.is_delete = 0
<if
test=
"dto.handlerStatus != null and dto.handlerStatus !=''"
>
And handler_status = #{dto.handlerStatus}
And h
ygf_maintenance_tickets.h
andler_status = #{dto.handlerStatus}
</if>
<if
test=
"dto.stationName != null and dto.stationName !=''"
>
And station_name LIKE CONCAT('%', #{dto.stationName}, '%')
And
hygf_maintenance_tickets.
station_name LIKE CONCAT('%', #{dto.stationName}, '%')
</if>
</where>
order by sequence_nbr desc
order by
hygf_maintenance_tickets.
sequence_nbr desc
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/HYGFMaintenanceTicketsServiceImpl.java
View file @
126d2a58
...
...
@@ -19,6 +19,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.component.emq.EmqKeeper
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.nio.charset.StandardCharsets
;
...
...
@@ -42,8 +43,9 @@ public class HYGFMaintenanceTicketsServiceImpl extends BaseService<HYGFMaintenan
* 分页查询
*/
public
Page
<
HYGFMaintenanceTicketsDto
>
queryForHYGFMaintenanceTicketsDtoPage
(
int
current
,
int
size
,
HYGFMaintenanceTicketsDto
hygfMaintenanceTicketsDto
)
{
String
amosUserId
=
RequestContext
.
getExeUserId
();
PageHelper
.
startPage
(
current
,
size
);
List
<
HYGFMaintenanceTicketsDto
>
hygfMaintenanceTicketsDtos
=
this
.
getBaseMapper
().
qureyListByQueryparams
(
hygfMaintenanceTicketsDto
);
List
<
HYGFMaintenanceTicketsDto
>
hygfMaintenanceTicketsDtos
=
this
.
getBaseMapper
().
qureyListByQueryparams
(
hygfMaintenanceTicketsDto
,
amosUserId
);
PageInfo
<
HYGFMaintenanceTicketsDto
>
page
=
new
PageInfo
<>(
hygfMaintenanceTicketsDtos
);
Page
<
HYGFMaintenanceTicketsDto
>
pageNew
=
new
Page
<>();
pageNew
.
setCurrent
(
current
);
...
...
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