3 changed files with 194 additions and 0 deletions
-
77src/main/java/com/gaotao/modules/api/controller/InterfaceCallLogController.java
-
40src/main/java/com/gaotao/modules/api/entity/InterfaceCallLogData.java
-
77src/main/java/com/gaotao/modules/automatedWarehouse/controller/InventoryDiscrepancyController.java
@ -0,0 +1,77 @@ |
|||
package com.gaotao.modules.api.controller; |
|||
|
|||
import com.gaotao.common.utils.PageUtils; |
|||
import com.gaotao.common.utils.R; |
|||
import com.gaotao.modules.api.entity.InterfaceCallLogData; |
|||
import com.gaotao.modules.api.service.InterfaceCallLogService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @Description 接口调用日志查询Controller - rqrq |
|||
* @Author rqrq |
|||
* @Date 2025/10/07 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/warehouse/interfaceCallLog") |
|||
public class InterfaceCallLogController { |
|||
|
|||
@Autowired |
|||
private InterfaceCallLogService interfaceCallLogService; |
|||
|
|||
/** |
|||
* @Description 查询接口调用日志列表 - rqrq |
|||
* @Title list |
|||
* @param data 查询条件 |
|||
* @return R |
|||
* @author rqrq |
|||
* @date 2025/10/07 |
|||
*/ |
|||
@PostMapping(value="/list") |
|||
@ResponseBody |
|||
public R list(@RequestBody InterfaceCallLogData data) throws Exception { |
|||
PageUtils page = interfaceCallLogService.queryPage(data); |
|||
return R.ok().put("page", page); |
|||
} |
|||
|
|||
/** |
|||
* @Description 获取状态选项 - rqrq |
|||
* @Title statusOptions |
|||
* @return R |
|||
* @author rqrq |
|||
* @date 2025/10/07 |
|||
*/ |
|||
@GetMapping(value="/statusOptions") |
|||
@ResponseBody |
|||
public R statusOptions() throws Exception { |
|||
List<Map<String, String>> options = new ArrayList<>(); |
|||
|
|||
Map<String, String> option1 = new HashMap<>(); |
|||
option1.put("label", "处理中"); |
|||
option1.put("value", "PROCESSING"); |
|||
options.add(option1); |
|||
|
|||
Map<String, String> option2 = new HashMap<>(); |
|||
option2.put("label", "成功"); |
|||
option2.put("value", "SUCCESS"); |
|||
options.add(option2); |
|||
|
|||
Map<String, String> option3 = new HashMap<>(); |
|||
option3.put("label", "失败"); |
|||
option3.put("value", "ERROR"); |
|||
options.add(option3); |
|||
|
|||
Map<String, String> option4 = new HashMap<>(); |
|||
option4.put("label", "超时"); |
|||
option4.put("value", "TIMEOUT"); |
|||
options.add(option4); |
|||
|
|||
return R.ok().put("options", options); |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,40 @@ |
|||
package com.gaotao.modules.api.entity; |
|||
|
|||
import lombok.Data; |
|||
import org.apache.ibatis.type.Alias; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @Description 接口调用日志业务实体类 - 用于业务查询 - rqrq |
|||
* @Author rqrq |
|||
* @Date 2025/10/07 |
|||
*/ |
|||
@Data |
|||
@Alias("InterfaceCallLogData") |
|||
public class InterfaceCallLogData extends InterfaceCallLog { |
|||
|
|||
/** |
|||
* 查询开始日期 |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date startDate; |
|||
|
|||
/** |
|||
* 查询结束日期 |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date endDate; |
|||
|
|||
/** |
|||
* 分页参数 |
|||
*/ |
|||
private Integer page; |
|||
private Integer limit; |
|||
private Integer pageNum; |
|||
private Integer pageSize; |
|||
} |
|||
|
|||
@ -0,0 +1,77 @@ |
|||
package com.gaotao.modules.automatedWarehouse.controller; |
|||
|
|||
import com.gaotao.common.utils.PageUtils; |
|||
import com.gaotao.common.utils.R; |
|||
import com.gaotao.modules.automatedWarehouse.entity.WmsWcsInventoryDiscrepancyData; |
|||
import com.gaotao.modules.automatedWarehouse.service.InventoryDiscrepancyService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @Description 库存差异记录查询Controller - rqrq |
|||
* @Author rqrq |
|||
* @Date 2025/10/07 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/warehouse/inventoryDiscrepancy") |
|||
public class InventoryDiscrepancyController { |
|||
|
|||
@Autowired |
|||
private InventoryDiscrepancyService inventoryDiscrepancyService; |
|||
|
|||
/** |
|||
* @Description 查询库存差异记录列表 - rqrq |
|||
* @Title list |
|||
* @param data 查询条件 |
|||
* @return R |
|||
* @author rqrq |
|||
* @date 2025/10/07 |
|||
*/ |
|||
@PostMapping(value="/list") |
|||
@ResponseBody |
|||
public R list(@RequestBody WmsWcsInventoryDiscrepancyData data) throws Exception { |
|||
PageUtils page = inventoryDiscrepancyService.queryPage(data); |
|||
return R.ok().put("page", page); |
|||
} |
|||
|
|||
/** |
|||
* @Description 获取状态选项 - rqrq |
|||
* @Title statusOptions |
|||
* @return R |
|||
* @author rqrq |
|||
* @date 2025/10/07 |
|||
*/ |
|||
@GetMapping(value="/statusOptions") |
|||
@ResponseBody |
|||
public R statusOptions() throws Exception { |
|||
List<Map<String, Object>> options = new ArrayList<>(); |
|||
|
|||
Map<String, Object> option1 = new HashMap<>(); |
|||
option1.put("label", "待处理"); |
|||
option1.put("value", 0); |
|||
options.add(option1); |
|||
|
|||
Map<String, Object> option2 = new HashMap<>(); |
|||
option2.put("label", "已确认"); |
|||
option2.put("value", 1); |
|||
options.add(option2); |
|||
|
|||
Map<String, Object> option3 = new HashMap<>(); |
|||
option3.put("label", "已处理"); |
|||
option3.put("value", 2); |
|||
options.add(option3); |
|||
|
|||
Map<String, Object> option4 = new HashMap<>(); |
|||
option4.put("label", "忽略"); |
|||
option4.put("value", 3); |
|||
options.add(option4); |
|||
|
|||
return R.ok().put("options", options); |
|||
} |
|||
} |
|||
|
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue