|
@@ -117,14 +117,14 @@ public class RepairSaleService {
|
|
|
if(camera == null){
|
|
|
throw new BusinessException(ResultCode.CAMERA_SN_NOT_EXITS);
|
|
|
}
|
|
|
- List<Repair> repairList = repairService.getBySnCode(camera.getSnCode());
|
|
|
- if(repairList.size() >0){
|
|
|
- for (Repair repair : repairList) {
|
|
|
- if(!StatusUtil.overStatusList.contains(repair.getStatus())){
|
|
|
- throw new BusinessException(ResultCode.REPAIR_SN_EXITS);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+// List<Repair> repairList = repairService.getBySnCode(camera.getSnCode());
|
|
|
+// if(repairList.size() >0){
|
|
|
+// for (Repair repair : repairList) {
|
|
|
+// if(!StatusUtil.overStatusList.contains(repair.getStatus())){
|
|
|
+// throw new BusinessException(ResultCode.REPAIR_SN_EXITS);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
CameraDetail cameraDetail = cameraService.getCameraTypeByCameraId(camera.getId());
|
|
|
Integer cameraType = null;
|
|
|
switch (cameraDetail.getType()){
|