master
ljw 2025-11-19 17:35:47 +08:00
parent eff2cf2819
commit 1c390713c6
7 changed files with 25 additions and 8 deletions

View File

@ -48,6 +48,9 @@ public class OrderRouteEntity {
*/ */
private String name; private String name;
@TableField(exist = false)
private String projectName;
/** /**
* *
*/ */

View File

@ -43,6 +43,9 @@ public class RouteEntity {
*/ */
private String name; private String name;
@TableField(exist = false)
private String projectName;
/** /**
* *
*/ */

View File

@ -107,7 +107,8 @@ public class OrderRouteServiceImpl extends ServiceImpl<OrderRouteMapper, OrderRo
.like(StrUtil.isNotBlank(routeEntity.getName()), "a.name", routeEntity.getName()) .like(StrUtil.isNotBlank(routeEntity.getName()), "a.name", routeEntity.getName())
.eq(null != routeEntity.getCompanyId(), "a.company_id", routeEntity.getCompanyId()) .eq(null != routeEntity.getCompanyId(), "a.company_id", routeEntity.getCompanyId())
.eq(null != routeEntity.getStationId(), "a.station_id", routeEntity.getStationId()) .eq(null != routeEntity.getStationId(), "a.station_id", routeEntity.getStationId())
.eq(null != routeEntity.getOrderId(), "a.order_id", routeEntity.getOrderId()); .eq(null != routeEntity.getOrderId(), "a.order_id", routeEntity.getOrderId())
.eq(null != routeEntity.getProjectId(), "a.project_id", routeEntity.getProjectId());
IPage<OrderRouteEntity> page = orderRouteMapper.paging(pageParam.toPage(), ew); IPage<OrderRouteEntity> page = orderRouteMapper.paging(pageParam.toPage(), ew);
for (OrderRouteEntity entity : page.getRecords()) { for (OrderRouteEntity entity : page.getRecords()) {
List<OrderRouteDetailEntity> detailEntityList = orderRouteDetailService.list(Wrappers.lambdaQuery(OrderRouteDetailEntity.class) List<OrderRouteDetailEntity> detailEntityList = orderRouteDetailService.list(Wrappers.lambdaQuery(OrderRouteDetailEntity.class)

View File

@ -106,7 +106,8 @@ public class RouteServiceImpl extends ServiceImpl<RouteMapper, RouteEntity> impl
.eq("a.deleted", 0) .eq("a.deleted", 0)
.like(StrUtil.isNotBlank(routeEntity.getName()), "a.name", routeEntity.getName()) .like(StrUtil.isNotBlank(routeEntity.getName()), "a.name", routeEntity.getName())
.eq(null != routeEntity.getCompanyId(), "a.company_id", routeEntity.getCompanyId()) .eq(null != routeEntity.getCompanyId(), "a.company_id", routeEntity.getCompanyId())
.eq(null != routeEntity.getStationId(), "a.station_id", routeEntity.getStationId()); .eq(null != routeEntity.getStationId(), "a.station_id", routeEntity.getStationId())
.eq(null != routeEntity.getProjectId(), "a.project_id", routeEntity.getProjectId());
IPage<RouteEntity> page = routeMapper.paging(pageParam.toPage(), ew); IPage<RouteEntity> page = routeMapper.paging(pageParam.toPage(), ew);
for (RouteEntity entity : page.getRecords()) { for (RouteEntity entity : page.getRecords()) {
List<RouteDetailEntity> detailEntityList = routeDetailService.list(Wrappers.lambdaQuery(RouteDetailEntity.class) List<RouteDetailEntity> detailEntityList = routeDetailService.list(Wrappers.lambdaQuery(RouteDetailEntity.class)

View File

@ -1,6 +1,5 @@
package com.njzscloud.supervisory.wxPay.service; package com.njzscloud.supervisory.wxPay.service;
import com.njzscloud.supervisory.wxPay.dto.TemplateData;
import com.njzscloud.supervisory.wxPay.param.TemplateMessageParam; import com.njzscloud.supervisory.wxPay.param.TemplateMessageParam;
import org.springframework.scheduling.annotation.Async; import org.springframework.scheduling.annotation.Async;

View File

@ -16,10 +16,12 @@
a.modify_time, a.modify_time,
a.deleted, a.deleted,
b.company_name start_address, b.company_name start_address,
c.station_name end_address c.station_name end_address,
d.project_name
FROM order_route a FROM order_route a
LEFT JOIN biz_company b ON b.id = a.company_id LEFT JOIN biz_company b ON b.id = a.company_id
LEFT JOIN biz_company c ON c.id = a.station_id LEFT JOIN biz_company c ON c.id = a.station_id
LEFT JOIN biz_project d ON d.id = a.project_id
<if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
${ew.customSqlSegment} ${ew.customSqlSegment}
</if> </if>
@ -39,10 +41,12 @@
a.modify_time, a.modify_time,
a.deleted, a.deleted,
b.company_name start_address, b.company_name start_address,
c.station_name end_address c.station_name end_address,
d.project_name
FROM order_route a FROM order_route a
LEFT JOIN biz_company b ON b.id = a.company_id LEFT JOIN biz_company b ON b.id = a.company_id
LEFT JOIN biz_company c ON c.id = a.station_id LEFT JOIN biz_company c ON c.id = a.station_id
LEFT JOIN biz_project d ON d.id = a.project_id
WHERE a.id = #{id} WHERE a.id = #{id}
AND a.deleted = 0 AND a.deleted = 0
</select> </select>
@ -60,10 +64,12 @@
a.modify_time, a.modify_time,
a.deleted, a.deleted,
b.company_name start_address, b.company_name start_address,
c.station_name end_address c.station_name end_address,
d.project_name
FROM order_route a FROM order_route a
LEFT JOIN biz_company b ON b.id = a.company_id LEFT JOIN biz_company b ON b.id = a.company_id
LEFT JOIN biz_company c ON c.id = a.station_id LEFT JOIN biz_company c ON c.id = a.station_id
LEFT JOIN biz_project d ON d.id = a.project_id
WHERE a.order_id = #{orderId} WHERE a.order_id = #{orderId}
AND a.deleted = 0 AND a.deleted = 0
</select> </select>

View File

@ -15,10 +15,12 @@
a.modify_time, a.modify_time,
a.deleted, a.deleted,
b.company_name start_address, b.company_name start_address,
c.station_name end_address c.station_name end_address,
d.project_name
FROM biz_route a FROM biz_route a
LEFT JOIN biz_company b ON b.id = a.company_id LEFT JOIN biz_company b ON b.id = a.company_id
LEFT JOIN biz_company c ON c.id = a.station_id LEFT JOIN biz_company c ON c.id = a.station_id
LEFT JOIN biz_project d ON d.id = a.project_id
<if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
${ew.customSqlSegment} ${ew.customSqlSegment}
</if> </if>
@ -37,10 +39,12 @@
a.modify_time, a.modify_time,
a.deleted, a.deleted,
b.company_name start_address, b.company_name start_address,
c.station_name end_address c.station_name end_address,
d.project_name
FROM biz_route a FROM biz_route a
LEFT JOIN biz_company b ON b.id = a.company_id LEFT JOIN biz_company b ON b.id = a.company_id
LEFT JOIN biz_company c ON c.id = a.station_id LEFT JOIN biz_company c ON c.id = a.station_id
LEFT JOIN biz_project d ON d.id = a.project_id
WHERE a.id = #{id} WHERE a.id = #{id}
AND a.deleted = 0 AND a.deleted = 0
</select> </select>