Commit c496db47 authored by weixin_42327055's avatar weixin_42327055

默认上报时间

parent b54a04f8
package com.zehong.system.service.impl;
import java.sql.Time;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -52,6 +54,9 @@ public class TBreakRulesPersonRecordServiceImpl implements ITBreakRulesPersonRec
@Override
public int insertTBreakRulesPersonRecord(TBreakRulesPersonRecord tBreakRulesPersonRecord)
{
if(tBreakRulesPersonRecord.getReportTime()==null){
tBreakRulesPersonRecord.setReportTime(new Date());
}
return tBreakRulesPersonRecordMapper.insertTBreakRulesPersonRecord(tBreakRulesPersonRecord);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment