Commit 1566a38f by zhanghj

V1.3.0--申请售后放开地址栏的编辑

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@23126 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 5cee5938
......@@ -419,12 +419,14 @@ public class OrderController extends BaseController {
@RequestMapping(value = "/addAfterSaleRepair", method = { RequestMethod.GET, RequestMethod.POST })
public ResultObject addAfterSaleRepair(HttpServletRequest request, Integer orderId, Integer afterSaleType,
String repairReason, String expectInstallTime, String vinNo, Integer carBrand, Integer carSeries,
String carType, String carColor) {
String carType, String carColor, Integer district, String address) {
if (org.springframework.util.StringUtils.isEmpty(orderId)
|| org.springframework.util.StringUtils.isEmpty(afterSaleType)
|| org.springframework.util.StringUtils.isEmpty(repairReason)
|| org.springframework.util.StringUtils.isEmpty(expectInstallTime)) {
|| org.springframework.util.StringUtils.isEmpty(expectInstallTime)
|| org.springframework.util.StringUtils.isEmpty(district)
|| org.springframework.util.StringUtils.isEmpty(address)) {
return new ResultObject(ResultCodeEnum.PARAM_ERROR.getCode(), ResultCodeEnum.PARAM_ERROR.getMsg());
}
SysOrder order = new SysOrder();
......@@ -446,6 +448,8 @@ public class OrderController extends BaseController {
order.setRepairReason(repairReason);
order.setVinNo(vinNo);
order.setAfterSaleType(afterSaleType);
order.setDistrict(district);
order.setAddress(address);
ResultObject result = orderService.addAfterSaleRepair(request, order);
return result;
}
......
......@@ -2169,6 +2169,8 @@ public class OrderServiceImpl implements IOrderService {
}
}
order.setExpectInstallTime(orderParam.getExpectInstallTime());
order.setDistrict(orderParam.getDistrict());
order.setAddress(orderParam.getAddress());
order.setCreateTime(now);
order.setCreateBy(createBy);
int num = insertSelective(order);
......
......@@ -139,8 +139,8 @@ public class StandardOrderServiceImpl implements StandardOrderService {
//安装设备类型为F700的的工单需要接电位置图片和周围环境照片
if(Constants.DEVICE_TYPE_700F.equals(lastOrder.getInstallDeviceType())){
installLocionPicture.add(lastOrder.getConnectLocationPicture());
installLocionPicture.add(lastOrder.getSurroundingPicture());
}
installLocionPicture.add(lastOrder.getSurroundingPicture());
SysUser sysUser ;
for (SysOrder sysOrder : sysOrders) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!