Procházet zdrojové kódy

更新执行开始时间

master
牧羊人 před 4 roky
rodič
revize
adf7ef842f
9 změnil soubory, kde provedl 32 přidání a 40 odebrání
  1. +6
    -14
      src/main/java/com/taauav/admin/dto/TauvInspectDriverDTO.java
  2. +2
    -2
      src/main/java/com/taauav/admin/dto/TauvInspectDriverPicDTO.java
  3. +7
    -7
      src/main/java/com/taauav/admin/mapper/TauvInspectDriverMapper.xml
  4. +3
    -3
      src/main/java/com/taauav/admin/mapper/TauvReportMapper.xml
  5. +1
    -1
      src/main/java/com/taauav/admin/service/ISysAuthGroupService.java
  6. +1
    -1
      src/main/java/com/taauav/admin/service/impl/SysAuthGroupServiceImpl.java
  7. +8
    -8
      src/main/java/com/taauav/admin/service/impl/TauvInspectDriverServiceImpl.java
  8. +3
    -3
      src/main/java/com/taauav/admin/service/impl/TauvInspectFileServiceImpl.java
  9. +1
    -1
      src/main/java/com/taauav/admin/service/impl/TauvReportServiceImpl.java

+ 6
- 14
src/main/java/com/taauav/admin/dto/TauvInspectDriverDTO.java Zobrazit soubor

