Commit 5e02a130 by 杨卫

feat:策略中心自测提交

1 parent 7e11aa2d
......@@ -154,6 +154,9 @@ public class WarningController {
public RopResponse<List<WarningRecordDTO>> findWarningDetailByStoreAndStaff(WarningDetailQueryRopRequest request) {
try {
WarningRecordQueryRequest req = CommonUtil.convertRequest(WarningRecordQueryRequest.class);
if (request.getCycleType() == 4) {
return RopResponse.success(CollUtil.newArrayList());
}
// cycleType → timeDimension + 起止日期
String[] resolved = CommonUtil.resolveTimeDimension(request.getCycleType(), req.getStartDate(), req.getEndDate());
req.setTimeDimension(resolved[0]);
......
......@@ -6,6 +6,8 @@ import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import java.util.List;
/**
* 门店员工预警明细查询 ROP 请求。
*
......@@ -29,4 +31,16 @@ public class WarningDetailQueryRopRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "结束日期 yyyy-MM-dd", required = true)
private String endDate;
@ApiModelProperty(notes = "门店ID(查询指定门店预警明细时使用)")
private Integer storeId;
@ApiModelProperty(notes = "员工ID(查询指定员工预警明细时使用)")
private String staffId;
@ApiModelProperty(notes = "员工ID(查询指定员工预警明细时使用)")
private List<String> staffIds;
@ApiModelProperty(notes = "监控对象 1=员工 2=门店")
private Integer monitorTarget;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!