wushunjie
杜函宇 8 months ago
parent ab6b365e51
commit 2f8565b262

@ -68,6 +68,10 @@ public class JSmartRemindersServiceImpl extends ServiceImpl<JSmartRemindersMappe
if (jSmartReminders.getAlertManner() == 2) {
throw new ServiceException("不可新增不定期提醒!");
}
LocalDateTime nt = LocalDateTime.now().plusMinutes(5);
if(jSmartRemindersDq.getAlertTime().isBefore(nt)){
throw new ServiceException("提醒时间必须在当前时间5分钟后!");
}
save(jSmartReminders);
updateAndAdd(jSmartReminders, true);
return jSmartReminders.getId();

@ -59,6 +59,7 @@
FROM j_smart_reminders a
left JOIN j_project b on a.project_id = b.id
where a.alert_type = 4 and NOW() > a.alert_time
order by a.alert_time desc
</select>
<select id="servicesDevelop" resultType="com.ruoyi.jjh.ent.entity.response.JServicesDevelopResponse">
SELECT

@ -62,6 +62,7 @@
and a.status != 5
</if>
</where>
order by create_time desc
</select>
<select id="usualFund" resultType="com.ruoyi.jjh.ent.entity.response.JProjectFundResponse">
SELECT
@ -71,8 +72,7 @@
a.tyshxydm,
a.project_name,
a.appropriation_time,
IF
( a.project_name = '区级总部' || a.project_name = '市级服务业领军', b.project_big_type, NULL ) AS projectBigType
MAX(IF(a.project_name = '区级总部' OR a.project_name = '市级服务业领军', b.project_big_type, NULL)) AS projectBigType
FROM
j_project_fund a
LEFT JOIN j_project b ON a.tyshxydm = b.credit_code

Loading…
Cancel
Save