作者 yangfu

修改 机会详情自查内容

... ... @@ -548,15 +548,14 @@ func GetChanceType(chanceTypeId int) protocol.NameItem {
func GetChanceSelfChecks(chanceInfo *models.Chance) []protocol.SelfCheck {
var selfChecks []protocol.SelfCheck = make([]protocol.SelfCheck, 0)
switch chanceInfo.CheckResultStatus {
case protocol.None: //未提交筛查结果
case protocol.None: //未提交筛查结果/未被后台审核过
fallthrough
case protocol.Waiting:
utils.JsonUnmarshal(chanceInfo.SelfChecks, &selfChecks)
if len(selfChecks) != 0 {
protocol.SelfChecks(selfChecks).SetSelfChecksLevel1ByRule()
}
break
case protocol.Waiting: //未通过审核的返回所有筛查结果(一级/二级)
utils.JsonUnmarshal(chanceInfo.CheckResult, &selfChecks)
break
default: //审核通过/不通过只显示一级
utils.JsonUnmarshal(chanceInfo.CheckResult, &selfChecks)
var lv1List []protocol.SelfCheck
... ...