SJA APS后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
518 B

  1. package service
  2. import (
  3. "strconv"
  4. "strings"
  5. )
  6. // 验证错误
  7. type BL_VerifyError struct {
  8. Errortype int // 错误类型
  9. Partid string
  10. Supplygroupid string
  11. Partfamilyid string
  12. Attrcode int // 属性ID
  13. Errorinfo string // 错误信息
  14. }
  15. func (bl_verr *BL_VerifyError) GetDictKey() (key string) {
  16. key = strconv.Itoa(bl_verr.Attrcode) + "-" + strings.TrimSpace(bl_verr.Partfamilyid) + "-" + strings.TrimSpace(bl_verr.Supplygroupid) + "-" + strings.TrimSpace(bl_verr.Partid)
  17. return
  18. }