工单同步按钮添加

This commit is contained in:
loujf
2022-06-07 09:03:53 +08:00
parent dc5d213c54
commit 4ee29d47b1
5 changed files with 37 additions and 5 deletions

View File

@@ -7,7 +7,6 @@ import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.nl.acs.order.service.ProduceshiftorderService;
import org.nl.acs.order.service.dto.ProduceshiftorderDto;
import org.nl.annotation.Log;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus;
@@ -48,6 +47,13 @@ public class ProduceshiftorderController {
return new ResponseEntity<>(produceshiftorderService.querySorting(whereJson, page), HttpStatus.OK);
}
@GetMapping("/reload")
@Log("数据同步")
@ApiOperation("数据同步")
public ResponseEntity<Object> reload() {
produceshiftorderService.reload();
return new ResponseEntity<>(HttpStatus.OK);
}
@Log("查询工单明细")
@ApiOperation("查询工单")

View File

@@ -36,6 +36,11 @@ public interface ProduceshiftorderService {
*/
Map<String, Object> querySorting(Map whereJson, Pageable page);
/**
* 数据同步
*/
void reload();
/**
* 查询所有数据不分页
*

View File

@@ -181,9 +181,6 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService, A
return list;
}
@Override
public ProduceshiftorderDto findById(String order_id) {
WQLObject wo = WQLObject.getWQLObject("acs_produceshiftorder");