|
@@ -16,10 +16,10 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.util.CollectionUtils;
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
+import org.springframework.util.SimpleIdGenerator;
|
|
|
|
|
|
-import java.util.HashMap;
|
|
|
|
-import java.util.List;
|
|
|
|
-import java.util.Map;
|
|
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -176,6 +176,26 @@ public class SettledCompanyDynamicsServiceImpl extends ServiceImpl<SettledCompan
|
|
return settledCompanyDynamics;
|
|
return settledCompanyDynamics;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 查看当天发布条数
|
|
|
|
+ * @param phone
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public Integer count(String phone) {
|
|
|
|
+ //当天零点
|
|
|
|
+ SimpleDateFormat now = new SimpleDateFormat("yyyy-MM-dd 00:00:00");
|
|
|
|
+ Calendar c = Calendar.getInstance();
|
|
|
|
+ c.setTime(new Date());
|
|
|
|
+ c.add(Calendar.YEAR, 0);
|
|
|
|
+ Date y = c.getTime();
|
|
|
|
+ String year = now.format(y);
|
|
|
|
+ Integer count=this.selectCount(new EntityWrapper<SettledCompanyDynamics>()
|
|
|
|
+ .eq("phone",phone)
|
|
|
|
+ .ge("create_date",year));
|
|
|
|
+ return count;
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 发布动态列表
|
|
* 发布动态列表
|
|
*
|
|
*
|