Browse Source

变化值点位最新值

songxiaohang 1 năm trước cách đây
mục cha
commit
66ff32dd6d

+ 4 - 0
app/cmd/dtgateway/desc/dtgateway.api

@@ -49,4 +49,8 @@ service dtgateway {
 	@doc "点位查询时间内第一个和最后一个值"
 	@handler ItemHistoryDataFirstLast
 	get /item-history/first-last (ItemHistoryDataByTimeReq) returns (CommonResponse)
+	
+	@doc "最新变化值点位数据"
+	@handler ChangeTypeItemData
+	get /item-change/info (ItemHistoryDataByTimeReq) returns (CommonResponse)
 }

+ 28 - 0
app/cmd/dtgateway/internal/handler/dtgateway/changeTypeItemDataHandler.go

@@ -0,0 +1,28 @@
+package dtgateway
+
+import (
+	"net/http"
+
+	"GtDataStore/app/cmd/dtgateway/internal/logic/dtgateway"
+	"GtDataStore/app/cmd/dtgateway/internal/svc"
+	"GtDataStore/app/cmd/dtgateway/internal/types"
+	"github.com/zeromicro/go-zero/rest/httpx"
+)
+
+func ChangeTypeItemDataHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.ItemHistoryDataByTimeReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.ErrorCtx(r.Context(), w, err)
+			return
+		}
+
+		l := dtgateway.NewChangeTypeItemDataLogic(r.Context(), svcCtx)
+		resp, err := l.ChangeTypeItemData(&req)
+		if err != nil {
+			httpx.ErrorCtx(r.Context(), w, err)
+		} else {
+			httpx.OkJsonCtx(r.Context(), w, resp)
+		}
+	}
+}

+ 5 - 0
app/cmd/dtgateway/internal/handler/routes.go

@@ -65,6 +65,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
 					Path:    "/item-history/first-last",
 					Handler: dtgateway.ItemHistoryDataFirstLastHandler(serverCtx),
 				},
+				{
+					Method:  http.MethodGet,
+					Path:    "/item-change/info",
+					Handler: dtgateway.ChangeTypeItemDataHandler(serverCtx),
+				},
 			}...,
 		),
 		rest.WithPrefix("/api/dtgateway/v1"),

+ 43 - 0
app/cmd/dtgateway/internal/logic/dtgateway/changeTypeItemDataLogic.go

@@ -0,0 +1,43 @@
+package dtgateway
+
+import (
+	"GtDataStore/app/cmd/organization/pb"
+	"GtDataStore/common/xerr"
+	"context"
+
+	"GtDataStore/app/cmd/dtgateway/internal/svc"
+	"GtDataStore/app/cmd/dtgateway/internal/types"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type ChangeTypeItemDataLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+}
+
+func NewChangeTypeItemDataLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ChangeTypeItemDataLogic {
+	return &ChangeTypeItemDataLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+	}
+}
+
+func (l *ChangeTypeItemDataLogic) ChangeTypeItemData(req *types.ItemHistoryDataByTimeReq) (resp *types.CommonResponse, err error) {
+	rpcData, err := l.svcCtx.OrganizationRpc.ChangeTypeItemHistoryData(l.ctx, &pb.ItemHistoryDataByTimeReq{
+		ProjectId: req.ProjectId,
+		ItemName:  req.ItemName,
+		Stime:     req.STime,
+		Etime:     req.ETime,
+	})
+	if err != nil {
+		return nil, err
+	}
+	return &types.CommonResponse{
+		Code: xerr.OK,
+		Msg:  xerr.MapErrMsg(xerr.OK),
+		Data: rpcData,
+	}, nil
+}

+ 36 - 0
app/cmd/organization/internal/logic/changeTypeItemHistoryDataLogic.go

