1
This commit is contained in:
parent
a75b052167
commit
e4d1ea9d84
@ -396,8 +396,8 @@ public class PartnerOwnController extends BaseController {
|
||||
if (!partnersTmp.getUserId().equals(user.getId())){
|
||||
return null;
|
||||
}
|
||||
PageHelper.startPage(pageNum,pageSize);
|
||||
List<InspectionAppointment> appointments = partnerList.getAppointmentList(partnerId,phoneNum);
|
||||
Page<InspectionAppointment> page = new Page<>(pageNum,pageSize);
|
||||
List<InspectionAppointment> appointments = partnerList.getAppointmentList(page,partnerId,phoneNum);
|
||||
return getDataTable(appointments);
|
||||
}
|
||||
|
||||
|
@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.inspection.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import cn.iocoder.yudao.module.inspection.entity.InspectionAppointment;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@ -63,7 +64,7 @@ public interface InspectionAppointmentMapper extends BaseMapper<InspectionAppoin
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInspectionAppointmentByIds(Long[] ids);
|
||||
List<InspectionAppointment> getAppointmentList(@Param("partnerId") Long partnerId,@Param("phoneNum")String phoneNum);
|
||||
List<InspectionAppointment> getAppointmentList(Page<InspectionAppointment> page,@Param("partnerId") Long partnerId, @Param("phoneNum")String phoneNum);
|
||||
List<InspectionAppointment> getAppointmentOwn(@Param("userId") Long userId);
|
||||
|
||||
|
||||
|
@ -64,7 +64,7 @@ public interface AppInspectionPartnerService extends IService<ShopMallPartners>
|
||||
void addStepInfo(InspectionStepInfo stepInfo);
|
||||
void stopInspection(InspectionInfo info) throws Exception;
|
||||
void makeCertOk(Long inspectionId);
|
||||
List<InspectionAppointment> getAppointmentList(Long partnerId,String phoneNum);
|
||||
List<InspectionAppointment> getAppointmentList(Page<InspectionAppointment> page,Long partnerId,String phoneNum);
|
||||
List<OrderInfo> validationList(Long partnerId,String searchValue);
|
||||
void sendCoupon(ShopCouponTemplate template) throws Exception;
|
||||
List<ShopCouponTemplate> listCoupon(Long partnerId,String searchValue);
|
||||
|
@ -1,6 +1,7 @@
|
||||
package cn.iocoder.yudao.module.inspection.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import cn.iocoder.yudao.module.inspection.entity.InspectionAppointment;
|
||||
import cn.iocoder.yudao.module.inspection.entity.InspectionPickCar;
|
||||
@ -72,6 +73,6 @@ public interface IInspectionAppointmentService extends IService<InspectionAppoi
|
||||
JSONObject pickCarInfo();
|
||||
JSONObject computeDistanceAndPrice(Long goodsId,Double longitude,Double latitude,String type ) throws Exception;
|
||||
|
||||
public List<InspectionAppointment> getAppointmentList(Long partnerId,String phoneNum);
|
||||
public List<InspectionAppointment> getAppointmentList(Page<InspectionAppointment> page,Long partnerId, String phoneNum);
|
||||
List<InspectionAppointment> getAppointmentOwn();
|
||||
}
|
||||
|
@ -1214,8 +1214,8 @@ public class AppInspectionPartnerServiceImpl extends ServiceImpl<AppInspectionPa
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<InspectionAppointment> getAppointmentList(Long partnerId,String phoneNum) {
|
||||
return appointmentService.getAppointmentList(partnerId,phoneNum);
|
||||
public List<InspectionAppointment> getAppointmentList(Page<InspectionAppointment> page,Long partnerId,String phoneNum) {
|
||||
return appointmentService.getAppointmentList(page,partnerId,phoneNum);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -13,6 +13,7 @@ import cn.iocoder.yudao.module.system.service.user.AdminUserService;
|
||||
import cn.iocoder.yudao.util.SendSmsUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import cn.iocoder.yudao.util.DateUtils;
|
||||
import cn.iocoder.yudao.util.StringUtils;
|
||||
@ -346,8 +347,8 @@ public class InspectionAppointmentServiceImpl extends ServiceImpl<InspectionAppo
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<InspectionAppointment> getAppointmentList(Long partnerId,String phoneNum) {
|
||||
return baseMapper.getAppointmentList(partnerId,phoneNum);
|
||||
public List<InspectionAppointment> getAppointmentList(Page<InspectionAppointment> page,Long partnerId, String phoneNum) {
|
||||
return baseMapper.getAppointmentList(page,partnerId,phoneNum);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -346,7 +346,7 @@ FROM
|
||||
FROM
|
||||
order_info oi
|
||||
INNER JOIN inspection_info ii on oi.id = ii.inspection_order_id
|
||||
left join sys_dict_data sdd on sdd.dict_value = ii.customer_source and sdd.dict_type = concat('customer_source-',#{partnerId})
|
||||
left join system_dict_data sdd on sdd.value = ii.customer_source and sdd.dict_type = concat('customer_source-',#{partnerId})
|
||||
WHERE oi.partner_id =#{partnerId}
|
||||
and ii.create_time BETWEEN #{startTime} and #{endTime}
|
||||
GROUP BY sdd.remark
|
||||
@ -359,7 +359,7 @@ FROM
|
||||
FROM
|
||||
order_info oi
|
||||
INNER JOIN inspection_info ii on oi.id = ii.inspection_order_id
|
||||
left join sys_dict_data sdd on sdd.dict_value = ii.customer_source and sdd.dict_type = concat('customer_source-',#{partnerId})
|
||||
left join system_dict_data sdd on sdd.value = ii.customer_source and sdd.dict_type = concat('customer_source-',#{partnerId})
|
||||
WHERE oi.partner_id =#{partnerId}
|
||||
<if test="remark !=null and remark !=''">
|
||||
<choose>
|
||||
@ -392,7 +392,7 @@ FROM
|
||||
FROM
|
||||
order_info oi
|
||||
INNER JOIN inspection_info ii on oi.id = ii.inspection_order_id
|
||||
inner join system_user su on su.id = oi.user_id
|
||||
inner join system_users su on su.id = oi.user_id
|
||||
WHERE oi.partner_id ='19'
|
||||
and ii.create_time BETWEEN #{startTime} and #{endTime}
|
||||
and oi.validation_time is null and ii.`status`='1' and ii.is_pass = '1'
|
||||
|
@ -2,8 +2,10 @@ package cn.iocoder.yudao.module.rescue.app.controller.admin;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.iocoder.yudao.common.CommonErrorCodeConstants;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.security.config.SecurityProperties;
|
||||
import cn.iocoder.yudao.framework.security.core.LoginUser;
|
||||
import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
|
||||
import cn.iocoder.yudao.module.rescue.core.redis.RedisCache;
|
||||
@ -39,6 +41,7 @@ import javax.annotation.Resource;
|
||||
import javax.crypto.Cipher;
|
||||
import javax.crypto.spec.IvParameterSpec;
|
||||
import javax.crypto.spec.SecretKeySpec;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.security.spec.AlgorithmParameterSpec;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
@ -90,6 +93,10 @@ public class SysLoginController {
|
||||
|
||||
@Resource
|
||||
private RestTemplate restTemplate;
|
||||
|
||||
@Resource
|
||||
private SecurityProperties securityProperties;
|
||||
|
||||
// @Autowired
|
||||
// private IUserBalanceService balanceService;
|
||||
// @Autowired
|
||||
@ -650,4 +657,17 @@ public class SysLoginController {
|
||||
driverInfoService.syncData();
|
||||
return CommonResult.ok();
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/logout")
|
||||
@Operation(summary = "登出系统")
|
||||
public CommonResult<Boolean> logout(HttpServletRequest request) {
|
||||
String token = SecurityFrameworkUtils.obtainAuthorization(request,
|
||||
securityProperties.getTokenHeader(), securityProperties.getTokenParameter());
|
||||
if (StrUtil.isNotBlank(token)) {
|
||||
loginService.logout(token,1);
|
||||
}
|
||||
return success(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user