package com.engine.htsc.lhcd.Service.impl;

import cn.hutool.core.date.DateUtil;
import com.engine.core.impl.Service;
import com.engine.htsc.lhcd.Service.LhcdDelaytriggerService;
import com.engine.htsc.lhcd.model.Uf_cdzhcflc;
import weaver.general.Util;
import weaver.interfaces.htsc.GlobatTools.TableModelUtil;

import java.util.Map;


/**
 * @author xf
 * @version 1.0.0
 * @ClassName LhcdDelaytriggerServiceimpl.java
 * @createTime 2021年12月28日 15:44:00
 */
public class LhcdDelaytriggerServiceimpl extends Service implements LhcdDelaytriggerService {

    @Override
    public void innermodel(Map<String, Object> map) {
      String requestid= Util.null2String(map.get("requestid"));
      if("".equals(requestid)){
          return ;
      }
      Uf_cdzhcflc uf_cdzhcflc=new Uf_cdzhcflc();
      uf_cdzhcflc.setLcmc(requestid);
      String cfrq= DateUtil.format(DateUtil.nextMonth(),"yyyy-MM-dd");

      uf_cdzhcflc.setCfrq(cfrq);
      uf_cdzhcflc.setSfys("1");
      try {
          TableModelUtil.createtable(uf_cdzhcflc);
      }catch (Exception exo){

      }
    }
}
