Ver código fonte

前端处理期限单位

zhangchenm 6 dias atrás
pai
commit
cda0d81b60

+ 5 - 6
trade-service/src/main/java/com/trade/service/enterprise/companyrelated/service/impl/ImporterEntityServiceImpl.java

@@ -49,12 +49,11 @@ public class ImporterEntityServiceImpl extends ServiceImpl<ImporterEntityMapper,
 
     @Override
     public ImporterEntityVO getVOByEntityId(Long entityId) {
-        ImporterEntityVO entityVO = this.getBaseMapper().getVOByEntityId(entityId);
-        if (entityVO != null) {
-            entityVO.setPeriodToBeApplied(DateUtils.transPeriodUnit(entityVO.getPeriodToBeApplied()));
-            entityVO.setTradingLife(DateUtils.transPeriodUnit(entityVO.getTradingLife()));
-        }
-        return entityVO;
+        //        if (entityVO != null) {
+//            entityVO.setPeriodToBeApplied(DateUtils.transPeriodUnit(entityVO.getPeriodToBeApplied()));
+//            entityVO.setTradingLife(DateUtils.transPeriodUnit(entityVO.getTradingLife()));
+//        }
+        return this.getBaseMapper().getVOByEntityId(entityId);
     }
 
     @Override