Commit 1b0ecd77 authored by WangXinYu's avatar WangXinYu

养护计划 修改代码

parent 5486cc67
......@@ -111,6 +111,5 @@ public class MaintenanceController {
MessageConstant.MESSAGE_ALERT_SUCCESS,
MessageConstant.MESSAGE_ALERT_ERROR,
maintenanceService.listDevDate(year));
}
}
......@@ -47,7 +47,7 @@ public interface MaintenanceRepository extends BaseMapper<BusDevService> {
* @param date the date
* @return the list
*/
@Select("SELECT * FROM `bus_dev_service` WHERE DATE_FORMAT(SER_TM,'%Y-%m-%d') = #{date}")
@Select("SELECT ds.*,d.DEV_NM,tp.DEV_TP_NM FROM bus_dev_service ds INNER JOIN bus_device d on d.DEV_NUM = ds.DEV_NUM INNER JOIN bus_device_tp tp ON tp.DEV_TP_ID=d.DEV_TP_ID WHERE DATE_FORMAT(SER_TM,'%Y-%m-%d') = #{date}")
List<Map<String,Object>> listBusDevServiceByDate(@Param("date") String date);
/**
......
......@@ -9,7 +9,6 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.UUID;
......@@ -33,7 +32,6 @@ public class MaintenanceServiceImpl implements MaintenanceService {
*/
@Override
public int saveBusDevService(BusDevService busDevService) {
busDevService.setSerTm(new Date());
busDevService.setSerId(UUID.randomUUID().toString().replaceAll("-","").toUpperCase());
int i= 0;
try {
......
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