Merge branch 'dev' of http://122.51.230.86:3000/dianliang/lanan-system into dev
This commit is contained in:
commit
b458fc1b7b
@ -13,5 +13,7 @@ import lombok.ToString;
|
|||||||
public class CustomerMainPageReqVO extends CustomerMain {
|
public class CustomerMainPageReqVO extends CustomerMain {
|
||||||
/**系统标识*/
|
/**系统标识*/
|
||||||
private String systemCode;
|
private String systemCode;
|
||||||
|
/** 工单查询时条件*/
|
||||||
|
private String phoneOrCar;
|
||||||
|
|
||||||
}
|
}
|
@ -43,6 +43,7 @@
|
|||||||
base_customer_main main
|
base_customer_main main
|
||||||
LEFT JOIN base_customer_item item ON main.id = item.cus_id AND item.deleted = 0
|
LEFT JOIN base_customer_item item ON main.id = item.cus_id AND item.deleted = 0
|
||||||
LEFT JOIN dl_member_level memberLevel ON main.member_level_id = memberLevel.id
|
LEFT JOIN dl_member_level memberLevel ON main.member_level_id = memberLevel.id
|
||||||
|
LEFT JOIN base_car_main car ON main.user_id = car.user_id
|
||||||
<where>
|
<where>
|
||||||
main.deleted = 0
|
main.deleted = 0
|
||||||
<if test="entity.cusName != null and entity.cusName != ''">
|
<if test="entity.cusName != null and entity.cusName != ''">
|
||||||
@ -57,6 +58,11 @@
|
|||||||
<if test="entity.phoneNumber != null and entity.phoneNumber != ''">
|
<if test="entity.phoneNumber != null and entity.phoneNumber != ''">
|
||||||
AND main.phone_number LIKE concat('%',#{entity.phoneNumber},'%')
|
AND main.phone_number LIKE concat('%',#{entity.phoneNumber},'%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="entity.phoneOrCar != null and entity.phoneOrCar != ''">
|
||||||
|
AND main.phone_number = #{entity.phoneOrCar}
|
||||||
|
OR car.license_number = #{entity.phoneOrCar}
|
||||||
|
OR car.vin = #{entity.phoneOrCar}
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
GROUP BY main.id
|
GROUP BY main.id
|
||||||
ORDER BY main.create_time DESC
|
ORDER BY main.create_time DESC
|
||||||
|
@ -200,13 +200,16 @@ public class InspectionInfoServiceImpl extends ServiceImpl<InspectionInfoMapper,
|
|||||||
customerInfo.setCustomerName(user.getNickname());
|
customerInfo.setCustomerName(user.getNickname());
|
||||||
customerInfo.setSex("0");
|
customerInfo.setSex("0");
|
||||||
customerInfo.setUserAge(user.getUserAge());
|
customerInfo.setUserAge(user.getUserAge());
|
||||||
|
|
||||||
// 设置客户来源
|
// 设置客户来源
|
||||||
CustomerMain customerMain = new CustomerMain();
|
CustomerMain customerMain = new CustomerMain();
|
||||||
customerMain.setDataFrom("01");
|
customerMain.setDataFrom("01");
|
||||||
customerMainService.saveOrUpdate(customerMain);
|
customerMainService.saveOrUpdate(customerMain);
|
||||||
|
try {
|
||||||
|
customerInfoService.insertPartnerCustomerInfo(customerInfo);
|
||||||
|
}catch (Exception ignored){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
customerInfoService.insertPartnerCustomerInfo(customerInfo);
|
|
||||||
}
|
}
|
||||||
//追加订单明细记录
|
//追加订单明细记录
|
||||||
orderInfoDetailService.save(new OrderInfoDetail(orderInfo.getId(),"线下订单创建",new Date(),0L,"1"));
|
orderInfoDetailService.save(new OrderInfoDetail(orderInfo.getId(),"线下订单创建",new Date(),0L,"1"));
|
||||||
|
@ -126,7 +126,7 @@ public class PartnerCustomerInfoServiceImpl extends ServiceImpl<PartnerCustomerI
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
|
||||||
public int insertPartnerCustomerInfo(PartnerCustomerInfo partnerCustomerInfo) throws Exception {
|
public int insertPartnerCustomerInfo(PartnerCustomerInfo partnerCustomerInfo) throws Exception {
|
||||||
// 获取当前商户信息
|
// 获取当前商户信息
|
||||||
ShopMallPartners partners = partnerService.shopInfo();
|
ShopMallPartners partners = partnerService.shopInfo();
|
||||||
|
@ -286,7 +286,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
}
|
}
|
||||||
repairOrderInfoService.saveOrderInfo(repairOrderInfo);
|
repairOrderInfoService.saveOrderInfo(repairOrderInfo);
|
||||||
//最后记录操作日志--创建工单
|
//最后记录操作日志--创建工单
|
||||||
repairRecordsService.saveRepairRecord(ticketsRespVO.getId(), null, RecordTypeEnum.CJGD.getCode(), "创建工单", null);
|
repairRecordsService.saveRepairRecord(ticketsRespVO.getId(), null, RecordTypeEnum.CJGD.getCode(), "创建工单", ticketsRespVO.getImage());
|
||||||
return ticketsRespVO;
|
return ticketsRespVO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,4 +25,7 @@ public class DlTicketWaresReqVO extends DlTicketWares {
|
|||||||
|
|
||||||
/** 查看可以退料的数据时为tru */
|
/** 查看可以退料的数据时为tru */
|
||||||
private Boolean isBack;
|
private Boolean isBack;
|
||||||
|
|
||||||
|
/** 查看待审核的数据时为true */
|
||||||
|
private Boolean isToBeReviewed;
|
||||||
}
|
}
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
so.so_status,
|
so.so_status,
|
||||||
so.remark,
|
so.remark,
|
||||||
so.corp_id,
|
so.corp_id,
|
||||||
|
so.main_id,
|
||||||
so.corp_name,
|
so.corp_name,
|
||||||
so.dept_id,
|
so.dept_id,
|
||||||
so.create_time,
|
so.create_time,
|
||||||
@ -67,7 +68,7 @@
|
|||||||
and so.so_status = #{map.soStatus}
|
and so.so_status = #{map.soStatus}
|
||||||
</if>
|
</if>
|
||||||
<if test="map.soStatus == null">
|
<if test="map.soStatus == null">
|
||||||
and so.so_status != '06'
|
and (so.so_status != '06' or so.so_status is null)
|
||||||
</if>
|
</if>
|
||||||
<if test="map.searchTimeArray != null and map.searchTimeArray.length > 0">
|
<if test="map.searchTimeArray != null and map.searchTimeArray.length > 0">
|
||||||
and (so.create_time between #{map.searchTimeArray[0]} and #{map.searchTimeArray[1]})
|
and (so.create_time between #{map.searchTimeArray[0]} and #{map.searchTimeArray[1]})
|
||||||
@ -84,6 +85,9 @@
|
|||||||
<if test="map.userId != null and map.userId != ''">
|
<if test="map.userId != null and map.userId != ''">
|
||||||
and (so.user_id = #{map.userId})
|
and (so.user_id = #{map.userId})
|
||||||
</if>
|
</if>
|
||||||
|
<if test="map.mainId != null and map.mainId != ''">
|
||||||
|
and so.main_id = #{map.mainId}
|
||||||
|
</if>
|
||||||
order by so.create_time desc
|
order by so.create_time desc
|
||||||
</select>
|
</select>
|
||||||
<select id="selectCountNum" resultType="java.lang.Integer">
|
<select id="selectCountNum" resultType="java.lang.Integer">
|
||||||
|
@ -63,6 +63,9 @@
|
|||||||
<if test="map.userRole != null">
|
<if test="map.userRole != null">
|
||||||
and (
|
and (
|
||||||
<choose>
|
<choose>
|
||||||
|
<when test="map.userRole == 5 and map.isToBeReviewed">
|
||||||
|
dtw.status = '01'
|
||||||
|
</when>
|
||||||
<when test="map.userRole == 5 and map.isBack == null">
|
<when test="map.userRole == 5 and map.isBack == null">
|
||||||
dtw.status not in ('01', '05', '03')
|
dtw.status not in ('01', '05', '03')
|
||||||
</when>
|
</when>
|
||||||
|
@ -590,31 +590,35 @@ public class RescueDriverInfoServiceImpl extends ServiceImpl<RescueDriverInfoMap
|
|||||||
//处理redis
|
//处理redis
|
||||||
DriverInfo driverInfo = driverInfoService.getById(rescueInfo.getDriverId());
|
DriverInfo driverInfo = driverInfoService.getById(rescueInfo.getDriverId());
|
||||||
AdminUserRespDTO user = userService.getUser(driverInfo.getUserId());
|
AdminUserRespDTO user = userService.getUser(driverInfo.getUserId());
|
||||||
|
try{
|
||||||
|
// 收集客户信息
|
||||||
|
PartnerCustomerInfo customerInfo = new PartnerCustomerInfo();
|
||||||
|
customerInfo.setCustomerName(rescueInfo.getConnectionName());
|
||||||
|
customerInfo.setCustomerPhone(rescueInfo.getConnectionPhone());
|
||||||
|
customerInfo.setUserId(rescueInfo.getUserId());
|
||||||
|
|
||||||
// 收集客户信息
|
// 收集客户车辆信息
|
||||||
PartnerCustomerInfo customerInfo = new PartnerCustomerInfo();
|
List<ShopUserCar> userCarList = new ArrayList<>();
|
||||||
customerInfo.setCustomerName(rescueInfo.getConnectionName());
|
ShopUserCar userCar = new ShopUserCar();
|
||||||
customerInfo.setCustomerPhone(rescueInfo.getConnectionPhone());
|
userCar.setCarNo(rescueInfo.getLicenseNum());
|
||||||
customerInfo.setUserId(rescueInfo.getUserId());
|
userCar.setCarModel(rescueInfo.getCarType());
|
||||||
|
userCar.setCarBrand(rescueInfo.getCarBrand());
|
||||||
|
userCar.setUserId(user.getId());
|
||||||
|
userCarList.add(userCar);
|
||||||
|
|
||||||
// 收集客户车辆信息
|
customerInfo.setUserCarList(userCarList);
|
||||||
List<ShopUserCar> userCarList = new ArrayList<>();
|
|
||||||
ShopUserCar userCar = new ShopUserCar();
|
|
||||||
userCar.setCarNo(rescueInfo.getLicenseNum());
|
|
||||||
userCar.setCarModel(rescueInfo.getCarType());
|
|
||||||
userCar.setCarBrand(rescueInfo.getCarBrand());
|
|
||||||
userCar.setUserId(user.getId());
|
|
||||||
userCarList.add(userCar);
|
|
||||||
|
|
||||||
customerInfo.setUserCarList(userCarList);
|
// 设置客户来源
|
||||||
|
CustomerMain customerMain = new CustomerMain();
|
||||||
|
customerMain.setDataFrom("02");
|
||||||
|
customerMainService.saveOrUpdate(customerMain);
|
||||||
|
|
||||||
// 设置客户来源
|
// 调用插入客户信息的方法
|
||||||
CustomerMain customerMain = new CustomerMain();
|
customerInfoService.insertPartnerCustomerInfo(customerInfo);
|
||||||
customerMain.setDataFrom("02");
|
}catch (Exception ignored){
|
||||||
customerMainService.saveOrUpdate(customerMain);
|
|
||||||
|
}
|
||||||
|
|
||||||
// 调用插入客户信息的方法
|
|
||||||
customerInfoService.insertPartnerCustomerInfo(customerInfo);
|
|
||||||
|
|
||||||
|
|
||||||
//所在顶级机构
|
//所在顶级机构
|
||||||
|
Loading…
Reference in New Issue
Block a user