wujianwei
2025-09-04 d87721bf2b5cbbdc8088c9f9e0bfbba61b125a0f
修改接口
4个文件已修改
10 ■■■■■ 已修改文件
api/src/main/java/com/ruoyi/api/third/controller/LockerApiController.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/src/main/java/com/ruoyi/cwgl/domain/KeyCollectionInfo.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/src/main/java/com/ruoyi/cwgl/service/impl/KeyCollectionInfoServiceImpl.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/src/main/resources/mapper/cwgl/KeyCollectionInfoMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/src/main/java/com/ruoyi/api/third/controller/LockerApiController.java
@@ -48,6 +48,7 @@
        requestLog.setDriverCode(takeReviewDto.getDriverCode());
        requestLog.setDriverName(takeReviewDto.getDriverName());
        requestLog.setReqTime(takeReviewDto.getHandleTime());
        requestLog.setBoxNum(keyCollectionInfo.getBoxNum());
        requestLog.setType(0);
        logService.insertRequestLog(requestLog);
service/src/main/java/com/ruoyi/cwgl/domain/KeyCollectionInfo.java
@@ -173,4 +173,7 @@
    @TableField(exist = false)
    private Integer keyTimeout;
    @Excel(name = "钥匙柜编号")
    @TableField("box_num")
    private String boxNum;
}
service/src/main/java/com/ruoyi/cwgl/service/impl/KeyCollectionInfoServiceImpl.java
@@ -5,6 +5,7 @@
import javax.annotation.Resource;
import com.ruoyi.common.constant.HttpStatus;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.cwgl.domain.RequestLog;
@@ -212,6 +213,8 @@
            String dateToStr = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, estimatedDepartureTime);
            return AjaxResult.error("要求出发时间"+ dateToStr+",领取钥匙超时"+keyTimeout+"个小时");
        }
        return AjaxResult.success("成功",2);
        AjaxResult success = new AjaxResult(0, "成功",2);
        success.put("boxNum",keyCollectionInfo.getBoxNum());
        return success;
    }
}
service/src/main/resources/mapper/cwgl/KeyCollectionInfoMapper.xml
@@ -87,6 +87,7 @@
        driver_m.`NAME` as driverName,
        driver_m.MOBILE as driverMobile,
        vhc.LICENSE_PLATE_NUMBER as licensePlateNumber,
        vhc.NAME as boxNum,
        ord.ORDER_TIME as orderTime,
        ord.CREATED_TIME as orderCreatedTime,
        ts.CREATED_TIME as dispatchCreatedTime,