@@ -0,0 +1,36 @@
+package logic
+
+import (
+	"GtDataStore/common/xerr"
+	"context"
+	"github.com/pkg/errors"
+
+	"GtDataStore/app/cmd/organization/internal/svc"
+	"GtDataStore/app/cmd/organization/pb"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type ChangeTypeItemHistoryDataLogic struct {
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	logx.Logger
+}
+
+func NewChangeTypeItemHistoryDataLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ChangeTypeItemHistoryDataLogic {
+	return &ChangeTypeItemHistoryDataLogic{
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		Logger: logx.WithContext(ctx),
+	}
+}
+
+func (l *ChangeTypeItemHistoryDataLogic) ChangeTypeItemHistoryData(in *pb.ItemHistoryDataByTimeReq) (*pb.ChangeTypeItemHistoryDataResp, error) {
+	LastData, err := l.svcCtx.ItemHistoryData.QueryHistoryDataLastByTime(l.ctx, in)
+	if err != nil {
+		return nil, errors.Wrapf(xerr.NewErrCode(xerr.DB_ERROR), "model QueryHistoryDataLastByTime get data err:%v", err)
+	}
+	return &pb.ChangeTypeItemHistoryDataResp{
+		Value: LastData.Val,
+	}, nil
+}

+ 5 - 0
app/cmd/organization/internal/server/organizationServer.go

@@ -71,3 +71,8 @@ func (s *OrganizationServer) ItemHistoryDataFirstLastByTime(ctx context.Context,
 	l := logic.NewItemHistoryDataFirstLastByTimeLogic(ctx, s.svcCtx)
 	return l.ItemHistoryDataFirstLastByTime(in)
 }
+
+func (s *OrganizationServer) ChangeTypeItemHistoryData(ctx context.Context, in *pb.ItemHistoryDataByTimeReq) (*pb.ChangeTypeItemHistoryDataResp, error) {
+	l := logic.NewChangeTypeItemHistoryDataLogic(ctx, s.svcCtx)
+	return l.ChangeTypeItemHistoryData(in)
+}

+ 6 - 0
app/cmd/organization/organization.proto

@@ -466,6 +466,11 @@ message ItemHistoryDataFirstLastResp {
   double    last = 2;
 }
 
+message ChangeTypeItemHistoryDataResp {
+  // @gotags: json:"value"
+  double    value = 1;
+}
+
 message ItemHistoryDataList {
   // @gotags: json:"item_name"
   string    item_name = 1;
@@ -526,4 +531,5 @@ service Organization {
   rpc ItemHistoryDataByTime(ItemHistoryDataByTimeReq) returns(ItemHistoryDataListResp);
   rpc ItemHistoryDataMaxMinByTime(ItemHistoryDataByTimeReq) returns(ItemHistoryDataMaxMinResp);
   rpc ItemHistoryDataFirstLastByTime(ItemHistoryDataByTimeReq) returns(ItemHistoryDataFirstLastResp);
+  rpc ChangeTypeItemHistoryData(ItemHistoryDataByTimeReq) returns(ChangeTypeItemHistoryDataResp);
 }

+ 31 - 24
app/cmd/organization/organization/organization.go

@@ -13,30 +13,31 @@ import (
 )
 
 type (
-	DcWorkingReq                 = pb.DcWorkingReq
-	GetWorkingChestByCodeResp    = pb.GetWorkingChestByCodeResp
-	GetWorkingMfByCodeResp       = pb.GetWorkingMfByCodeResp
-	GetWorkingNfByCodeResp       = pb.GetWorkingNfByCodeResp
-	GetWorkingPumpByCodeResp     = pb.GetWorkingPumpByCodeResp
-	GetWorkingRoByCodeResp       = pb.GetWorkingRoByCodeResp
-	GetWorkingUfByCodeResp       = pb.GetWorkingUfByCodeResp
-	GetWorkingValveByCodeResp    = pb.GetWorkingValveByCodeResp
-	ItemHistoryData              = pb.ItemHistoryData
-	ItemHistoryDataByTimeReq     = pb.ItemHistoryDataByTimeReq
-	ItemHistoryDataFirstLastResp = pb.ItemHistoryDataFirstLastResp
-	ItemHistoryDataList          = pb.ItemHistoryDataList
-	ItemHistoryDataListReq       = pb.ItemHistoryDataListReq
-	ItemHistoryDataListResp      = pb.ItemHistoryDataListResp
-	ItemHistoryDataMaxMinResp    = pb.ItemHistoryDataMaxMinResp
-	MultiAddItemHistoryDataReq   = pb.MultiAddItemHistoryDataReq
-	MultiAddItemHistoryDataResp  = pb.MultiAddItemHistoryDataResp
-	WorkingChest                 = pb.WorkingChest
-	WorkingMf                    = pb.WorkingMf
-	WorkingNf                    = pb.WorkingNf
-	WorkingPump                  = pb.WorkingPump
-	WorkingRo                    = pb.WorkingRo
-	WorkingUf                    = pb.WorkingUf
-	WorkingValve                 = pb.WorkingValve
+	ChangeTypeItemHistoryDataResp = pb.ChangeTypeItemHistoryDataResp
+	DcWorkingReq                  = pb.DcWorkingReq
+	GetWorkingChestByCodeResp     = pb.GetWorkingChestByCodeResp
+	GetWorkingMfByCodeResp        = pb.GetWorkingMfByCodeResp
+	GetWorkingNfByCodeResp        = pb.GetWorkingNfByCodeResp
+	GetWorkingPumpByCodeResp      = pb.GetWorkingPumpByCodeResp
+	GetWorkingRoByCodeResp        = pb.GetWorkingRoByCodeResp
+	GetWorkingUfByCodeResp        = pb.GetWorkingUfByCodeResp
+	GetWorkingValveByCodeResp     = pb.GetWorkingValveByCodeResp
+	ItemHistoryData               = pb.ItemHistoryData
+	ItemHistoryDataByTimeReq      = pb.ItemHistoryDataByTimeReq
+	ItemHistoryDataFirstLastResp  = pb.ItemHistoryDataFirstLastResp
+	ItemHistoryDataList           = pb.ItemHistoryDataList
+	ItemHistoryDataListReq        = pb.ItemHistoryDataListReq
+	ItemHistoryDataListResp       = pb.ItemHistoryDataListResp
+	ItemHistoryDataMaxMinResp     = pb.ItemHistoryDataMaxMinResp
+	MultiAddItemHistoryDataReq    = pb.MultiAddItemHistoryDataReq
+	MultiAddItemHistoryDataResp   = pb.MultiAddItemHistoryDataResp
+	WorkingChest                  = pb.WorkingChest
+	WorkingMf                     = pb.WorkingMf
+	WorkingNf                     = pb.WorkingNf
+	WorkingPump                   = pb.WorkingPump
+	WorkingRo                     = pb.WorkingRo
+	WorkingUf                     = pb.WorkingUf
+	WorkingValve                  = pb.WorkingValve
 
 	Organization interface {
 		GetWorkingUfByCode(ctx context.Context, in *DcWorkingReq, opts ...grpc.CallOption) (*GetWorkingUfByCodeResp, error)
@@ -49,6 +50,7 @@ type (
 		ItemHistoryDataByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error)
 		ItemHistoryDataMaxMinByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataMaxMinResp, error)
 		ItemHistoryDataFirstLastByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataFirstLastResp, error)
+		ChangeTypeItemHistoryData(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ChangeTypeItemHistoryDataResp, error)
 	}
 
 	defaultOrganization struct {
@@ -111,3 +113,8 @@ func (m *defaultOrganization) ItemHistoryDataFirstLastByTime(ctx context.Context
 	client := pb.NewOrganizationClient(m.cli.Conn())
 	return client.ItemHistoryDataFirstLastByTime(ctx, in, opts...)
 }
+
+func (m *defaultOrganization) ChangeTypeItemHistoryData(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ChangeTypeItemHistoryDataResp, error) {
+	client := pb.NewOrganizationClient(m.cli.Conn())
+	return client.ChangeTypeItemHistoryData(ctx, in, opts...)
+}

+ 232 - 160
app/cmd/organization/pb/organization.pb.go

@@ -2514,6 +2514,54 @@ func (x *ItemHistoryDataFirstLastResp) GetLast() float64 {
 	return 0
 }
 
+type ChangeTypeItemHistoryDataResp struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	// @gotags: json:"value"
+	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value"`
+}
+
+func (x *ChangeTypeItemHistoryDataResp) Reset() {
+	*x = ChangeTypeItemHistoryDataResp{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_organization_proto_msgTypes[15]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *ChangeTypeItemHistoryDataResp) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ChangeTypeItemHistoryDataResp) ProtoMessage() {}
+
+func (x *ChangeTypeItemHistoryDataResp) ProtoReflect() protoreflect.Message {
+	mi := &file_organization_proto_msgTypes[15]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use ChangeTypeItemHistoryDataResp.ProtoReflect.Descriptor instead.
+func (*ChangeTypeItemHistoryDataResp) Descriptor() ([]byte, []int) {
+	return file_organization_proto_rawDescGZIP(), []int{15}
+}
+
+func (x *ChangeTypeItemHistoryDataResp) GetValue() float64 {
+	if x != nil {
+		return x.Value
+	}
+	return 0
+}
+
 type ItemHistoryDataList struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -2530,7 +2578,7 @@ type ItemHistoryDataList struct {
 func (x *ItemHistoryDataList) Reset() {
 	*x = ItemHistoryDataList{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_organization_proto_msgTypes[15]
+		mi := &file_organization_proto_msgTypes[16]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -2543,7 +2591,7 @@ func (x *ItemHistoryDataList) String() string {
 func (*ItemHistoryDataList) ProtoMessage() {}
 
 func (x *ItemHistoryDataList) ProtoReflect() protoreflect.Message {
-	mi := &file_organization_proto_msgTypes[15]
+	mi := &file_organization_proto_msgTypes[16]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -2556,7 +2604,7 @@ func (x *ItemHistoryDataList) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use ItemHistoryDataList.ProtoReflect.Descriptor instead.
 func (*ItemHistoryDataList) Descriptor() ([]byte, []int) {
-	return file_organization_proto_rawDescGZIP(), []int{15}
+	return file_organization_proto_rawDescGZIP(), []int{16}
 }
 
 func (x *ItemHistoryDataList) GetItemName() string {
@@ -2592,7 +2640,7 @@ type ItemHistoryDataListResp struct {
 func (x *ItemHistoryDataListResp) Reset() {
 	*x = ItemHistoryDataListResp{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_organization_proto_msgTypes[16]
+		mi := &file_organization_proto_msgTypes[17]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -2605,7 +2653,7 @@ func (x *ItemHistoryDataListResp) String() string {
 func (*ItemHistoryDataListResp) ProtoMessage() {}
 
 func (x *ItemHistoryDataListResp) ProtoReflect() protoreflect.Message {
-	mi := &file_organization_proto_msgTypes[16]
+	mi := &file_organization_proto_msgTypes[17]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -2618,7 +2666,7 @@ func (x *ItemHistoryDataListResp) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use ItemHistoryDataListResp.ProtoReflect.Descriptor instead.
 func (*ItemHistoryDataListResp) Descriptor() ([]byte, []int) {
-	return file_organization_proto_rawDescGZIP(), []int{16}
+	return file_organization_proto_rawDescGZIP(), []int{17}
 }
 
 func (x *ItemHistoryDataListResp) GetList() []*ItemHistoryDataList {
@@ -2640,7 +2688,7 @@ type GetWorkingUfByCodeResp struct {
 func (x *GetWorkingUfByCodeResp) Reset() {
 	*x = GetWorkingUfByCodeResp{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_organization_proto_msgTypes[17]
+		mi := &file_organization_proto_msgTypes[18]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -2653,7 +2701,7 @@ func (x *GetWorkingUfByCodeResp) String() string {
 func (*GetWorkingUfByCodeResp) ProtoMessage() {}
 
 func (x *GetWorkingUfByCodeResp) ProtoReflect() protoreflect.Message {
-	mi := &file_organization_proto_msgTypes[17]
+	mi := &file_organization_proto_msgTypes[18]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -2666,7 +2714,7 @@ func (x *GetWorkingUfByCodeResp) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use GetWorkingUfByCodeResp.ProtoReflect.Descriptor instead.
 func (*GetWorkingUfByCodeResp) Descriptor() ([]byte, []int) {
-	return file_organization_proto_rawDescGZIP(), []int{17}
+	return file_organization_proto_rawDescGZIP(), []int{18}
 }
 
 func (x *GetWorkingUfByCodeResp) GetList() []*WorkingUf {
@@ -2688,7 +2736,7 @@ type GetWorkingRoByCodeResp struct {
 func (x *GetWorkingRoByCodeResp) Reset() {
 	*x = GetWorkingRoByCodeResp{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_organization_proto_msgTypes[18]
+		mi := &file_organization_proto_msgTypes[19]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -2701,7 +2749,7 @@ func (x *GetWorkingRoByCodeResp) String() string {
 func (*GetWorkingRoByCodeResp) ProtoMessage() {}
 
 func (x *GetWorkingRoByCodeResp) ProtoReflect() protoreflect.Message {
-	mi := &file_organization_proto_msgTypes[18]
+	mi := &file_organization_proto_msgTypes[19]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -2714,7 +2762,7 @@ func (x *GetWorkingRoByCodeResp) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use GetWorkingRoByCodeResp.ProtoReflect.Descriptor instead.
 func (*GetWorkingRoByCodeResp) Descriptor() ([]byte, []int) {
-	return file_organization_proto_rawDescGZIP(), []int{18}
+	return file_organization_proto_rawDescGZIP(), []int{19}
 }
 
 func (x *GetWorkingRoByCodeResp) GetList() []*WorkingRo {
@@ -2736,7 +2784,7 @@ type GetWorkingNfByCodeResp struct {
 func (x *GetWorkingNfByCodeResp) Reset() {
 	*x = GetWorkingNfByCodeResp{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_organization_proto_msgTypes[19]
+		mi := &file_organization_proto_msgTypes[20]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -2749,7 +2797,7 @@ func (x *GetWorkingNfByCodeResp) String() string {
 func (*GetWorkingNfByCodeResp) ProtoMessage() {}
 
 func (x *GetWorkingNfByCodeResp) ProtoReflect() protoreflect.Message {
-	mi := &file_organization_proto_msgTypes[19]
+	mi := &file_organization_proto_msgTypes[20]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -2762,7 +2810,7 @@ func (x *GetWorkingNfByCodeResp) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use GetWorkingNfByCodeResp.ProtoReflect.Descriptor instead.
 func (*GetWorkingNfByCodeResp) Descriptor() ([]byte, []int) {
-	return file_organization_proto_rawDescGZIP(), []int{19}
+	return file_organization_proto_rawDescGZIP(), []int{20}
 }
 
 func (x *GetWorkingNfByCodeResp) GetList() []*WorkingNf {
@@ -2784,7 +2832,7 @@ type GetWorkingMfByCodeResp struct {
 func (x *GetWorkingMfByCodeResp) Reset() {
 	*x = GetWorkingMfByCodeResp{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_organization_proto_msgTypes[20]
+		mi := &file_organization_proto_msgTypes[21]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -2797,7 +2845,7 @@ func (x *GetWorkingMfByCodeResp) String() string {
 func (*GetWorkingMfByCodeResp) ProtoMessage() {}
 
 func (x *GetWorkingMfByCodeResp) ProtoReflect() protoreflect.Message {
-	mi := &file_organization_proto_msgTypes[20]
+	mi := &file_organization_proto_msgTypes[21]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -2810,7 +2858,7 @@ func (x *GetWorkingMfByCodeResp) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use GetWorkingMfByCodeResp.ProtoReflect.Descriptor instead.
 func (*GetWorkingMfByCodeResp) Descriptor() ([]byte, []int) {
-	return file_organization_proto_rawDescGZIP(), []int{20}
+	return file_organization_proto_rawDescGZIP(), []int{21}
 }
 
 func (x *GetWorkingMfByCodeResp) GetList() []*WorkingMf {
@@ -2832,7 +2880,7 @@ type GetWorkingPumpByCodeResp struct {
 func (x *GetWorkingPumpByCodeResp) Reset() {
 	*x = GetWorkingPumpByCodeResp{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_organization_proto_msgTypes[21]
+		mi := &file_organization_proto_msgTypes[22]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -2845,7 +2893,7 @@ func (x *GetWorkingPumpByCodeResp) String() string {
 func (*GetWorkingPumpByCodeResp) ProtoMessage() {}
 
 func (x *GetWorkingPumpByCodeResp) ProtoReflect() protoreflect.Message {
-	mi := &file_organization_proto_msgTypes[21]
+	mi := &file_organization_proto_msgTypes[22]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -2858,7 +2906,7 @@ func (x *GetWorkingPumpByCodeResp) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use GetWorkingPumpByCodeResp.ProtoReflect.Descriptor instead.
 func (*GetWorkingPumpByCodeResp) Descriptor() ([]byte, []int) {
-	return file_organization_proto_rawDescGZIP(), []int{21}
+	return file_organization_proto_rawDescGZIP(), []int{22}
 }
 
 func (x *GetWorkingPumpByCodeResp) GetList() []*WorkingPump {
@@ -2880,7 +2928,7 @@ type GetWorkingValveByCodeResp struct {
 func (x *GetWorkingValveByCodeResp) Reset() {
 	*x = GetWorkingValveByCodeResp{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_organization_proto_msgTypes[22]
+		mi := &file_organization_proto_msgTypes[23]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -2893,7 +2941,7 @@ func (x *GetWorkingValveByCodeResp) String() string {
 func (*GetWorkingValveByCodeResp) ProtoMessage() {}
 
 func (x *GetWorkingValveByCodeResp) ProtoReflect() protoreflect.Message {
-	mi := &file_organization_proto_msgTypes[22]
+	mi := &file_organization_proto_msgTypes[23]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -2906,7 +2954,7 @@ func (x *GetWorkingValveByCodeResp) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use GetWorkingValveByCodeResp.ProtoReflect.Descriptor instead.
 func (*GetWorkingValveByCodeResp) Descriptor() ([]byte, []int) {
-	return file_organization_proto_rawDescGZIP(), []int{22}
+	return file_organization_proto_rawDescGZIP(), []int{23}
 }
 
 func (x *GetWorkingValveByCodeResp) GetList() []*WorkingValve {
@@ -2928,7 +2976,7 @@ type GetWorkingChestByCodeResp struct {
 func (x *GetWorkingChestByCodeResp) Reset() {
 	*x = GetWorkingChestByCodeResp{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_organization_proto_msgTypes[23]
+		mi := &file_organization_proto_msgTypes[24]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -2941,7 +2989,7 @@ func (x *GetWorkingChestByCodeResp) String() string {
 func (*GetWorkingChestByCodeResp) ProtoMessage() {}
 
 func (x *GetWorkingChestByCodeResp) ProtoReflect() protoreflect.Message {
-	mi := &file_organization_proto_msgTypes[23]
+	mi := &file_organization_proto_msgTypes[24]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -2954,7 +3002,7 @@ func (x *GetWorkingChestByCodeResp) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use GetWorkingChestByCodeResp.ProtoReflect.Descriptor instead.
 func (*GetWorkingChestByCodeResp) Descriptor() ([]byte, []int) {
-	return file_organization_proto_rawDescGZIP(), []int{23}
+	return file_organization_proto_rawDescGZIP(), []int{24}
 }
 
 func (x *GetWorkingChestByCodeResp) GetList() []*WorkingChest {
@@ -3420,97 +3468,106 @@ var file_organization_proto_rawDesc = []byte{
 	0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x72, 0x73,
 	0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x66, 0x69, 0x72, 0x73, 0x74, 0x12, 0x12,
 	0x0a, 0x04, 0x6c, 0x61, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x04, 0x6c, 0x61,
-	0x73, 0x74, 0x22, 0x5b, 0x0a, 0x13, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72,
-	0x79, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x74, 0x65,
-	0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x74,
-	0x65, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x02, 0x20,
-	0x01, 0x28, 0x01, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x12, 0x15, 0x0a, 0x06, 0x68, 0x5f, 0x74, 0x69,
-	0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x22,
-	0x46, 0x0a, 0x17, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61,
-	0x74, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2b, 0x0a, 0x04, 0x6c, 0x69,
-	0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x74,
-	0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73,
-	0x74, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x3b, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x57, 0x6f,
-	0x72, 0x6b, 0x69, 0x6e, 0x67, 0x55, 0x66, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73,
-	0x70, 0x12, 0x21, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
-	0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x55, 0x66, 0x52, 0x04,
-	0x6c, 0x69, 0x73, 0x74, 0x22, 0x3b, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69,
-	0x6e, 0x67, 0x52, 0x6f, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21,
-	0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70,
-	0x62, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x6f, 0x52, 0x04, 0x6c, 0x69, 0x73,
-	0x74, 0x22, 0x3b, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x4e,
-	0x66, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x04, 0x6c,
-	0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x57,
-	0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x4e, 0x66, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x3b,
-	0x0a, 0x16, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x4d, 0x66, 0x42, 0x79,
+	0x73, 0x74, 0x22, 0x35, 0x0a, 0x1d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65,
+	0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52,
+	0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01,
+	0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5b, 0x0a, 0x13, 0x49, 0x74, 0x65,
+	0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73, 0x74,
+	0x12, 0x1b, 0x0a, 0x09, 0x69, 0x74, 0x65, 0x6d, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
+	0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x74, 0x65, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a,
+	0x03, 0x76, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x12,
+	0x15, 0x0a, 0x06, 0x68, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x05, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x46, 0x0a, 0x17, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69,
+	0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73,
+	0x70, 0x12, 0x2b, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
+	0x17, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79,
+	0x44, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x3b,
+	0x0a, 0x16, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x55, 0x66, 0x42, 0x79,
 	0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74,
 	0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x57, 0x6f, 0x72, 0x6b,
-	0x69, 0x6e, 0x67, 0x4d, 0x66, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x3f, 0x0a, 0x18, 0x47,
-	0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x6d, 0x70, 0x42, 0x79, 0x43,
-	0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18,
-	0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x69,
-	0x6e, 0x67, 0x50, 0x75, 0x6d, 0x70, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x41, 0x0a, 0x19,
-	0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x76, 0x65, 0x42,
-	0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a, 0x04, 0x6c, 0x69, 0x73,
-	0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x57, 0x6f, 0x72,
-	0x6b, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x76, 0x65, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22,
-	0x41, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x65,
-	0x73, 0x74, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a, 0x04,
-	0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e,
-	0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x65, 0x73, 0x74, 0x52, 0x04, 0x6c, 0x69,
-	0x73, 0x74, 0x32, 0xb0, 0x06, 0x0a, 0x0c, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74,
-	0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e,
-	0x67, 0x55, 0x66, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x44,
-	0x63, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x70, 0x62,
-	0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x55, 0x66, 0x42, 0x79, 0x43,
-	0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x42, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x57, 0x6f,
-	0x72, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x6f, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x2e,
-	0x70, 0x62, 0x2e, 0x44, 0x63, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a,
-	0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x52,
-	0x6f, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x48, 0x0a, 0x15, 0x47,
-	0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x65, 0x73, 0x74, 0x42, 0x79,
+	0x69, 0x6e, 0x67, 0x55, 0x66, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x3b, 0x0a, 0x16, 0x47,
+	0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x6f, 0x42, 0x79, 0x43, 0x6f, 0x64,
+	0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20,
+	0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67,
+	0x52, 0x6f, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x3b, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x57,
+	0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x4e, 0x66, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65,
+	0x73, 0x70, 0x12, 0x21, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
+	0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x4e, 0x66, 0x52,
+	0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x3b, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b,
+	0x69, 0x6e, 0x67, 0x4d, 0x66, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12,
+	0x21, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
+	0x70, 0x62, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x4d, 0x66, 0x52, 0x04, 0x6c, 0x69,
+	0x73, 0x74, 0x22, 0x3f, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67,
+	0x50, 0x75, 0x6d, 0x70, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23,
+	0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70,
+	0x62, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x6d, 0x70, 0x52, 0x04, 0x6c,
+	0x69, 0x73, 0x74, 0x22, 0x41, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e,
+	0x67, 0x56, 0x61, 0x6c, 0x76, 0x65, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70,
+	0x12, 0x24, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10,
+	0x2e, 0x70, 0x62, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x76, 0x65,
+	0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x41, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72,
+	0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x65, 0x73, 0x74, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52,
+	0x65, 0x73, 0x70, 0x12, 0x24, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28,
+	0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68,
+	0x65, 0x73, 0x74, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x32, 0x8e, 0x07, 0x0a, 0x0c, 0x4f, 0x72,
+	0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x12, 0x47, 0x65,
+	0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x55, 0x66, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65,
+	0x12, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x63, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x52,
+	0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69,
+	0x6e, 0x67, 0x55, 0x66, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x42,
+	0x0a, 0x12, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x6f, 0x42, 0x79,
+	0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x63, 0x57, 0x6f, 0x72, 0x6b,
+	0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x57,
+	0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x6f, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65,
+	0x73, 0x70, 0x12, 0x48, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67,
+	0x43, 0x68, 0x65, 0x73, 0x74, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x2e, 0x70, 0x62,
+	0x2e, 0x44, 0x63, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e,
+	0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x65,
+	0x73, 0x74, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x46, 0x0a, 0x14,
+	0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x6d, 0x70, 0x42, 0x79,
 	0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x63, 0x57, 0x6f, 0x72, 0x6b,
-	0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x57,
-	0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x65, 0x73, 0x74, 0x42, 0x79, 0x43, 0x6f, 0x64,
-	0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x46, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b,
-	0x69, 0x6e, 0x67, 0x50, 0x75, 0x6d, 0x70, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x2e,
+	0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x57,
+	0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x75, 0x6d, 0x70, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65,
+	0x52, 0x65, 0x73, 0x70, 0x12, 0x48, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69,
+	0x6e, 0x67, 0x56, 0x61, 0x6c, 0x76, 0x65, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x2e,
 	0x70, 0x62, 0x2e, 0x44, 0x63, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a,
-	0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x50,
-	0x75, 0x6d, 0x70, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x48, 0x0a,
-	0x15, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x76, 0x65,
-	0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x63, 0x57, 0x6f,
-	0x72, 0x6b, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65,
-	0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x76, 0x65, 0x42, 0x79, 0x43,
-	0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x5a, 0x0a, 0x17, 0x4d, 0x75, 0x6c, 0x74, 0x69,
-	0x41, 0x64, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61,
-	0x74, 0x61, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x41, 0x64, 0x64,
-	0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52,
-	0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x41, 0x64, 0x64,
-	0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52,
-	0x65, 0x73, 0x70, 0x12, 0x4e, 0x0a, 0x13, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f,
-	0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e,
-	0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x4c,
-	0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x74, 0x65, 0x6d,
-	0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x52,
-	0x65, 0x73, 0x70, 0x12, 0x52, 0x0a, 0x15, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f,
-	0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x2e, 0x70,
+	0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x56,
+	0x61, 0x6c, 0x76, 0x65, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x5a,
+	0x0a, 0x17, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x41, 0x64, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69,
+	0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x4d,
+	0x75, 0x6c, 0x74, 0x69, 0x41, 0x64, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f,
+	0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x4d,
+	0x75, 0x6c, 0x74, 0x69, 0x41, 0x64, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f,
+	0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4e, 0x0a, 0x13, 0x49, 0x74,
+	0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73,
+	0x74, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f,
+	0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e,
+	0x70, 0x62, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61,
+	0x74, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x52, 0x0a, 0x15, 0x49, 0x74,
+	0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x54,
+	0x69, 0x6d, 0x65, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73,
+	0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65,
+	0x71, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f,
+	0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x5a,
+	0x0a, 0x1b, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74,
+	0x61, 0x4d, 0x61, 0x78, 0x4d, 0x69, 0x6e, 0x42, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x2e,
+	0x70, 0x62, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61,
+	0x74, 0x61, 0x42, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x70, 0x62,
+	0x2e, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61,
+	0x4d, 0x61, 0x78, 0x4d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x60, 0x0a, 0x1e, 0x49, 0x74,
+	0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x46, 0x69, 0x72,
+	0x73, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x2e, 0x70,
 	0x62, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74,
-	0x61, 0x42, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e,
-	0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x4c,
-	0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x5a, 0x0a, 0x1b, 0x49, 0x74, 0x65, 0x6d, 0x48,
-	0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x78, 0x4d, 0x69, 0x6e,
-	0x42, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x74, 0x65, 0x6d,
-	0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x54, 0x69, 0x6d,
-	0x65, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69,
-	0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x78, 0x4d, 0x69, 0x6e, 0x52,
-	0x65, 0x73, 0x70, 0x12, 0x60, 0x0a, 0x1e, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f,
-	0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x46, 0x69, 0x72, 0x73, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x42,
-	0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x48,
-	0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79, 0x54, 0x69, 0x6d, 0x65,
-	0x52, 0x65, 0x71, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73,
-	0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x46, 0x69, 0x72, 0x73, 0x74, 0x4c, 0x61, 0x73,
-	0x74, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70,
-	0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x61, 0x42, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e,
+	0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x46,
+	0x69, 0x72, 0x73, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x5c, 0x0a, 0x19,
+	0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69,
+	0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x49,
+	0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x42, 0x79,
+	0x54, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x61,
+	0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x48, 0x69, 0x73, 0x74, 0x6f,
+	0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f,
+	0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -3525,36 +3582,37 @@ func file_organization_proto_rawDescGZIP() []byte {
 	return file_organization_proto_rawDescData
 }
 
-var file_organization_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
+var file_organization_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
 var file_organization_proto_goTypes = []interface{}{
-	(*DcWorkingReq)(nil),                 // 0: pb.DcWorkingReq
-	(*WorkingMf)(nil),                    // 1: pb.WorkingMf
-	(*WorkingUf)(nil),                    // 2: pb.WorkingUf
-	(*WorkingNf)(nil),                    // 3: pb.WorkingNf
-	(*WorkingRo)(nil),                    // 4: pb.WorkingRo
-	(*WorkingChest)(nil),                 // 5: pb.WorkingChest
-	(*WorkingPump)(nil),                  // 6: pb.WorkingPump
-	(*WorkingValve)(nil),                 // 7: pb.WorkingValve
-	(*ItemHistoryData)(nil),              // 8: pb.ItemHistoryData
-	(*MultiAddItemHistoryDataReq)(nil),   // 9: pb.MultiAddItemHistoryDataReq
-	(*MultiAddItemHistoryDataResp)(nil),  // 10: pb.MultiAddItemHistoryDataResp
-	(*ItemHistoryDataListReq)(nil),       // 11: pb.ItemHistoryDataListReq
-	(*ItemHistoryDataByTimeReq)(nil),     // 12: pb.ItemHistoryDataByTimeReq
-	(*ItemHistoryDataMaxMinResp)(nil),    // 13: pb.ItemHistoryDataMaxMinResp
-	(*ItemHistoryDataFirstLastResp)(nil), // 14: pb.ItemHistoryDataFirstLastResp
-	(*ItemHistoryDataList)(nil),          // 15: pb.ItemHistoryDataList
-	(*ItemHistoryDataListResp)(nil),      // 16: pb.ItemHistoryDataListResp
-	(*GetWorkingUfByCodeResp)(nil),       // 17: pb.GetWorkingUfByCodeResp
-	(*GetWorkingRoByCodeResp)(nil),       // 18: pb.GetWorkingRoByCodeResp
-	(*GetWorkingNfByCodeResp)(nil),       // 19: pb.GetWorkingNfByCodeResp
-	(*GetWorkingMfByCodeResp)(nil),       // 20: pb.GetWorkingMfByCodeResp
-	(*GetWorkingPumpByCodeResp)(nil),     // 21: pb.GetWorkingPumpByCodeResp
-	(*GetWorkingValveByCodeResp)(nil),    // 22: pb.GetWorkingValveByCodeResp
-	(*GetWorkingChestByCodeResp)(nil),    // 23: pb.GetWorkingChestByCodeResp
+	(*DcWorkingReq)(nil),                  // 0: pb.DcWorkingReq
+	(*WorkingMf)(nil),                     // 1: pb.WorkingMf
+	(*WorkingUf)(nil),                     // 2: pb.WorkingUf
+	(*WorkingNf)(nil),                     // 3: pb.WorkingNf
+	(*WorkingRo)(nil),                     // 4: pb.WorkingRo
+	(*WorkingChest)(nil),                  // 5: pb.WorkingChest
+	(*WorkingPump)(nil),                   // 6: pb.WorkingPump
+	(*WorkingValve)(nil),                  // 7: pb.WorkingValve
+	(*ItemHistoryData)(nil),               // 8: pb.ItemHistoryData
+	(*MultiAddItemHistoryDataReq)(nil),    // 9: pb.MultiAddItemHistoryDataReq
+	(*MultiAddItemHistoryDataResp)(nil),   // 10: pb.MultiAddItemHistoryDataResp
+	(*ItemHistoryDataListReq)(nil),        // 11: pb.ItemHistoryDataListReq
+	(*ItemHistoryDataByTimeReq)(nil),      // 12: pb.ItemHistoryDataByTimeReq
+	(*ItemHistoryDataMaxMinResp)(nil),     // 13: pb.ItemHistoryDataMaxMinResp
+	(*ItemHistoryDataFirstLastResp)(nil),  // 14: pb.ItemHistoryDataFirstLastResp
+	(*ChangeTypeItemHistoryDataResp)(nil), // 15: pb.ChangeTypeItemHistoryDataResp
+	(*ItemHistoryDataList)(nil),           // 16: pb.ItemHistoryDataList
+	(*ItemHistoryDataListResp)(nil),       // 17: pb.ItemHistoryDataListResp
+	(*GetWorkingUfByCodeResp)(nil),        // 18: pb.GetWorkingUfByCodeResp
+	(*GetWorkingRoByCodeResp)(nil),        // 19: pb.GetWorkingRoByCodeResp
+	(*GetWorkingNfByCodeResp)(nil),        // 20: pb.GetWorkingNfByCodeResp
+	(*GetWorkingMfByCodeResp)(nil),        // 21: pb.GetWorkingMfByCodeResp
+	(*GetWorkingPumpByCodeResp)(nil),      // 22: pb.GetWorkingPumpByCodeResp
+	(*GetWorkingValveByCodeResp)(nil),     // 23: pb.GetWorkingValveByCodeResp
+	(*GetWorkingChestByCodeResp)(nil),     // 24: pb.GetWorkingChestByCodeResp
 }
 var file_organization_proto_depIdxs = []int32{
 	8,  // 0: pb.MultiAddItemHistoryDataReq.list:type_name -> pb.ItemHistoryData
-	15, // 1: pb.ItemHistoryDataListResp.list:type_name -> pb.ItemHistoryDataList
+	16, // 1: pb.ItemHistoryDataListResp.list:type_name -> pb.ItemHistoryDataList
 	2,  // 2: pb.GetWorkingUfByCodeResp.list:type_name -> pb.WorkingUf
 	4,  // 3: pb.GetWorkingRoByCodeResp.list:type_name -> pb.WorkingRo
 	3,  // 4: pb.GetWorkingNfByCodeResp.list:type_name -> pb.WorkingNf
@@ -3572,18 +3630,20 @@ var file_organization_proto_depIdxs = []int32{
 	12, // 16: pb.Organization.ItemHistoryDataByTime:input_type -> pb.ItemHistoryDataByTimeReq
 	12, // 17: pb.Organization.ItemHistoryDataMaxMinByTime:input_type -> pb.ItemHistoryDataByTimeReq
 	12, // 18: pb.Organization.ItemHistoryDataFirstLastByTime:input_type -> pb.ItemHistoryDataByTimeReq
-	17, // 19: pb.Organization.GetWorkingUfByCode:output_type -> pb.GetWorkingUfByCodeResp
-	18, // 20: pb.Organization.GetWorkingRoByCode:output_type -> pb.GetWorkingRoByCodeResp
-	23, // 21: pb.Organization.GetWorkingChestByCode:output_type -> pb.GetWorkingChestByCodeResp
-	21, // 22: pb.Organization.GetWorkingPumpByCode:output_type -> pb.GetWorkingPumpByCodeResp
-	22, // 23: pb.Organization.GetWorkingValveByCode:output_type -> pb.GetWorkingValveByCodeResp
-	10, // 24: pb.Organization.MultiAddItemHistoryData:output_type -> pb.MultiAddItemHistoryDataResp
-	16, // 25: pb.Organization.ItemHistoryDataList:output_type -> pb.ItemHistoryDataListResp
-	16, // 26: pb.Organization.ItemHistoryDataByTime:output_type -> pb.ItemHistoryDataListResp
-	13, // 27: pb.Organization.ItemHistoryDataMaxMinByTime:output_type -> pb.ItemHistoryDataMaxMinResp
-	14, // 28: pb.Organization.ItemHistoryDataFirstLastByTime:output_type -> pb.ItemHistoryDataFirstLastResp
-	19, // [19:29] is the sub-list for method output_type
-	9,  // [9:19] is the sub-list for method input_type
+	12, // 19: pb.Organization.ChangeTypeItemHistoryData:input_type -> pb.ItemHistoryDataByTimeReq
+	18, // 20: pb.Organization.GetWorkingUfByCode:output_type -> pb.GetWorkingUfByCodeResp
+	19, // 21: pb.Organization.GetWorkingRoByCode:output_type -> pb.GetWorkingRoByCodeResp
+	24, // 22: pb.Organization.GetWorkingChestByCode:output_type -> pb.GetWorkingChestByCodeResp
+	22, // 23: pb.Organization.GetWorkingPumpByCode:output_type -> pb.GetWorkingPumpByCodeResp
+	23, // 24: pb.Organization.GetWorkingValveByCode:output_type -> pb.GetWorkingValveByCodeResp
+	10, // 25: pb.Organization.MultiAddItemHistoryData:output_type -> pb.MultiAddItemHistoryDataResp
+	17, // 26: pb.Organization.ItemHistoryDataList:output_type -> pb.ItemHistoryDataListResp
+	17, // 27: pb.Organization.ItemHistoryDataByTime:output_type -> pb.ItemHistoryDataListResp
+	13, // 28: pb.Organization.ItemHistoryDataMaxMinByTime:output_type -> pb.ItemHistoryDataMaxMinResp
+	14, // 29: pb.Organization.ItemHistoryDataFirstLastByTime:output_type -> pb.ItemHistoryDataFirstLastResp
+	15, // 30: pb.Organization.ChangeTypeItemHistoryData:output_type -> pb.ChangeTypeItemHistoryDataResp
+	20, // [20:31] is the sub-list for method output_type
+	9,  // [9:20] is the sub-list for method input_type
 	9,  // [9:9] is the sub-list for extension type_name
 	9,  // [9:9] is the sub-list for extension extendee
 	0,  // [0:9] is the sub-list for field type_name
@@ -3776,7 +3836,7 @@ func file_organization_proto_init() {
 			}
 		}
 		file_organization_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*ItemHistoryDataList); i {
+			switch v := v.(*ChangeTypeItemHistoryDataResp); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -3788,7 +3848,7 @@ func file_organization_proto_init() {
 			}
 		}
 		file_organization_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*ItemHistoryDataListResp); i {
+			switch v := v.(*ItemHistoryDataList); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -3800,7 +3860,7 @@ func file_organization_proto_init() {
 			}
 		}
 		file_organization_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*GetWorkingUfByCodeResp); i {
+			switch v := v.(*ItemHistoryDataListResp); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -3812,7 +3872,7 @@ func file_organization_proto_init() {
 			}
 		}
 		file_organization_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*GetWorkingRoByCodeResp); i {
+			switch v := v.(*GetWorkingUfByCodeResp); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -3824,7 +3884,7 @@ func file_organization_proto_init() {
 			}
 		}
 		file_organization_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*GetWorkingNfByCodeResp); i {
+			switch v := v.(*GetWorkingRoByCodeResp); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -3836,7 +3896,7 @@ func file_organization_proto_init() {
 			}
 		}
 		file_organization_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*GetWorkingMfByCodeResp); i {
+			switch v := v.(*GetWorkingNfByCodeResp); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -3848,7 +3908,7 @@ func file_organization_proto_init() {
 			}
 		}
 		file_organization_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*GetWorkingPumpByCodeResp); i {
+			switch v := v.(*GetWorkingMfByCodeResp); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -3860,7 +3920,7 @@ func file_organization_proto_init() {
 			}
 		}
 		file_organization_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*GetWorkingValveByCodeResp); i {
+			switch v := v.(*GetWorkingPumpByCodeResp); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -3872,6 +3932,18 @@ func file_organization_proto_init() {
 			}
 		}
 		file_organization_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*GetWorkingValveByCodeResp); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_organization_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*GetWorkingChestByCodeResp); i {
 			case 0:
 				return &v.state
@@ -3890,7 +3962,7 @@ func file_organization_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_organization_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   24,
+			NumMessages:   25,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 37 - 0
app/cmd/organization/pb/organization_grpc.pb.go

@@ -29,6 +29,7 @@ const (
 	Organization_ItemHistoryDataByTime_FullMethodName          = "/pb.Organization/ItemHistoryDataByTime"
 	Organization_ItemHistoryDataMaxMinByTime_FullMethodName    = "/pb.Organization/ItemHistoryDataMaxMinByTime"
 	Organization_ItemHistoryDataFirstLastByTime_FullMethodName = "/pb.Organization/ItemHistoryDataFirstLastByTime"
+	Organization_ChangeTypeItemHistoryData_FullMethodName      = "/pb.Organization/ChangeTypeItemHistoryData"
 )
 
 // OrganizationClient is the client API for Organization service.
@@ -45,6 +46,7 @@ type OrganizationClient interface {
 	ItemHistoryDataByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataListResp, error)
 	ItemHistoryDataMaxMinByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataMaxMinResp, error)
 	ItemHistoryDataFirstLastByTime(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ItemHistoryDataFirstLastResp, error)
+	ChangeTypeItemHistoryData(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ChangeTypeItemHistoryDataResp, error)
 }
 
 type organizationClient struct {
@@ -145,6 +147,15 @@ func (c *organizationClient) ItemHistoryDataFirstLastByTime(ctx context.Context,
 	return out, nil
 }
 
+func (c *organizationClient) ChangeTypeItemHistoryData(ctx context.Context, in *ItemHistoryDataByTimeReq, opts ...grpc.CallOption) (*ChangeTypeItemHistoryDataResp, error) {
+	out := new(ChangeTypeItemHistoryDataResp)
+	err := c.cc.Invoke(ctx, Organization_ChangeTypeItemHistoryData_FullMethodName, in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // OrganizationServer is the server API for Organization service.
 // All implementations must embed UnimplementedOrganizationServer
 // for forward compatibility
@@ -159,6 +170,7 @@ type OrganizationServer interface {
 	ItemHistoryDataByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataListResp, error)
 	ItemHistoryDataMaxMinByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataMaxMinResp, error)
 	ItemHistoryDataFirstLastByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataFirstLastResp, error)
+	ChangeTypeItemHistoryData(context.Context, *ItemHistoryDataByTimeReq) (*ChangeTypeItemHistoryDataResp, error)
 	mustEmbedUnimplementedOrganizationServer()
 }
 
@@ -196,6 +208,9 @@ func (UnimplementedOrganizationServer) ItemHistoryDataMaxMinByTime(context.Conte
 func (UnimplementedOrganizationServer) ItemHistoryDataFirstLastByTime(context.Context, *ItemHistoryDataByTimeReq) (*ItemHistoryDataFirstLastResp, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method ItemHistoryDataFirstLastByTime not implemented")
 }
+func (UnimplementedOrganizationServer) ChangeTypeItemHistoryData(context.Context, *ItemHistoryDataByTimeReq) (*ChangeTypeItemHistoryDataResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method ChangeTypeItemHistoryData not implemented")
+}
 func (UnimplementedOrganizationServer) mustEmbedUnimplementedOrganizationServer() {}
 
 // UnsafeOrganizationServer may be embedded to opt out of forward compatibility for this service.
@@ -389,6 +404,24 @@ func _Organization_ItemHistoryDataFirstLastByTime_Handler(srv interface{}, ctx c
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Organization_ChangeTypeItemHistoryData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(ItemHistoryDataByTimeReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(OrganizationServer).ChangeTypeItemHistoryData(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: Organization_ChangeTypeItemHistoryData_FullMethodName,
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(OrganizationServer).ChangeTypeItemHistoryData(ctx, req.(*ItemHistoryDataByTimeReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // Organization_ServiceDesc is the grpc.ServiceDesc for Organization service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -436,6 +469,10 @@ var Organization_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "ItemHistoryDataFirstLastByTime",
 			Handler:    _Organization_ItemHistoryDataFirstLastByTime_Handler,
 		},
+		{
+			MethodName: "ChangeTypeItemHistoryData",
+			Handler:    _Organization_ChangeTypeItemHistoryData_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "organization.proto",