|
@@ -237,7 +237,7 @@ public class ComplaintDetectInfoServiceImpl implements ComplaintDetectInfoServic
|
|
|
throw new RuntimeException("修改QC检测状态");
|
|
|
}
|
|
|
|
|
|
- if(record.getMaintenanceResults() == 1){ //maintenanceResults
|
|
|
+ /*if(record.getMaintenanceResults() == 1){ //maintenanceResults
|
|
|
//判断是否为维修
|
|
|
ComplaintDetectInfo cdi = complaintDetectInfoMapper.getDetectById(record.getDetectId());
|
|
|
if(cdi.getProcTypeId() == 3){ //3: 维修
|
|
@@ -274,7 +274,7 @@ public class ComplaintDetectInfoServiceImpl implements ComplaintDetectInfoServic
|
|
|
inventoryInfo2.setInventoryRecentRecord("退货/换货,从售后不良品仓转入正常销售良品仓(维修ID:"+record.getDetectNumber()+")");
|
|
|
inventoryService.addInventory(inventoryInfo2);
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
return flag;
|
|
|
}
|
|
|
@Transactional
|
|
@@ -308,7 +308,7 @@ public class ComplaintDetectInfoServiceImpl implements ComplaintDetectInfoServic
|
|
|
if(record.getIsMaintenance() == 1){
|
|
|
record.setDetectState(38);//机器故障,待用户确认
|
|
|
}else if(record.getIsMaintenance() == 2){
|
|
|
- record.setDetectState(37);//机器无故障,原机退回
|
|
|
+ record.setDetectState(37);//机器无故障,待用户确认
|
|
|
}
|
|
|
}else if(procMethod.getProcMethodIsCharge() == 1){//付费
|
|
|
record.setDetectState(30);//待用户确认
|
|
@@ -368,7 +368,7 @@ public class ComplaintDetectInfoServiceImpl implements ComplaintDetectInfoServic
|
|
|
}
|
|
|
if(complaintDetectInfo.getDetectSource() == 2){//手动添加需要给业务员发送短信
|
|
|
//发送短信通知维修检测人员
|
|
|
- if(record.getDetectState() == 30 || record.getDetectState() == 34|| record.getDetectState() == 38){
|
|
|
+ if(record.getDetectState() == 30 || record.getDetectState() == 34|| record.getDetectState() == 38 || record.getDetectState() == 37){
|
|
|
if(complaintDetectInfo.getDetectTel() != null && !complaintDetectInfo.getDetectTel().equals("")){
|
|
|
String text = MessageFormat.format(SmsConfig.NOTIFY_SALESMAN, complaintDetectInfo.getDetectName()+complaintDetectInfo.getDetectTel(), ResultInfo.DETECT_MSG+complaintDetectInfo.getDetectId());
|
|
|
Admin admin = new Admin();
|
|
@@ -471,6 +471,26 @@ public class ComplaintDetectInfoServiceImpl implements ComplaintDetectInfoServic
|
|
|
detectInfo.setDetectState(35);
|
|
|
detectInfo.setCompleteCutTime(date.getTime());
|
|
|
break;
|
|
|
+ case 37:
|
|
|
+ if(detectInfo.getDetectProcessingResults() == 1){//付费维修
|
|
|
+ detectInfo.setDetectState(31);//同意付费维修
|
|
|
+ detectInfo.setCompleteCutTime(date.getTime());
|
|
|
+ }
|
|
|
+ if(detectInfo.getDetectProcessingResults() == 2){//免费维修
|
|
|
+ detectInfo.setDetectState(35);//同意免费维修
|
|
|
+ detectInfo.setCompleteCutTime(date.getTime());
|
|
|
+ }
|
|
|
+ if(detectInfo.getDetectProcessingResults() == 3 || detectInfo.getDetectProcessingResults() == 4){//退货、换货
|
|
|
+ if(detect.getDetectRenovation() == 1){
|
|
|
+ detectInfo.setDetectState(20);//待翻新
|
|
|
+ }else{
|
|
|
+ detectInfo.setDetectState(22);//待报废
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(detectInfo.getDetectProcessingResults() == 5){//原机退回
|
|
|
+ detectInfo.setDetectState(37);//原机退回
|
|
|
+ }
|
|
|
+ break;
|
|
|
case 38:
|
|
|
if(detectInfo.getDetectProcessingResults() == 1){//付费维修
|
|
|
detectInfo.setDetectState(31);//同意付费维修
|
|
@@ -545,7 +565,7 @@ public class ComplaintDetectInfoServiceImpl implements ComplaintDetectInfoServic
|
|
|
@Override
|
|
|
public boolean salesmanConfirm(ComplaintDetectInfo detectInfo) {
|
|
|
ComplaintDetectInfo detect = complaintDetectInfoMapper.getDetectById(detectInfo.getDetectId());
|
|
|
- if(detect.getDetectState() != 30 && detect.getDetectState() != 34 && detect.getDetectState() != 38){
|
|
|
+ if(detect.getDetectState() != 30 && detect.getDetectState() != 34 && detect.getDetectState() != 38 && detect.getDetectState() != 37){
|
|
|
return false;
|
|
|
}
|
|
|
//计算待维修完成时间
|
|
@@ -572,7 +592,7 @@ public class ComplaintDetectInfoServiceImpl implements ComplaintDetectInfoServic
|
|
|
detectInfo.setDetectState(35);//同意付费维修
|
|
|
detectInfo.setCompleteCutTime(date.getTime());
|
|
|
}
|
|
|
- if(detectInfo.getDetectProcessingResults() == 3 || detect.getDetectProcessingResults() == 4){//退货、换货
|
|
|
+ if(detectInfo.getDetectProcessingResults() == 3 || detectInfo.getDetectProcessingResults() == 4){//退货、换货
|
|
|
if(detect.getDetectRenovation() == 1){
|
|
|
detectInfo.setDetectState(20);//待翻新
|
|
|
}else{
|
|
@@ -589,7 +609,7 @@ public class ComplaintDetectInfoServiceImpl implements ComplaintDetectInfoServic
|
|
|
log.setDetectId(detectInfo.getDetectId());
|
|
|
log.setRecordAdminId(detect.getSalesmanAdminId());
|
|
|
log.setRecordDesc(detect.getDetectCustomerDesc());
|
|
|
- log.setRecordProcessingResults(detect.getDetectProcessingResults());
|
|
|
+ log.setRecordProcessingResults(detectInfo.getDetectProcessingResults());
|
|
|
complaintDetectInfoMapper.addTreatmentRecordLog(log);
|
|
|
//发送确认短信
|
|
|
String results = "";
|
|
@@ -616,6 +636,7 @@ public class ComplaintDetectInfoServiceImpl implements ComplaintDetectInfoServic
|
|
|
return true;
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
throw new RuntimeException("确认处理失败");
|
|
|
}
|
|
|
return false;
|