Przeglądaj źródła

增加行政区域功能

zhouhao 7 lat temu
rodzic
commit
c81db7a582

+ 30 - 0
hsweb-system/hsweb-system-organizational/hsweb-system-organizational-service/hsweb-system-organizational-service-simple/src/main/java/org/hswebframework/web/service/organizational/simple/SimpleDistrictService.java

@@ -0,0 +1,30 @@
+package org.hswebframework.web.service.organizational.simple;
+
+import org.hswebframework.web.dao.organizational.DistrictDao;
+import org.hswebframework.web.entity.organizational.DistrictEntity;
+import org.hswebframework.web.service.GenericEntityService;
+import org.hswebframework.web.id.IDGenerator;
+import org.hswebframework.web.service.organizational.DistrictService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * 默认的服务实现
+ *
+ * @author hsweb-generator-online
+ */
+@Service("districtService")
+public class SimpleDistrictService extends GenericEntityService<DistrictEntity, String>
+        implements DistrictService {
+    @Autowired
+    private DistrictDao districtDao;
+   @Override
+    protected IDGenerator<String> getIDGenerator() {
+        return IDGenerator.MD5;
+    }
+    @Override
+    public DistrictDao getDao() {
+        return districtDao;
+    }
+
+}