|
@@ -78,6 +78,7 @@ func (s *contractService) SetSection() error {
|
|
|
section.Serial = item.Serial
|
|
|
section.Attribution = item.Attribution
|
|
|
section.Code = fmt.Sprintf("%s%d", item.Attribution, item.Serial)
|
|
|
+ section.Code2 = item.Code2
|
|
|
section.CreateTime = time.Now()
|
|
|
|
|
|
// err := s.treeContractDao.Create(section)
|
|
@@ -147,6 +148,7 @@ func (s *contractService) ContractSectionAdd(sectionData *viewmodels.TreeSection
|
|
|
sectionCM.ParentId = sectionFather.TreeId
|
|
|
sectionCM.Name = sectionData.Name
|
|
|
sectionCM.Depth = sectionFather.Depth + 1
|
|
|
+ sectionCM.Code2 = sectionData.Code2
|
|
|
sectionCM.Serial = serial
|
|
|
sectionCM.Attribution = attribution
|
|
|
sectionCM.Code = code
|
|
@@ -202,6 +204,7 @@ func (s *contractService) SectionAdd(sectionData *viewmodels.TreeSectionContract
|
|
|
sectionCM.Serial = serial
|
|
|
sectionCM.Attribution = attribution
|
|
|
sectionCM.Code = code
|
|
|
+ sectionCM.Code2 = sectionData.Code2
|
|
|
|
|
|
data, err := s.treeContractDao.Create(sectionCM)
|
|
|
if err != nil {
|