Commit 4fa2baba authored by 周健威's avatar 周健威

添加日志接口

parent a1a33a49
......@@ -21,7 +21,10 @@ import org.springframework.format.annotation.DateTimeFormat;
@Table(name = "gaindata_log")
public class GaindataLog implements Serializable {
private static final long serialVersionUID = 1L;
//1001--录入;2211--生产线镶嵌;2212--生产线温度反演;2213--生产线植被覆盖度;2214--生产线植被识别;2215--水体识别;2216--风险等级;2217--病虫害监测
//1001--录入;
//2211--生产线镶嵌;2212--生产线温度反演;2213--生产线植被覆盖度;2214--生产线植被识别;2215--水体识别;2216--风险等级;2217--病虫害监测
//2221--生产线切片;
//2311--AI系统船舶识别;
public static final String TYPE_1001 = "1001";
public static final String TYPE_2211 = "2211";
public static final String TYPE_2212 = "2212";
......@@ -30,6 +33,8 @@ public class GaindataLog implements Serializable {
public static final String TYPE_2215 = "2215";
public static final String TYPE_2216 = "2216";
public static final String TYPE_2217 = "2217";
public static final String TYPE_2221 = "2221";
public static final String TYPE_2311 = "2311";
/**
*
......
......@@ -45,15 +45,19 @@ public class GaindataLogController extends BaseController<GaindataLogBiz,Gaindat
} else if(GaindataLog.TYPE_2212.equals(entity.getType())) {
entity.setContent(StrUtil.format(content, "生产线温度反演"));
} else if(GaindataLog.TYPE_2213.equals(entity.getType())) {
entity.setContent(StrUtil.format(content, "生产线植被覆盖度"));
entity.setContent(StrUtil.format(content, "生产线植被覆盖度计算"));
} else if(GaindataLog.TYPE_2214.equals(entity.getType())) {
entity.setContent(StrUtil.format(content, "生产线植被识别"));
} else if(GaindataLog.TYPE_2215.equals(entity.getType())) {
entity.setContent(StrUtil.format(content, "生产线水体识别"));
} else if(GaindataLog.TYPE_2215.equals(entity.getType())) {
entity.setContent(StrUtil.format(content, "生产线风险等级"));
} else if(GaindataLog.TYPE_2215.equals(entity.getType())) {
} else if(GaindataLog.TYPE_2216.equals(entity.getType())) {
entity.setContent(StrUtil.format(content, "生产线风险等级分析"));
} else if(GaindataLog.TYPE_2217.equals(entity.getType())) {
entity.setContent(StrUtil.format(content, "生产线病虫害监测"));
} else if(GaindataLog.TYPE_2221.equals(entity.getType())) {
entity.setContent(StrUtil.format(content, "生产线切片"));
} else if(GaindataLog.TYPE_2311.equals(entity.getType())) {
entity.setContent(StrUtil.format(content, "AI系统船舶识别"));
}
baseBiz.insertSelective(entity);
return ObjectRestResponse.succ();
......
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