Commit 2dc0b7bd by wubh

包活干V2.0.1-指派技工功能开发

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@28682 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 623ba598
package com.glsx.ordercenter.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.glsx.ordercenter.dto.MechanicBusiness;
import com.glsx.ordercenter.pojo.user.SysMechanic;
import com.glsx.ordercenter.pojo.user.SysMechanicExample;
import org.apache.ibatis.annotations.Param;
public interface SysMechanicMapper {
long countByExample(SysMechanicExample example);
......@@ -27,13 +25,23 @@ public interface SysMechanicMapper {
SysMechanic selectByUserId(Integer userId);
List<MechanicBusiness> getMechanicListOrderByDistance(@Param("keyWord") String keyWord,
@Param("latitude") String latitude, @Param("longitude") String longitude);
MechanicBusiness getMechanicOrderCountAndTimeliness(@Param("mechanicId") Integer mechanicId);
List<MechanicBusiness> selectMechanicByOrder(@Param("keyWord") String keyWord,
@Param("latitude") String latitude, @Param("longitude") String longitude,
@Param("sortMethod") Byte sortMethod,
@Param("userId") Integer userId);
List<MechanicBusiness> getMechanicListOrderByDistance(@Param("keyWord") String keyWord,
@Param("latitude") String latitude, @Param("longitude") String longitude,
@Param("userId") Integer userId);
List<MechanicBusiness> getMechanicListOrderByCount(@Param("keyWord") String keyWord,
@Param("latitude") String latitude, @Param("longitude") String longitude);
List<MechanicBusiness> getMechanicListOrderByCount(@Param("keyWord") String keyWord,
@Param("latitude") String latitude, @Param("longitude") String longitude,
@Param("userId") Integer userId);
List<MechanicBusiness> getMechanicListOrderByTimeliness(@Param("keyWord") String keyWord,
@Param("latitude") String latitude, @Param("longitude") String longitude);
MechanicBusiness getMechanicOrderCountAndTimeliness(@Param("mechanicId") Integer mechanicId);
}
\ No newline at end of file
List<MechanicBusiness> getMechanicListOrderByTimeliness(@Param("keyWord") String keyWord,
@Param("latitude") String latitude, @Param("longitude") String longitude,
@Param("userId") Integer userId);
}
......@@ -67,14 +67,15 @@ public class OraReturnOrderFinishTask implements Callable<OraResultObject> {
try {
SysOrder order = orderMapper.selectByPrimaryKey(id);
this.logger.info("==== OraReturnOrderFinishTask order = {}", JSON.toJSONString(order));
if (order == null) {
logger.error("通过id={}未找到工单数据", id);
throw BusinessException.create(OraResultCode.PARAM_ERROR.getCode(),
"未找到工单数据");
}
if (!BizConstants.CC_ORA.equals(order.getChannel())) {
throw BusinessException.create(OraResultCode.PARAM_ERROR.getCode(),
"工单渠道不为ORA");
this.logger.info("==== Channel = {}, not need to sync to Ora", order.getChannel());
return new OraResultObject(OraResultCode.SUCCESS);
}
//业务参数封装
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!