工单同步按钮添加
This commit is contained in:
@@ -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("查询工单")
|
||||
|
||||
@@ -36,6 +36,11 @@ public interface ProduceshiftorderService {
|
||||
*/
|
||||
Map<String, Object> querySorting(Map whereJson, Pageable page);
|
||||
|
||||
/**
|
||||
* 数据同步
|
||||
*/
|
||||
void reload();
|
||||
|
||||
/**
|
||||
* 查询所有数据不分页
|
||||
*
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user