Browse Source

从账户中心更新企业信息时,同步注册时间

dongbw 7 years ago
parent
commit
d9f7ebea6d

+ 1 - 0
src/main/java/com/uas/platform/b2c/common/account/v2/service/impl/EnterpriseServiceImpl.java

@@ -65,6 +65,7 @@ public class EnterpriseServiceImpl implements EnterpriseService {
         if (!StringUtils.isEmpty(userSpaceView.getAccessSecret())) {
             enterprise.setAccessSecret(userSpaceView.getAccessSecret());
         }
+        enterprise.setEnDate(new Date(userSpaceView.getRegisterDate()));
         enterprise.setEnAddress(userSpaceView.getRegAddress());
         enterprise.setEnCorporation(userSpaceView.getCorporation());
         enterprise.setEnBussinessCode(userSpaceView.getBusinessCode());

+ 1 - 0
src/main/java/com/uas/platform/b2c/trade/vendor/service/impl/VendorIntroductionServiceImpl.java

@@ -440,6 +440,7 @@ public class VendorIntroductionServiceImpl implements VendorIntroductionService
 		String rownumSql = ") s order by isStore desc,score desc limit " + (page - 1) * size + "," + size ;
 		vendorIntroductionUusSql.append("select s.*, if( st_uuid is not null and st_status = 'OPENED', 1, null) isStore from (")
                 .append(enterpriseSql).append(rownumSql);
+		System.out.println(vendorIntroductionUusSql.toString());
 		return commonDao.query(vendorIntroductionUusSql.toString(), VendorIntroduction.class);
 	}