来料接口

master
Yangwl 11 months ago
parent 1d0dda6dab
commit fa2a3949cf

@ -503,7 +503,7 @@ public class SapController extends BaseController {
* *
*/ */
@PostMapping("/FPinventory") @PostMapping("/FPinventory")
@Log(title = "来料检验", businessType = BusinessType.SAP) @Log(title = "成品备货单接口", businessType = BusinessType.SAP)
public R FPinventory(@RequestBody(required = false) Map<String, Object> mapList) { public R FPinventory(@RequestBody(required = false) Map<String, Object> mapList) {
return sapItemSyncService.FPinventory(mapList); return sapItemSyncService.FPinventory(mapList);
} }

@ -410,7 +410,7 @@ public class SapItemSyncImpl implements SapItemSyncService {
log.info("来料检验-------" + mapList.toString()); log.info("来料检验-------" + mapList.toString());
func.execute(dest);//执行调用函数 func.execute(dest);//执行调用函数
JCoTable maraTable = func.getTableParameterList().getTable("LT_LLZJ"); JCoTable maraTable = func.getTableParameterList().getTable("LT_LLZJ");
System.out.println(maraTable);
List<QcCheckTaskIncomeDTO> qcCheckTaskIncomeDTOList=new ArrayList<>(); List<QcCheckTaskIncomeDTO> qcCheckTaskIncomeDTOList=new ArrayList<>();
for (int i = 0; i < maraTable.getNumRows(); i++) { for (int i = 0; i < maraTable.getNumRows(); i++) {
maraTable.setRow(i); maraTable.setRow(i);
@ -421,7 +421,14 @@ public class SapItemSyncImpl implements SapItemSyncService {
System.out.println(maraTable); System.out.println(maraTable);
qcCheckTaskIncomeDTOList.add(qcCheckTaskIncomeDTO); qcCheckTaskIncomeDTOList.add(qcCheckTaskIncomeDTO);
} }
return R.ok(); String RETCODE = func.getExportParameterList().getString("RETCODE");
String MESSAGE = func.getExportParameterList().getString("MSG");
if(Constants.SUCCESS.equals(Integer.parseInt(RETCODE))){
return R.ok(qcCheckTaskIncomeDTOList,MESSAGE);
}else {
return R.fail(MESSAGE);
}
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage()); log.error(e.getMessage());
return R.fail(e.getMessage()); return R.fail(e.getMessage());

Loading…
Cancel
Save