|
@@ -8,9 +8,13 @@ import com.sqx.modules.common.entity.CommonInfo;
|
|
|
import com.sqx.modules.common.service.CommonInfoService;
|
|
import com.sqx.modules.common.service.CommonInfoService;
|
|
|
import com.sqx.modules.datacentre.query.DataCenterQuery;
|
|
import com.sqx.modules.datacentre.query.DataCenterQuery;
|
|
|
import com.sqx.modules.errand.entity.TbIndent;
|
|
import com.sqx.modules.errand.entity.TbIndent;
|
|
|
|
|
+import com.sqx.modules.errand.entity.TransferRecordEntity;
|
|
|
import com.sqx.modules.errand.service.TbIndentService;
|
|
import com.sqx.modules.errand.service.TbIndentService;
|
|
|
|
|
+import com.sqx.modules.errand.service.TransferRecordService;
|
|
|
import com.sqx.modules.order.entity.TbOrder;
|
|
import com.sqx.modules.order.entity.TbOrder;
|
|
|
import com.sqx.modules.order.service.AppOrderService;
|
|
import com.sqx.modules.order.service.AppOrderService;
|
|
|
|
|
+import com.sqx.modules.riderStation.entity.RiderStation;
|
|
|
|
|
+import com.sqx.modules.riderStation.service.RiderStationService;
|
|
|
import com.sqx.modules.utils.SenInfoCheckUtil;
|
|
import com.sqx.modules.utils.SenInfoCheckUtil;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -21,6 +25,7 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -38,6 +43,10 @@ public class TbIndentController {
|
|
|
private CommonInfoService commonInfoService;
|
|
private CommonInfoService commonInfoService;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private AppOrderService appOrderService;
|
|
private AppOrderService appOrderService;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private RiderStationService riderStationService;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private TransferRecordService transferRecordService;
|
|
|
|
|
|
|
|
@ApiOperation("查看所有派单任务")
|
|
@ApiOperation("查看所有派单任务")
|
|
|
@GetMapping(value = "findallIndent")
|
|
@GetMapping(value = "findallIndent")
|
|
@@ -144,6 +153,22 @@ public class TbIndentController {
|
|
|
indent.setRiderUserId(riderUserId);
|
|
indent.setRiderUserId(riderUserId);
|
|
|
indent.setIsRider(1);
|
|
indent.setIsRider(1);
|
|
|
tbIndentService.updateById(indent);
|
|
tbIndentService.updateById(indent);
|
|
|
|
|
+ //获取站点内容
|
|
|
|
|
+ RiderStation station = riderStationService.stationById(userEntity.getRiderStationId());
|
|
|
|
|
+ if(station != null){
|
|
|
|
|
+ userEntity.setStationName(station.getStationName());
|
|
|
|
|
+ }
|
|
|
|
|
+ String format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
|
|
|
|
|
+ TransferRecordEntity tr = new TransferRecordEntity();
|
|
|
|
|
+ tr.setUserId(userEntity.getUserId());
|
|
|
|
|
+ tr.setUserName(userEntity.getUserName());
|
|
|
|
|
+ tr.setUserPhone(userEntity.getPhone());
|
|
|
|
|
+ tr.setOrderId(indent.getOrderId());
|
|
|
|
|
+ tr.setReceveTime(format);
|
|
|
|
|
+ tr.setStationName(station.getStationName());
|
|
|
|
|
+ tr.setDeleteFlag(0);
|
|
|
|
|
+ transferRecordService.insertPrintInfo(tr);
|
|
|
|
|
+
|
|
|
UserEntity user = userService.getById(indent.getUserId());
|
|
UserEntity user = userService.getById(indent.getUserId());
|
|
|
CommonInfo one = commonInfoService.findOne(335);
|
|
CommonInfo one = commonInfoService.findOne(335);
|
|
|
List<String> msgList=new ArrayList<>();
|
|
List<String> msgList=new ArrayList<>();
|