package logic import ( "app.yhyue.com/moapp/jyInfo/rpc/model" mc "app.yhyue.com/moapp/jybase/common" "context" "log" "app.yhyue.com/moapp/jyInfo/rpc/manager/internal/svc" "app.yhyue.com/moapp/jyInfo/rpc/manager/type/manager" "github.com/zeromicro/go-zero/core/logx" ) type InstitutionsFreezeLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewInstitutionsFreezeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *InstitutionsFreezeLogic { return &InstitutionsFreezeLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 管理后台机构冻结 func (l *InstitutionsFreezeLogic) InstitutionsFreeze(in *manager.InstitutionsFreezeReq) (*manager.InfoResp, error) { // todo: add your logic here and delete this line var resp manager.InfoResp log.Println("企业冻结管理审批修改接口参数:", in) model.Mysql.SelectBySql(`UPDATE information SET status = -1 ,review_desc = "机构已冻结" WHERE status IN (0,1,2) and published =1 and is_del = 1 and app_id = ` + in.AppId + ` and ent_id = ` + mc.InterfaceToStr(in.EntId)) model.Mysql.SelectBySql(`UPDATE supply_info SET status = -1 ,review_desc = "机构已冻结" WHERE status IN (0,1,2) and published =1 and is_del = 1 and app_id = ` + in.AppId + ` and ent_id = ` + mc.InterfaceToStr(in.EntId)) return &resp, nil }