|
|
|
@ -6,6 +6,7 @@ import com.aucma.api.service.IPdaBindingService;
|
|
|
|
|
import com.aucma.base.domain.BaseProcessStation;
|
|
|
|
|
import com.aucma.base.service.IBaseProcessStationService;
|
|
|
|
|
import com.aucma.common.core.domain.AjaxResult;
|
|
|
|
|
import com.aucma.common.utils.SecurityUtils;
|
|
|
|
|
import com.aucma.common.utils.StringUtils;
|
|
|
|
|
import com.aucma.report.domain.ReportQualityInspection;
|
|
|
|
|
import com.aucma.report.service.IMaterialCompletionService;
|
|
|
|
@ -105,8 +106,8 @@ public class PdaApiController {
|
|
|
|
|
inspection.setIsFlag(1L);
|
|
|
|
|
}
|
|
|
|
|
//检测人
|
|
|
|
|
inspection.setInspectorCode(checkInfo.getUserName());
|
|
|
|
|
// inspection.setInspectorCode(SecurityUtils.getUsername());
|
|
|
|
|
// inspection.setInspectorCode(checkInfo.getUserName());
|
|
|
|
|
inspection.setInspectorCode(SecurityUtils.getUsername());
|
|
|
|
|
inspection.setInspectorTime(new Date());
|
|
|
|
|
inspection.setStationCode(checkInfo.getStationCode());
|
|
|
|
|
inspection.setGroupCode(checkInfo.getTeamCode());
|
|
|
|
@ -175,4 +176,33 @@ public class PdaApiController {
|
|
|
|
|
return success(qualityService.pdaQueryQuantityNumber(stationCode));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PDA补打条码
|
|
|
|
|
*
|
|
|
|
|
* @param barCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@PostMapping("/rebarCode")
|
|
|
|
|
public AjaxResult rebarCode(String barCode) {
|
|
|
|
|
String result = service.rebarCode(barCode);
|
|
|
|
|
if (StringUtils.isEmpty(result)){
|
|
|
|
|
return error("条码信息输入错误!");
|
|
|
|
|
}
|
|
|
|
|
return success(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PDA解绑条码
|
|
|
|
|
*
|
|
|
|
|
* @param barCode
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@PostMapping("/unbindBarCode")
|
|
|
|
|
public AjaxResult unbindBarCode(String barCode) {
|
|
|
|
|
String result = service.unbindBarCode(barCode);
|
|
|
|
|
if (StringUtils.isEmpty(result)){
|
|
|
|
|
return error("条码信息输入错误!");
|
|
|
|
|
}
|
|
|
|
|
return success(result);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|