sap模块代码合并
parent
a0e42c4565
commit
f778b42cbc
@ -1,11 +0,0 @@
|
||||
#for test only!
|
||||
#Fri Aug 18 13:40:14 CST 2023
|
||||
jco.destination.pool_capacity=true
|
||||
jco.client.lang=zh
|
||||
jco.client.ashost=192.168.0.53
|
||||
jco.client.saprouter=
|
||||
jco.client.user=MES
|
||||
jco.client.sysnr=00
|
||||
jco.destination.peak_limit=20
|
||||
jco.client.passwd=toHkAx_@$mlAJVaiawLWK@)+b2GdTu6V{jYXBRlK{N:X_o:-
|
||||
jco.client.client=800
|
@ -1,78 +0,0 @@
|
||||
package com.op.quality.Controller;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.op.common.core.domain.R;
|
||||
import com.op.common.core.utils.uuid.UUID;
|
||||
import com.op.quality.domain.BaseFile;
|
||||
import com.op.quality.domain.QcProCheck;
|
||||
import com.op.quality.service.QcProCheckService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @ClassName : quaController
|
||||
* @Description :
|
||||
* @Author :
|
||||
* @Date: 2023-08-17 10:28
|
||||
*/
|
||||
@RestController
|
||||
public class QuaController {
|
||||
@Autowired
|
||||
private QcProCheckService qcProCheckService;
|
||||
|
||||
|
||||
@PostMapping("/saveQcProCheck")
|
||||
public R<Boolean> saveQcProCheck(@RequestBody Map<QcProCheck,BaseFile> map) {
|
||||
// System.out.println(qcProCheck);
|
||||
// System.out.println(baseFile);
|
||||
QcProCheck qcProCheck = map.keySet().iterator().next();
|
||||
BaseFile baseFile = map.values().iterator().next();
|
||||
|
||||
if (!qcProCheck.getFactoryId().isEmpty()){
|
||||
if (baseFile==null){
|
||||
baseFile = new BaseFile();
|
||||
qcProCheckService.saveQcProCheck(qcProCheck,baseFile);
|
||||
}
|
||||
|
||||
if (qcProCheck.getIsqua()=="1"){
|
||||
System.out.println("调用下一个接口");
|
||||
return R.ok();
|
||||
}
|
||||
else{
|
||||
return R.ok();
|
||||
}
|
||||
}
|
||||
return R.fail();
|
||||
}
|
||||
@PostMapping("/test")
|
||||
public R<Boolean> test() {
|
||||
// System.out.println(qcProCheck);
|
||||
// System.out.println(baseFile);
|
||||
// QcProCheck qcProCheck = map.keySet().iterator().next();
|
||||
// BaseFile baseFile = map.values().iterator().next();
|
||||
QcProCheck qcProCheck = new QcProCheck();
|
||||
BaseFile baseFile = new BaseFile();
|
||||
qcProCheck.setId("1232132132121321");
|
||||
qcProCheck.setFactoryId("qewqewqewq");
|
||||
qcProCheck.setIsqua("1");
|
||||
baseFile.setFileAddress("qwewqewqewqewqewqq");
|
||||
if (!qcProCheck.getFactoryId().isEmpty()){
|
||||
if (baseFile==null){
|
||||
baseFile = new BaseFile();
|
||||
qcProCheckService.saveQcProCheck(qcProCheck,baseFile);
|
||||
}
|
||||
|
||||
if (qcProCheck.getIsqua()=="1"){
|
||||
System.out.println("调用下一个接口");
|
||||
return R.ok();
|
||||
}
|
||||
else{
|
||||
return R.ok();
|
||||
}
|
||||
}
|
||||
return R.fail();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue