Commit 126d2a58 authored by caotao's avatar caotao

23228:小程序端-运检工单】运检工单列表,工单推送后,所有运维人员都看到数据,应该是推给谁,谁来执行

parent b53c0e34
...@@ -14,5 +14,5 @@ public interface HYGFMaintenanceTicketsMapper extends BaseMapper<HYGFMaintenance ...@@ -14,5 +14,5 @@ public interface HYGFMaintenanceTicketsMapper extends BaseMapper<HYGFMaintenance
List<String> queryInverterSncodesByStationId(String stationId); List<String> queryInverterSncodesByStationId(String stationId);
@Update("update hygf_maintenance_tickets SET score = #{score} WHERE sequence_nbr = #{sequenceNbr}") @Update("update hygf_maintenance_tickets SET score = #{score} WHERE sequence_nbr = #{sequenceNbr}")
void updateScoreBySequenceNbr(String score,Long 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);
} }
...@@ -5,17 +5,22 @@ ...@@ -5,17 +5,22 @@
<select id="qureyListByQueryparams" <select id="qureyListByQueryparams"
resultType="com.yeejoin.amos.boot.module.hygf.api.dto.HYGFMaintenanceTicketsDto"> resultType="com.yeejoin.amos.boot.module.hygf.api.dto.HYGFMaintenanceTicketsDto">
select * from select hygf_maintenance_tickets.* from
hygf_maintenance_tickets 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> <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 !=''"> <if test="dto.handlerStatus != null and dto.handlerStatus !=''">
And handler_status = #{dto.handlerStatus} And hygf_maintenance_tickets.handler_status = #{dto.handlerStatus}
</if> </if>
<if test="dto.stationName != null and dto.stationName !=''"> <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> </if>
</where> </where>
order by sequence_nbr desc order by hygf_maintenance_tickets.sequence_nbr desc
</select> </select>
</mapper> </mapper>
...@@ -19,6 +19,7 @@ import lombok.extern.slf4j.Slf4j; ...@@ -19,6 +19,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.typroject.tyboot.component.emq.EmqKeeper; import org.typroject.tyboot.component.emq.EmqKeeper;
import org.typroject.tyboot.core.foundation.context.RequestContext;
import org.typroject.tyboot.core.rdbms.service.BaseService; import org.typroject.tyboot.core.rdbms.service.BaseService;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
...@@ -42,8 +43,9 @@ public class HYGFMaintenanceTicketsServiceImpl extends BaseService<HYGFMaintenan ...@@ -42,8 +43,9 @@ public class HYGFMaintenanceTicketsServiceImpl extends BaseService<HYGFMaintenan
* 分页查询 * 分页查询
*/ */
public Page<HYGFMaintenanceTicketsDto> queryForHYGFMaintenanceTicketsDtoPage(int current, int size, HYGFMaintenanceTicketsDto hygfMaintenanceTicketsDto) { public Page<HYGFMaintenanceTicketsDto> queryForHYGFMaintenanceTicketsDtoPage(int current, int size, HYGFMaintenanceTicketsDto hygfMaintenanceTicketsDto) {
String amosUserId = RequestContext.getExeUserId();
PageHelper.startPage(current, size); 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); PageInfo<HYGFMaintenanceTicketsDto> page = new PageInfo<>(hygfMaintenanceTicketsDtos);
Page<HYGFMaintenanceTicketsDto> pageNew = new Page<>(); Page<HYGFMaintenanceTicketsDto> pageNew = new Page<>();
pageNew.setCurrent(current); pageNew.setCurrent(current);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment