|
|
@ -219,7 +219,7 @@ func (e *EvaluationInterface) AdditionAndSubtractionScore(c *gin.Context) { |
|
|
// flowSteping.AddTime = time.Now().Unix()
|
|
|
// flowSteping.AddTime = time.Now().Unix()
|
|
|
// flowStepAryMaps = append(flowStepAryMaps, flowSteping)
|
|
|
// flowStepAryMaps = append(flowStepAryMaps, flowSteping)
|
|
|
|
|
|
|
|
|
// fmt.Printf("%v------------------>%v\n", flowSteping, flowStepAryMaps)
|
|
|
// //fmt.Printf("%v------------------>%v\n", flowSteping, flowStepAryMaps)
|
|
|
|
|
|
|
|
|
// evalProCont.OrderKey = keyNumber
|
|
|
// evalProCont.OrderKey = keyNumber
|
|
|
// evalProCont.Step = 1
|
|
|
// evalProCont.Step = 1
|
|
|
@ -230,7 +230,7 @@ func (e *EvaluationInterface) AdditionAndSubtractionScore(c *gin.Context) { |
|
|
// if flowStepErr == nil {
|
|
|
// if flowStepErr == nil {
|
|
|
// evalProCont.Content = string(flowStepJson)
|
|
|
// evalProCont.Content = string(flowStepJson)
|
|
|
// }
|
|
|
// }
|
|
|
// // fmt.Printf("------------------>%v\n", evalProCont)
|
|
|
// // //fmt.Printf("------------------>%v\n", evalProCont)
|
|
|
// global.GVA_DB_Performanceappraisal.Create(&evalProCont)
|
|
|
// global.GVA_DB_Performanceappraisal.Create(&evalProCont)
|
|
|
// } else {
|
|
|
// } else {
|
|
|
// var flowStepAry []FlowStep
|
|
|
// var flowStepAry []FlowStep
|
|
|
@ -260,7 +260,7 @@ func (e *EvaluationInterface) AdditionAndSubtractionScore(c *gin.Context) { |
|
|
// saveData["ep_cont"] = string(flowStepJson)
|
|
|
// saveData["ep_cont"] = string(flowStepJson)
|
|
|
// }
|
|
|
// }
|
|
|
// EiteDutiesInfoes(evalProCont.Id, saveData)
|
|
|
// EiteDutiesInfoes(evalProCont.Id, saveData)
|
|
|
// fmt.Printf("----------3-------->%v\n", evalProCont)
|
|
|
// //fmt.Printf("----------3-------->%v\n", evalProCont)
|
|
|
// }
|
|
|
// }
|
|
|
//给相关部门内勤发送消息。确定相关责任人
|
|
|
//给相关部门内勤发送消息。确定相关责任人
|
|
|
sendUserIsTrue, sendUserList := commonus.GetSendMsgUser(16118387069540343, programme.AcceptEvaluation) //获取对应部门内勤
|
|
|
sendUserIsTrue, sendUserList := commonus.GetSendMsgUser(16118387069540343, programme.AcceptEvaluation) //获取对应部门内勤
|
|
|
@ -447,7 +447,7 @@ func (e *EvaluationInterface) AddDivisionResponsibility(c *gin.Context) { |
|
|
keyNumber := commonus.GetFileNumberEs() |
|
|
keyNumber := commonus.GetFileNumberEs() |
|
|
var evalProCont assessmentmodel.EvaluationProcess |
|
|
var evalProCont assessmentmodel.EvaluationProcess |
|
|
judgeErr := global.GVA_DB_Performanceappraisal.Where("`ep_order_key` = ?", orderId).First(&evalProCont).Error |
|
|
judgeErr := global.GVA_DB_Performanceappraisal.Where("`ep_order_key` = ?", orderId).First(&evalProCont).Error |
|
|
// fmt.Printf("VVVVVVVVVVVVVVVVVVVVVVVVV%v\n", judgeErr)
|
|
|
// //fmt.Printf("VVVVVVVVVVVVVVVVVVVVVVVVV%v\n", judgeErr)
|
|
|
if judgeErr != nil { |
|
|
if judgeErr != nil { |
|
|
var flowStepAry []FlowStep |
|
|
var flowStepAry []FlowStep |
|
|
var flowStep FlowStep |
|
|
var flowStep FlowStep |
|
|
@ -470,7 +470,7 @@ func (e *EvaluationInterface) AddDivisionResponsibility(c *gin.Context) { |
|
|
evalProCont.Content = string(flowStepJson) |
|
|
evalProCont.Content = string(flowStepJson) |
|
|
} |
|
|
} |
|
|
global.GVA_DB_Performanceappraisal.Create(&evalProCont) |
|
|
global.GVA_DB_Performanceappraisal.Create(&evalProCont) |
|
|
// fmt.Printf("VVVVV--->%v\n", jsh)
|
|
|
// //fmt.Printf("VVVVV--->%v\n", jsh)
|
|
|
} else { |
|
|
} else { |
|
|
var flowStepAry []FlowStep |
|
|
var flowStepAry []FlowStep |
|
|
var flowStepArys []FlowStep |
|
|
var flowStepArys []FlowStep |
|
|
@ -965,8 +965,9 @@ func (e *EvaluationInterface) AddFlowRationLog(c *gin.Context) { |
|
|
var flowDataLogAry []assessmentmodel.FlowLogData |
|
|
var flowDataLogAry []assessmentmodel.FlowLogData |
|
|
var reason string |
|
|
var reason string |
|
|
var evaluationPlan []string //方案ID
|
|
|
var evaluationPlan []string //方案ID
|
|
|
jsonMapStr, _ := json.Marshal(requestData.List) |
|
|
// jsonMapStr, _ := json.Marshal(requestData.List)
|
|
|
fmt.Printf("OutJsonMap-----1------>%\n", string(jsonMapStr)) |
|
|
json.Marshal(requestData.List) |
|
|
|
|
|
//fmt.Printf("OutJsonMap-----1------>%\n", string(jsonMapStr))
|
|
|
for i, v := range requestData.List { |
|
|
for i, v := range requestData.List { |
|
|
var flowDataLog assessmentmodel.FlowLogData |
|
|
var flowDataLog assessmentmodel.FlowLogData |
|
|
evaluationPlan = append(evaluationPlan, v.Id) |
|
|
evaluationPlan = append(evaluationPlan, v.Id) |
|
|
@ -1009,7 +1010,7 @@ func (e *EvaluationInterface) AddFlowRationLog(c *gin.Context) { |
|
|
|
|
|
|
|
|
addFlowLogErr := gromDb.Create(&flowLog).Error |
|
|
addFlowLogErr := gromDb.Create(&flowLog).Error |
|
|
addFlowLogDataErr := gromDb.Create(&flowDataLogAry).Error |
|
|
addFlowLogDataErr := gromDb.Create(&flowDataLogAry).Error |
|
|
fmt.Printf("%v---------------------->%v\n", addFlowLogErr, addFlowLogDataErr) |
|
|
//fmt.Printf("%v---------------------->%v\n", addFlowLogErr, addFlowLogDataErr)
|
|
|
if addFlowLogErr == nil && addFlowLogDataErr == nil { |
|
|
if addFlowLogErr == nil && addFlowLogDataErr == nil { |
|
|
affairDbErr := gromDb.Commit().Error |
|
|
affairDbErr := gromDb.Commit().Error |
|
|
if affairDbErr == nil { |
|
|
if affairDbErr == nil { |
|
|
@ -1044,9 +1045,10 @@ func (e *EvaluationInterface) AddFlowRationLog(c *gin.Context) { |
|
|
buttonCont.Key = fmt.Sprintf("ration_%v_2", keyNumber) |
|
|
buttonCont.Key = fmt.Sprintf("ration_%v_2", keyNumber) |
|
|
buttonMap = append(buttonMap, buttonCont) |
|
|
buttonMap = append(buttonMap, buttonCont) |
|
|
|
|
|
|
|
|
callbakcMsg, isTrueCall, callBackCont, sendText := sendmessage.SendButtonPublicRation(sendUserList, mainTitle, mainTitleDesc, subtitle, reason, departmentId, userKey, keyNumber, keyNumber, buttonMap) |
|
|
// callbakcMsg, isTrueCall, callBackCont, sendText := sendmessage.SendButtonPublicRation(sendUserList, mainTitle, mainTitleDesc, subtitle, reason, departmentId, userKey, keyNumber, keyNumber, buttonMap)
|
|
|
|
|
|
sendmessage.SendButtonPublicRation(sendUserList, mainTitle, mainTitleDesc, subtitle, reason, departmentId, userKey, keyNumber, keyNumber, buttonMap) |
|
|
|
|
|
|
|
|
fmt.Printf("1、更新发送信息返回:%v-----------%v----------->%v-----%v\n", string(callbakcMsg), isTrueCall, callBackCont, sendText) |
|
|
//fmt.Printf("1、更新发送信息返回:%v-----------%v----------->%v-----%v\n", string(callbakcMsg), isTrueCall, callBackCont, sendText)
|
|
|
|
|
|
|
|
|
response.Result(0, affairDbErr, "数据写入成功!", c) |
|
|
response.Result(0, affairDbErr, "数据写入成功!", c) |
|
|
} else { |
|
|
} else { |
|
|
@ -1082,27 +1084,27 @@ func (e *EvaluationInterface) LookDutkScoreFlow(c *gin.Context) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
var titleVal string = "" |
|
|
var titleVal string = "" |
|
|
fmt.Printf("1-------------------->\n") |
|
|
//fmt.Printf("1-------------------->\n")
|
|
|
var addScore assessmentmodel.ScoreFlow |
|
|
var addScore assessmentmodel.ScoreFlow |
|
|
gerErr := global.GVA_DB_Performanceappraisal.Where("`sf_key` = ?", requestData.Id).Find(&addScore).Error |
|
|
gerErr := global.GVA_DB_Performanceappraisal.Where("`sf_key` = ?", requestData.Id).Find(&addScore).Error |
|
|
fmt.Printf("2-------------------->%v\n", gerErr) |
|
|
//fmt.Printf("2-------------------->%v\n", gerErr)
|
|
|
if gerErr != nil { |
|
|
if gerErr != nil { |
|
|
response.Result(103, gerErr, "没有此审批单!", c) |
|
|
response.Result(103, gerErr, "没有此审批单!", c) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
fmt.Printf("3-------------------->%v\n", gerErr) |
|
|
//fmt.Printf("3-------------------->%v\n", gerErr)
|
|
|
// return
|
|
|
// return
|
|
|
//获取方案
|
|
|
//获取方案
|
|
|
qualEvalCont, qualEvalErr := commonus.GetQualitativeEvaluation(strconv.FormatInt(addScore.EvaluationPlan, 10)) |
|
|
qualEvalCont, qualEvalErr := commonus.GetQualitativeEvaluation(strconv.FormatInt(addScore.EvaluationPlan, 10)) |
|
|
fmt.Printf("4-------------------->%v\n", addScore.EvaluationPlan) |
|
|
//fmt.Printf("4-------------------->%v\n", addScore.EvaluationPlan)
|
|
|
if qualEvalErr != true { |
|
|
if qualEvalErr != true { |
|
|
response.Result(103, qualEvalErr, "没有此方案!", c) |
|
|
response.Result(103, qualEvalErr, "没有此方案!", c) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
fmt.Printf("5-------------------->%v\n", qualEvalErr) |
|
|
//fmt.Printf("5-------------------->%v\n", qualEvalErr)
|
|
|
var dutyCecorFlowInfo DutyCecorFlow |
|
|
var dutyCecorFlowInfo DutyCecorFlow |
|
|
dutyCecorFlowInfo.OrderId = strconv.FormatInt(requestData.Id, 10) |
|
|
dutyCecorFlowInfo.OrderId = strconv.FormatInt(requestData.Id, 10) |
|
|
fmt.Printf("6-------------------->%v\n", requestData.Id) |
|
|
//fmt.Printf("6-------------------->%v\n", requestData.Id)
|
|
|
if qualEvalCont.Dimension != 0 { |
|
|
if qualEvalCont.Dimension != 0 { |
|
|
dimInfo, dimInfoErr := commonus.GetDutyClassInfo(qualEvalCont.Dimension) |
|
|
dimInfo, dimInfoErr := commonus.GetDutyClassInfo(qualEvalCont.Dimension) |
|
|
if dimInfoErr == true { |
|
|
if dimInfoErr == true { |
|
|
@ -1125,23 +1127,46 @@ func (e *EvaluationInterface) LookDutkScoreFlow(c *gin.Context) { |
|
|
// titleVal = tarsun.Title
|
|
|
// titleVal = tarsun.Title
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//单位划分
|
|
|
|
|
|
var danWeStr string |
|
|
if qualEvalCont.DetailedTarget != 0 { |
|
|
if qualEvalCont.DetailedTarget != 0 { |
|
|
detaTar, detaTarErr := commonus.GetDetailedTargetInfo(qualEvalCont.DetailedTarget) |
|
|
detaTar, detaTarErr := commonus.GetDetailedTargetInfo(qualEvalCont.DetailedTarget) |
|
|
if detaTarErr == true { |
|
|
if detaTarErr == true { |
|
|
|
|
|
var danWeStrAry []string |
|
|
|
|
|
danWeStrAry = strings.Split(detaTar.Company, "/") |
|
|
|
|
|
if len(danWeStrAry) > 0 { |
|
|
|
|
|
danWeStr = danWeStrAry[0] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
dutyCecorFlowInfo.DetailedTarget = detaTar.Title |
|
|
dutyCecorFlowInfo.DetailedTarget = detaTar.Title |
|
|
dutyCecorFlowInfo.Content = detaTar.Content |
|
|
dutyCecorFlowInfo.Content = detaTar.Content |
|
|
// titleVal = detaTar.Title
|
|
|
// titleVal = detaTar.Title
|
|
|
|
|
|
if detaTar.MaxScore != 0 && detaTar.MinScore != 0 { |
|
|
|
|
|
dutyCecorFlowInfo.Content = fmt.Sprintf("%v-%v%v", float64(detaTar.MinScore)/100, float64(detaTar.MaxScore)/100, detaTar.Company) |
|
|
|
|
|
} else if detaTar.MaxScore != 0 && detaTar.MinScore == 0 { |
|
|
|
|
|
dutyCecorFlowInfo.Content = fmt.Sprintf("%v%v", float64(detaTar.MaxScore)/100, detaTar.Company) |
|
|
|
|
|
} else if detaTar.MaxScore == 0 && detaTar.MinScore != 0 { |
|
|
|
|
|
dutyCecorFlowInfo.Content = fmt.Sprintf("%v%v", float64(detaTar.MinScore)/100, detaTar.Company) |
|
|
|
|
|
} else { |
|
|
|
|
|
dutyCecorFlowInfo.Content = "未设置标准。" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
fmt.Printf("7-------------------->%v\n", requestData.Id) |
|
|
fmt.Printf("7-------------------->%v\n", danWeStr) |
|
|
dutyCecorFlowInfo.Reason = addScore.Reason |
|
|
dutyCecorFlowInfo.Reason = addScore.Reason |
|
|
|
|
|
|
|
|
//分数
|
|
|
//分数
|
|
|
sendScore := addScore.Score * int64(addScore.Count) |
|
|
sendScore := addScore.Score * int64(addScore.Count) |
|
|
if addScore.PlusReduceScore == 1 { |
|
|
if addScore.PlusReduceScore == 1 { |
|
|
dutyCecorFlowInfo.ReasonInfo = fmt.Sprintf("考核加分:%v\n", float64(sendScore)/100) |
|
|
dutyCecorFlowInfo.LanMuName = "考核加分" |
|
|
|
|
|
// dutyCecorFlowInfo.ReasonInfo = fmt.Sprintf("%v%v\n", float64(sendScore)/100, danWeStr)
|
|
|
|
|
|
dutyCecorFlowInfo.ReasonInfo = fmt.Sprintf("%v\n", float64(sendScore)/100) |
|
|
} else { |
|
|
} else { |
|
|
dutyCecorFlowInfo.ReasonInfo = fmt.Sprintf("考核减分:%v\n", float64(sendScore)/100) |
|
|
dutyCecorFlowInfo.LanMuName = "考核减分" |
|
|
|
|
|
// dutyCecorFlowInfo.ReasonInfo = fmt.Sprintf("考核减%v%v\n", float64(sendScore)/100, danWeStr)
|
|
|
|
|
|
dutyCecorFlowInfo.ReasonInfo = fmt.Sprintf("%v\n", float64(sendScore)/100) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// if addScore.PlusReduceScore == 1 {
|
|
|
// if addScore.PlusReduceScore == 1 {
|
|
|
@ -1149,15 +1174,15 @@ func (e *EvaluationInterface) LookDutkScoreFlow(c *gin.Context) { |
|
|
// } else {
|
|
|
// } else {
|
|
|
// dutyCecorFlowInfo.ReasonInfo = "扣除:" + strconv.FormatInt(addScore.Score, 10) + qualEvalCont.Unit
|
|
|
// dutyCecorFlowInfo.ReasonInfo = "扣除:" + strconv.FormatInt(addScore.Score, 10) + qualEvalCont.Unit
|
|
|
// }
|
|
|
// }
|
|
|
fmt.Printf("8-------------------->%v\n", requestData.Id) |
|
|
//fmt.Printf("8-------------------->%v\n", requestData.Id)
|
|
|
if addScore.Rectification == 1 { |
|
|
if addScore.Rectification == 1 { |
|
|
var divisionResponsibilities []assessmentmodel.DivisionResponsibilities |
|
|
var divisionResponsibilities []assessmentmodel.DivisionResponsibilities |
|
|
dRBerr := global.GVA_DB_Performanceappraisal.Where("df_sf_id = ?", requestData.Id).Find(&divisionResponsibilities).Error |
|
|
dRBerr := global.GVA_DB_Performanceappraisal.Where("df_sf_id = ?", requestData.Id).Find(&divisionResponsibilities).Error |
|
|
fmt.Printf("8-------1------------->%v\n", divisionResponsibilities) |
|
|
//fmt.Printf("8-------1------------->%v\n", divisionResponsibilities)
|
|
|
if dRBerr == nil { |
|
|
if dRBerr == nil { |
|
|
|
|
|
|
|
|
for _, d_v := range divisionResponsibilities { |
|
|
for _, d_v := range divisionResponsibilities { |
|
|
fmt.Printf("8-------2------------->%v\n", d_v.UserKey) |
|
|
//fmt.Printf("8-------2------------->%v\n", d_v.UserKey)
|
|
|
var divBilInfo DivisiosibilityType |
|
|
var divBilInfo DivisiosibilityType |
|
|
switch d_v.Type { |
|
|
switch d_v.Type { |
|
|
case 1: |
|
|
case 1: |
|
|
@ -1181,8 +1206,9 @@ func (e *EvaluationInterface) LookDutkScoreFlow(c *gin.Context) { |
|
|
if userInfoGetErr == true { |
|
|
if userInfoGetErr == true { |
|
|
divBilInfo.UserName = userInfoGet.Name |
|
|
divBilInfo.UserName = userInfoGet.Name |
|
|
} |
|
|
} |
|
|
fmt.Printf("8-------1-3------------>%v\n", userInfoGet) |
|
|
//fmt.Printf("8-------1-3------------>%v\n", userInfoGet)
|
|
|
divBilInfo.Weight = int64(d_v.Weight) |
|
|
// divBilInfo.Weight = int64(d_v.Weight)
|
|
|
|
|
|
divBilInfo.Weight = d_v.Weight / 100 |
|
|
dutyCecorFlowInfo.DivisionResponsibility = append(dutyCecorFlowInfo.DivisionResponsibility, divBilInfo) |
|
|
dutyCecorFlowInfo.DivisionResponsibility = append(dutyCecorFlowInfo.DivisionResponsibility, divBilInfo) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -1204,36 +1230,36 @@ func (e *EvaluationInterface) LookDutkScoreFlow(c *gin.Context) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
fmt.Printf("9-------------------->%v\n", requestData.Id) |
|
|
//fmt.Printf("9-------------------->%v\n", requestData.Id)
|
|
|
var evalProInfo assessmentmodel.EvaluationProcess |
|
|
var evalProInfo assessmentmodel.EvaluationProcess |
|
|
gerEvalErr := global.GVA_DB_Performanceappraisal.Where("`ep_order_key` = ?", requestData.Id).Find(&evalProInfo).Error |
|
|
gerEvalErr := global.GVA_DB_Performanceappraisal.Where("`ep_order_key` = ?", requestData.Id).Find(&evalProInfo).Error |
|
|
fmt.Printf("9-----------1--------->%v\n", gerEvalErr) |
|
|
//fmt.Printf("9-----------1--------->%v\n", gerEvalErr)
|
|
|
if gerEvalErr == nil { |
|
|
if gerEvalErr == nil { |
|
|
var flowStepAryMaps []FlowStep |
|
|
var flowStepAryMaps []FlowStep |
|
|
jsonFlowErr := json.Unmarshal([]byte(evalProInfo.Content), &flowStepAryMaps) |
|
|
jsonFlowErr := json.Unmarshal([]byte(evalProInfo.Content), &flowStepAryMaps) |
|
|
fmt.Printf("9-----------2--------->%v\n", flowStepAryMaps) |
|
|
//fmt.Printf("9-----------2--------->%v\n", flowStepAryMaps)
|
|
|
if jsonFlowErr == nil { |
|
|
if jsonFlowErr == nil { |
|
|
fmt.Printf("9-----------3--------->%v\n", flowStepAryMaps) |
|
|
//fmt.Printf("9-----------3--------->%v\n", flowStepAryMaps)
|
|
|
if len(flowStepAryMaps) > 0 { |
|
|
if len(flowStepAryMaps) > 0 { |
|
|
for _, fw_v := range flowStepAryMaps { |
|
|
for _, fw_v := range flowStepAryMaps { |
|
|
var flowLog TechnologicalProcessType |
|
|
var flowLog TechnologicalProcessType |
|
|
flowLog.Step = fw_v.Step |
|
|
flowLog.Step = fw_v.Step |
|
|
flowLog.State = fw_v.State |
|
|
flowLog.State = fw_v.State |
|
|
workUser, workUserErr := commonus.GetWorkUser(fw_v.ClickName) |
|
|
workUser, workUserErr := commonus.GetWorkUser(fw_v.ClickName) |
|
|
fmt.Printf("9-----------4-----2---->%v\n", fw_v) |
|
|
//fmt.Printf("9-----------4-----2---->%v\n", fw_v)
|
|
|
if workUserErr == true { |
|
|
if workUserErr == true { |
|
|
fmt.Printf("9-----------4-----1---->%v\n", workUserErr) |
|
|
//fmt.Printf("9-----------4-----1---->%v\n", workUserErr)
|
|
|
bfErr, bf := commonus.GetBranchFactory(workUser.DepartmentId) |
|
|
bfErr, bf := commonus.GetBranchFactory(workUser.DepartmentId) |
|
|
fmt.Printf("9-----------4-----3---->%v\n", bfErr) |
|
|
//fmt.Printf("9-----------4-----3---->%v\n", bfErr)
|
|
|
if bfErr == true { |
|
|
if bfErr == true { |
|
|
getGroupRoleInfoErr, getGroupRoleInfo, roleGroupInfo := commonus.GetOfficeWork(fw_v.RoleGroup, int64(bf.WechatId)) |
|
|
getGroupRoleInfoErr, getGroupRoleInfo, roleGroupInfo := commonus.GetOfficeWork(fw_v.RoleGroup, int64(bf.WechatId)) |
|
|
fmt.Printf("9-----------4-----5---->%v---->%v---->%v\n", getGroupRoleInfoErr, getGroupRoleInfo, roleGroupInfo) |
|
|
//fmt.Printf("9-----------4-----5---->%v---->%v---->%v\n", getGroupRoleInfoErr, getGroupRoleInfo, roleGroupInfo)
|
|
|
if getGroupRoleInfoErr == true { |
|
|
if getGroupRoleInfoErr == true { |
|
|
flowLog.GroupName = roleGroupInfo.Title |
|
|
flowLog.GroupName = roleGroupInfo.Title |
|
|
|
|
|
|
|
|
for _, rg_v := range getGroupRoleInfo { |
|
|
for _, rg_v := range getGroupRoleInfo { |
|
|
clickUserInfoErr, clickUserInfo := commonus.GetUesrContForWechatID(rg_v.Id) |
|
|
clickUserInfoErr, clickUserInfo := commonus.GetUesrContForWechatID(rg_v.Id) |
|
|
fmt.Printf("9-----------4--------->%v\n", clickUserInfoErr) |
|
|
//fmt.Printf("9-----------4--------->%v\n", clickUserInfoErr)
|
|
|
var caoZuoRenInfnfo caoZuoRen |
|
|
var caoZuoRenInfnfo caoZuoRen |
|
|
if clickUserInfoErr == true { |
|
|
if clickUserInfoErr == true { |
|
|
if strconv.FormatInt(clickUserInfo.Key, 10) == fw_v.ClickName { |
|
|
if strconv.FormatInt(clickUserInfo.Key, 10) == fw_v.ClickName { |
|
|
@ -1329,34 +1355,34 @@ func (d *EvaluationInterface) LookRationkScoreFlow(c *gin.Context) { |
|
|
var flowLogList []TechnologicalProcessType |
|
|
var flowLogList []TechnologicalProcessType |
|
|
var evalProInfo assessmentmodel.EvaluationProcess |
|
|
var evalProInfo assessmentmodel.EvaluationProcess |
|
|
gerEvalErr := global.GVA_DB_Performanceappraisal.Where("`ep_order_key` = ?", requestData.Id).Find(&evalProInfo).Error |
|
|
gerEvalErr := global.GVA_DB_Performanceappraisal.Where("`ep_order_key` = ?", requestData.Id).Find(&evalProInfo).Error |
|
|
fmt.Printf("9-----------1--------->%v\n", gerEvalErr) |
|
|
//fmt.Printf("9-----------1--------->%v\n", gerEvalErr)
|
|
|
if gerEvalErr == nil { |
|
|
if gerEvalErr == nil { |
|
|
var flowStepAryMaps []FlowStep |
|
|
var flowStepAryMaps []FlowStep |
|
|
jsonFlowErr := json.Unmarshal([]byte(evalProInfo.Content), &flowStepAryMaps) |
|
|
jsonFlowErr := json.Unmarshal([]byte(evalProInfo.Content), &flowStepAryMaps) |
|
|
fmt.Printf("9-----------2--------->%v\n", jsonFlowErr) |
|
|
//fmt.Printf("9-----------2--------->%v\n", jsonFlowErr)
|
|
|
if jsonFlowErr == nil { |
|
|
if jsonFlowErr == nil { |
|
|
// fmt.Printf("9-----------3--------->%v\n", flowStepAryMaps)
|
|
|
// //fmt.Printf("9-----------3--------->%v\n", flowStepAryMaps)
|
|
|
if len(flowStepAryMaps) > 0 { |
|
|
if len(flowStepAryMaps) > 0 { |
|
|
for _, fw_v := range flowStepAryMaps { |
|
|
for _, fw_v := range flowStepAryMaps { |
|
|
var flowLog TechnologicalProcessType |
|
|
var flowLog TechnologicalProcessType |
|
|
flowLog.Step = fw_v.Step |
|
|
flowLog.Step = fw_v.Step |
|
|
flowLog.State = fw_v.State |
|
|
flowLog.State = fw_v.State |
|
|
workUser, workUserErr := commonus.GetWorkUser(fw_v.ClickName) |
|
|
workUser, workUserErr := commonus.GetWorkUser(fw_v.ClickName) |
|
|
// fmt.Printf("9-----------4-----2---->%v\n", fw_v)
|
|
|
// //fmt.Printf("9-----------4-----2---->%v\n", fw_v)
|
|
|
if workUserErr == true { |
|
|
if workUserErr == true { |
|
|
// fmt.Printf("9-----------4-----1---->%v\n", workUserErr)
|
|
|
// //fmt.Printf("9-----------4-----1---->%v\n", workUserErr)
|
|
|
bfErr, bf := commonus.GetBranchFactory(workUser.DepartmentId) |
|
|
bfErr, bf := commonus.GetBranchFactory(workUser.DepartmentId) |
|
|
// fmt.Printf("9-----------4-----3---->%v\n", bfErr)
|
|
|
// //fmt.Printf("9-----------4-----3---->%v\n", bfErr)
|
|
|
if bfErr == true { |
|
|
if bfErr == true { |
|
|
getGroupRoleInfoErr, getGroupRoleInfo, roleGroupInfo := commonus.GetOfficeWork(fw_v.RoleGroup, int64(bf.WechatId)) |
|
|
getGroupRoleInfoErr, getGroupRoleInfo, roleGroupInfo := commonus.GetOfficeWork(fw_v.RoleGroup, int64(bf.WechatId)) |
|
|
// fmt.Printf("9-----------4-----5---->%v---->%v---->%v\n", getGroupRoleInfoErr, getGroupRoleInfo, roleGroupInfo)
|
|
|
// //fmt.Printf("9-----------4-----5---->%v---->%v---->%v\n", getGroupRoleInfoErr, getGroupRoleInfo, roleGroupInfo)
|
|
|
if getGroupRoleInfoErr == true { |
|
|
if getGroupRoleInfoErr == true { |
|
|
flowLog.GroupName = roleGroupInfo.Title |
|
|
flowLog.GroupName = roleGroupInfo.Title |
|
|
|
|
|
|
|
|
for _, rg_v := range getGroupRoleInfo { |
|
|
for _, rg_v := range getGroupRoleInfo { |
|
|
clickUserInfoErr, clickUserInfo := commonus.GetUesrContForWechatID(rg_v.Id) |
|
|
clickUserInfoErr, clickUserInfo := commonus.GetUesrContForWechatID(rg_v.Id) |
|
|
// jjsk, _ := json.Marshal(clickUserInfo)
|
|
|
// jjsk, _ := json.Marshal(clickUserInfo)
|
|
|
// fmt.Printf("9-----------4--------->%v-->%v\n", string(jjsk), clickUserInfo.Key)
|
|
|
// //fmt.Printf("9-----------4--------->%v-->%v\n", string(jjsk), clickUserInfo.Key)
|
|
|
var caoZuoRenInfnfo caoZuoRen |
|
|
var caoZuoRenInfnfo caoZuoRen |
|
|
if clickUserInfoErr == true { |
|
|
if clickUserInfoErr == true { |
|
|
if strconv.FormatInt(clickUserInfo.Key, 10) == fw_v.ClickName { |
|
|
if strconv.FormatInt(clickUserInfo.Key, 10) == fw_v.ClickName { |
|
|
|