12345678910111213141516171819202122232425262728293031323334353637 |
- package logic
- import (
- "app.yhyue.com/moapp/jyInfo/rpc/model"
- "app.yhyue.com/moapp/jyInfo/rpc/util"
- "context"
- "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
- model.Mysql.SelectBySql(`UPDATE information SET status = -1 ,review_desc = "机构已冻结" WHERE status IN (0,1,2) and province =1 and is_del = 1 and app_id = ` + util.StrFormat(in.AppId) + ` and ent_id = ` + in.EntId)
- model.Mysql.SelectBySql(`UPDATE supply_info SET status = -1 ,review_desc = "机构已冻结" WHERE status IN (0,1,2) and province =1 and is_del = 1 and app_id = ` + util.StrFormat(in.AppId) + ` and ent_id = ` + in.EntId)
- return &resp, nil
- }
|