2
3
lining 6 роки тому
батько
коміт
a425fb7fac

+ 1 - 1
src/dashoo.cn/backend/api/business/tmpzcgf/tmpzcgfSession.go

@@ -152,7 +152,7 @@ func (s *TmpzcgtSession) UpdateSupplierTypeCodeAndInFlag() error {
 
 func (s *TmpzcgtSession) InsterAnnual() error {
 	sql := "INSERT INTO OilAnnualAudit (Status,SupplierTypeName, SupplierName, CreateOn, CreateBy, RecUnitId, ApplyTime, AccessCardNo, OldId) " +
-		"SELECT ( '11' as Status ,CASE 准入类别 WHEN '物资类' THEN '01' WHEN '基建类' THEN '02' WHEN '技术服务类' THEN '03' END ) SupplierTypeName, " +
+		"SELECT '11' as Status ,(CASE 准入类别 WHEN '物资类' THEN '01' WHEN '基建类' THEN '02' WHEN '技术服务类' THEN '03' END ) SupplierTypeName, " +
 		"企业名称 AS SupplierName, 申请日期 AS CreateOn, 录入员 AS CreateBy, 推荐单位编码 AS RecUnitId, 年审日期 AS ApplyTime, 准入证号 AS AccessCardNo, id AS oldId " +
 		"FROM tmp_nianshen"
 

+ 1 - 1
src/dashoo.cn/backend/api/controllers/tmpzcgf/tmpzcgf.go

@@ -547,7 +547,7 @@ func (this *TmpzcgfController) UpdateCertSubIsType1(){
 	svc.GetEntities(&supplierlist, where)
 	for _,item := range supplierlist {
 		fmt.Println(item.SupplierName)
-		where := "where b.Type = '2' and b.ModifiedBy = '" + item.SupplierName + "'"
+		where := "where b.Type = '3' and b.ModifiedBy = '" + item.SupplierName + "'"
 		err = svc.UpdateCertSubIsType2(where)
 		if err != nil {
 			session.Rollback()