|
|
|
@ -5,6 +5,7 @@ import com.gaotao.common.exception.XJException; |
|
|
|
import com.gaotao.common.utils.PageUtils; |
|
|
|
import com.gaotao.common.utils.R; |
|
|
|
import com.gaotao.modules.finishedProduct.entity.CRollinfoEntity; |
|
|
|
import com.gaotao.modules.finishedProduct.sap.service.SapRollService; |
|
|
|
import com.gaotao.modules.finishedProduct.service.CRollinfoService; |
|
|
|
import com.gaotao.modules.finishedProduct.vo.CRollInfoStorageVo; |
|
|
|
import com.gaotao.modules.finishedProduct.vo.CRollinfoVo; |
|
|
|
@ -16,6 +17,7 @@ import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -30,6 +32,9 @@ public class CRollinfoController extends AbstractController { |
|
|
|
@Autowired |
|
|
|
private CRollinfoService cRollinfoService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private SapRollService sapRollService; |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
* @Author sxm |
|
|
|
@ -265,4 +270,27 @@ public class CRollinfoController extends AbstractController { |
|
|
|
return R.ok(getLanguageMsg(SysMsgConstant.OBJECT_ID_200000)); |
|
|
|
} |
|
|
|
|
|
|
|
// ==================== SAP成品出入库接口 ==================== |
|
|
|
|
|
|
|
@PostMapping("/sapOutRollno") |
|
|
|
public R sapOutRollno(@RequestBody CRollinfoEntity rollno) { |
|
|
|
return sapRollService.sapOutRollno(rollno); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/sapRollToStorage") |
|
|
|
public R sapRollToStorage(@RequestBody CRollInfoStorageVo cRollInfoStorageVo) { |
|
|
|
return sapRollService.sapRollToStorage(cRollInfoStorageVo); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("/sapBatchRollOutbound") |
|
|
|
public R sapBatchRollOutbound(@RequestBody List<CRollinfoEntity> cRollinfoList) { |
|
|
|
return sapRollService.sapBatchRollOutbound(cRollinfoList); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/sapUfdOptions") |
|
|
|
public R sapUfdOptions(@RequestParam("type") String type) { |
|
|
|
List<Map<String, Object>> options = sapRollService.getSapUfdOptions(type); |
|
|
|
return R.ok().put("options", options); |
|
|
|
} |
|
|
|
|
|
|
|
} |