@@ -16,10 +16,10 @@ import java.util.Date;
@Data
public class TauvInspectDriverDTO extends BaseInspectDriverDTO {
/**
* 飞行小组
* 飞
*/
private String flightGroup;
private String flightGroupText;
private String flightHand;
private String flightHandText;
/**
* 添加时间
*/
@@ -78,20 +78,12 @@ public class TauvInspectDriverDTO extends BaseInspectDriverDTO {
private String driverEnd;

/**
* 执行开始时间
* 执行时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date executionStartTime;
private String formatExecutionStartTime;

/**
* 执行结束时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date executionEndTime;
private String formatExecutionEndTime;
private Date executionTime;
private String formatExecutionTime;

/**
* 飞行时长

+ 2
- 2
src/main/java/com/taauav/admin/dto/TauvInspectDriverPicDTO.java Zobrazit soubor

@@ -57,8 +57,8 @@ public class TauvInspectDriverPicDTO extends BaseInspectDriverDTO{
/**
* 巡检开始时间
*/
private Integer executionStartTime;
private String formatExecutionStartTime;
private Integer executionTime;
private String formatExecutionTime;
/**
* 最近上传时间
*/

+ 7
- 7
src/main/java/com/taauav/admin/mapper/TauvInspectDriverMapper.xml Zobrazit soubor

@@ -24,8 +24,8 @@
<if test="param.inspectTime != null and param.inspectTime != ''">
and inspect.inspect_time >= #{param.inspectTime}
</if>
<!-- <if test="param.flightGroup != null and param.flightGroup != ''">-->
<!-- and driver.flight_group = #{param.flightGroup}-->
<!-- <if test="param.flightHand != null and param.flightHand != ''">-->
<!-- and driver.flight_hand = #{param.flightHand}-->
<!-- </if>-->
<if test="param.status != null and param.status != '' ">
and driver.status in
@@ -35,7 +35,7 @@

</if>
<if test="param.allocation != null and param.allocation>0">
and driver.flight_group > 0
and driver.flight_hand > 0
</if>
<!-- <if test="param.driverExam != null and param.driverExam > 0">-->
<!-- and driver.driver_exam = #{param.driverExam}-->
@@ -67,11 +67,11 @@
</foreach>

</if>
<if test="param.flightGroup != null and param.flightGroup>0">
and flight_group = #{param.flightGroup}
<if test="param.flightHand != null and param.flightHand>0">
and flight_hand = #{param.flightHand}
</if>
<if test="param.startTime !=null and param.endTime != null">
and execution_start_time between #{param.startTime} and #{param.endTime}
and execution_time between #{param.startTime} and #{param.endTime}
</if>
<if test="param.isReview != null and param.isReview>0">
and is_review = #{param.isReview}
@@ -79,6 +79,6 @@
<!-- <if test="param.driverExam != null and param.driverExam > 0">-->
<!-- and driver_exam = #{param.driverExam}-->
<!-- </if>-->
order by status asc,execution_start_time desc,inspect_no desc,num asc,id desc
order by status asc,execution_time desc,inspect_no desc,num asc,id desc
</select>
</mapper>

+ 3
- 3
src/main/java/com/taauav/admin/mapper/TauvReportMapper.xml Zobrazit soubor

@@ -11,7 +11,7 @@
</foreach>
</if>
<if test="param.inspectStatus != null and param.inspectStatus >0"> and b.status = #{param.inspectStatus}</if>
<if test="param.flightGroup != null and param.flightGroup > 0"> and a.flight_group = #{param.flightGroup}</if>
<if test="param.flightHand != null and param.flightHand > 0"> and a.flight_hand = #{param.flightHand}</if>
<if test="param.driverArea != null and param.driverArea !=''"> and a.driver_area in
<foreach collection="param.driverArea" item="area" open="(" close=")" separator=",">
#{area}
@@ -48,7 +48,7 @@
<!--内部用户报告数据查询-->
<select id="getInnerUserSearchDataList" parameterType="java.util.Map" resultType="com.taauav.admin.dto.TauvReportDTO">
select a.* from tauv_report a left join tauv_report_check b on a.id=b.report_id
where a.mark=1 and (a.flight_group = #{param.adminId} or b.check_user = #{param.adminId})
where a.mark=1 and (a.flight_hand = #{param.adminId} or b.check_user = #{param.adminId})
<if test="param.status != null and param.status != ''">
and a.status in <foreach collection="param.status" item="status" separator="," open="(" close=")">
#{status}
@@ -56,7 +56,7 @@
</if>
<if test="param.inspectStatus != null and param.inspectStatus >0"> and b.status = #{param.inspectStatus}</if>
<if test="param.inspectStatus != null and param.inspectStatus >0"> and b.status = #{param.inspectStatus}</if>
<if test="param.flightGroup != null and param.flightGroup > 0"> and a.flight_group = #{param.flightGroup}</if>
<if test="param.flightHand != null and param.flightHand > 0"> and a.flight_hand = #{param.flightHand}</if>
<if test="param.driverArea != null and param.driverArea !=''"> and a.driver_area in
<foreach collection="param.driverArea" item="area" open="(" close=")" separator=",">
#{area}

+ 1
- 1
src/main/java/com/taauav/admin/service/ISysAuthGroupService.java Zobrazit soubor

@@ -111,5 +111,5 @@ public interface ISysAuthGroupService extends IBaseService<SysAuthGroup> {
* @param admin
* @return
*/
Boolean isFlightGroup(SysAdmin admin);
Boolean isFlightHand(SysAdmin admin);
}

+ 1
- 1
src/main/java/com/taauav/admin/service/impl/SysAuthGroupServiceImpl.java Zobrazit soubor

@@ -332,7 +332,7 @@ public class SysAuthGroupServiceImpl extends BaseServiceImpl<SysAuthGroupMapper,
* @return
*/
@Override
public Boolean isFlightGroup(SysAdmin admin) {
public Boolean isFlightHand(SysAdmin admin) {
QueryWrapper wrapper = new QueryWrapper();
wrapper.eq("mark", 1);
wrapper.eq("name", "flight_auth_group");

+ 8
- 8
src/main/java/com/taauav/admin/service/impl/TauvInspectDriverServiceImpl.java Zobrazit soubor

@@ -559,7 +559,7 @@ public class TauvInspectDriverServiceImpl extends BaseServiceImpl<TauvInspectDri
return response.failure(info.get("error"));
}
Integer groupId = (Integer) info.get("flightGroup");
Long startTime = new Long(info.get("executionStartTime").toString());
Long startTime = new Long(info.get("executionTime").toString());
Long inspectTime = new Long(info.get("inspectTime").toString());
if (startTime > 0) {
info.put("executionTime", FunctionUtils.formatTime(startTime.intValue(), "yyyy-MM-dd HH:mm:ss"));
@@ -567,9 +567,9 @@ public class TauvInspectDriverServiceImpl extends BaseServiceImpl<TauvInspectDri
info.put("executionTime", "");
}
if (inspectTime > 0) {
info.put("formatinspectTime", FunctionUtils.formatTime(inspectTime.intValue(), "yyyy-MM-dd HH:mm:ss"));
info.put("formatInspectTime", FunctionUtils.formatTime(inspectTime.intValue(), "yyyy-MM-dd HH:mm:ss"));
} else {
info.put("formatinspectTime", "");
info.put("formatInspectTime", "");
}
SysAdmin adminInfo = iSysAdminService.getAdminInfo(groupId);
info.put("flightGroupText", StringUtils.isEmpty(adminInfo) ? "" : adminInfo.getRealname());
@@ -604,12 +604,12 @@ public class TauvInspectDriverServiceImpl extends BaseServiceImpl<TauvInspectDri
// driver.setFormatExecutionEndTime(FunctionUtils.formatTime(driver.getExecutionEndTime(), "yyyy-MM-dd HH:mm:ss"));
driver.setFormatCreateTime(DateUtil.format(driver.getCreateTime(), "yyyy-MM-dd HH:mm:ss"));
driver.setFormatInspectTime(DateUtil.format(driver.getInspectTime(), "yyyy-MM-dd HH:mm:ss"));
if (!StringUtils.isEmpty(driver.getExecutionStartTime())) {
driver.setFormatExecutionStartTime(DateUtil.format(driver.getExecutionStartTime(), "yyyy-MM-dd HH:mm:ss"));
}
if (!StringUtils.isEmpty(driver.getExecutionEndTime())) {
driver.setFormatExecutionEndTime(DateUtil.format(driver.getExecutionEndTime(), "yyyy-MM-dd HH:mm:ss"));
if (!StringUtils.isEmpty(driver.getExecutionTime())) {
driver.setFormatExecutionTime(DateUtil.format(driver.getExecutionTime(), "yyyy-MM-dd HH:mm:ss"));
}
// if (!StringUtils.isEmpty(driver.getExecutionEndTime())) {
// driver.setFormatExecutionEndTime(DateUtil.format(driver.getExecutionEndTime(), "yyyy-MM-dd HH:mm:ss"));
// }
if (!StringUtils.isEmpty(driver.getDriverArea())) {
SysCity cityInfo = iSysCityService.getInfoById(driver.getDriverArea());
driver.setDriverAreaText(StringUtils.isEmpty(cityInfo) ? "" : cityInfo.getName());

+ 3
- 3
src/main/java/com/taauav/admin/service/impl/TauvInspectFileServiceImpl.java Zobrazit soubor

@@ -123,9 +123,9 @@ public class TauvInspectFileServiceImpl extends BaseServiceImpl<TauvInspectFileM
Map<Integer, String> statusList = picDTO.getStatusList();
String format = "yyyy-MM-dd HH:mm:ss";
for (TauvInspectDriverPicDTO driverPicDTO : list) {
Integer executionStartTime = driverPicDTO.getExecutionStartTime();
if (!StringUtils.isEmpty(executionStartTime)) {
driverPicDTO.setFormatExecutionStartTime(FunctionUtils.formatTime(executionStartTime, format));
Integer executionTime = driverPicDTO.getExecutionTime();
if (!StringUtils.isEmpty(executionTime)) {
driverPicDTO.setFormatExecutionTime(FunctionUtils.formatTime(executionTime, format));
}
Integer status = driverPicDTO.getStatus().intValue();
driverPicDTO.setStatusText(StringUtils.isEmpty(status) ? "" : statusList.get(status));

+ 1
- 1
src/main/java/com/taauav/admin/service/impl/TauvReportServiceImpl.java Zobrazit soubor

@@ -135,7 +135,7 @@ public class TauvReportServiceImpl extends BaseServiceImpl<TauvReportMapper, Tau
// String cityIdStr = adminInfo.getCityIds();
if (!"1".equals(adminId.toString())) {
// 谁执行的报告谁生成
map.put("flightGroup", adminId);
map.put("flightHand", adminId);
}
// 生成的报告必须是已复核完成的
map.put("inspectStatus", 6);

Načítá se…
Zrušit
Uložit