diff --git a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/service/ServiceImpl.ftl b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/service/ServiceImpl.ftl index 31bb997..d19ca4b 100644 --- a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/service/ServiceImpl.ftl +++ b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/service/ServiceImpl.ftl @@ -151,13 +151,13 @@ public class ${firstUpperTableName}ServiceImpl extends BaseService implements I$ } @Override - Integer countNumber${firstUpperTableName}(Map params) throws SearchException { + public Integer countNumber${firstUpperTableName}(Map params) throws SearchException { Integer count = ${firstLowerTableName}Dao.count${firstUpperTableName}(params); return count == null ? 0 : count; } @Override - SuccessResultData count${firstUpperTableName}(Map params) throws SearchException { + public SuccessResultData count${firstUpperTableName}(Map params) throws SearchException { return new SuccessResultData<>(countNumber${firstUpperTableName}(params)); }