|
@@ -4,8 +4,11 @@ import com.dliyun.oap.framework.annotation.ServiceMethod;
|
|
|
import com.dliyun.oap.framework.annotation.ServiceMethodBean;
|
|
import com.dliyun.oap.framework.annotation.ServiceMethodBean;
|
|
|
import com.dliyun.oap.framework.response.OapResponse;
|
|
import com.dliyun.oap.framework.response.OapResponse;
|
|
|
import com.zhiqiyun.open.core.models.statistics.HyMonitor;
|
|
import com.zhiqiyun.open.core.models.statistics.HyMonitor;
|
|
|
|
|
+import com.zhiqiyun.open.core.models.statistics.HyMonitorConsume;
|
|
|
|
|
+import com.zhiqiyun.open.core.service.HyMonitorConsumeService;
|
|
|
import com.zhiqiyun.open.core.service.HyMonitorService;
|
|
import com.zhiqiyun.open.core.service.HyMonitorService;
|
|
|
import com.zhiqiyun.open.core.service.SequenceService;
|
|
import com.zhiqiyun.open.core.service.SequenceService;
|
|
|
|
|
+import com.zhiqiyun.open.router.request.statistics.SaveHyMonitorConsumeRequest;
|
|
|
import com.zhiqiyun.open.router.request.statistics.SaveHyMonitorRequest;
|
|
import com.zhiqiyun.open.router.request.statistics.SaveHyMonitorRequest;
|
|
|
import com.zhiqiyun.open.utils.DateUtil;
|
|
import com.zhiqiyun.open.utils.DateUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -20,6 +23,9 @@ public class MonitorApi {
|
|
|
private HyMonitorService hyMonitorService;
|
|
private HyMonitorService hyMonitorService;
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
|
|
+ private HyMonitorConsumeService hyMonitorConsumeService;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
private SequenceService sequenceService;
|
|
private SequenceService sequenceService;
|
|
|
|
|
|
|
|
@ServiceMethod(method = "hy.monitor.add", title = "各机构客流量提交")
|
|
@ServiceMethod(method = "hy.monitor.add", title = "各机构客流量提交")
|
|
@@ -35,4 +41,18 @@ public class MonitorApi {
|
|
|
|
|
|
|
|
return OapResponse.success().setBody(entity);
|
|
return OapResponse.success().setBody(entity);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @ServiceMethod(method = "hy.monitor.consume.add", title = "各机构消费明细提交")
|
|
|
|
|
+ public OapResponse save(SaveHyMonitorConsumeRequest request) {
|
|
|
|
|
+
|
|
|
|
|
+ HyMonitorConsume entity = new HyMonitorConsume();
|
|
|
|
|
+ BeanUtils.copyProperties(request, entity);
|
|
|
|
|
+
|
|
|
|
|
+ entity.setCreateDate(DateUtil.current());
|
|
|
|
|
+ entity.setId(this.sequenceService.nextId());
|
|
|
|
|
+
|
|
|
|
|
+ this.hyMonitorConsumeService.save(entity);
|
|
|
|
|
+
|
|
|
|
|
+ return OapResponse.success().setBody(entity);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|