|
@@ -13,6 +13,8 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
@RestController
|
|
|
@RequestMapping("/materialOutIn")
|
|
|
@Api(tags="同步到用友出入库")
|
|
@@ -24,6 +26,8 @@ public class MaterialOutInController {
|
|
|
@Autowired
|
|
|
private MaterialOutInService mOutInService;
|
|
|
|
|
|
+
|
|
|
+
|
|
|
|
|
|
* 获取提交数据结果
|
|
|
* @return
|
|
@@ -40,12 +44,29 @@ public class MaterialOutInController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/pushFialMaterial")
|
|
|
- @ApiOperation(value = "推送提交到用友失败的物料出入库信息")
|
|
|
- public ResultData pushFialMaterial(){
|
|
|
+ @ApiOperation(value = "重新推送未推送的退料数据")
|
|
|
+ public ResultData pushFialMaterialTL(){
|
|
|
mOutInService.pushMaterial(0);
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
+
|
|
|
+ * 推送提交到用友失败的物料出入库信息
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/pushFialMaterialTL")
|
|
|
+ @ApiOperation(value = "推送提交到用友失败的物料出入库信息")
|
|
|
+ public ResultData pushFialMaterial(){
|
|
|
+
|
|
|
+ final List<Long> notPushTlInfo = mOutInService.findNotPushTlInfo();
|
|
|
+
|
|
|
+ for (Long l : notPushTlInfo) {
|
|
|
+ mOutInService.returnOfMaterial(l);
|
|
|
+ }
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ return ResultData.ok();
|
|
|
+ }
|
|
|
|
|
|
* 获取工程提交到用友的出库物料信息
|
|
|
* @return
|