Commit e380593b authored by hanfeng's avatar hanfeng

Merge branch 'master-bug-vehiclemodel-hf' into dev

parents 765d1f77 ff5bac93
......@@ -18,5 +18,5 @@ public class AppDownloadRecord {
private Integer id;
private String source;
private Date creTime;
private String terminal;
}
......@@ -5,9 +5,10 @@ import com.github.wxiaoqi.security.common.rest.BaseController;
import com.xxfc.platform.app.biz.AppDownloadRecordBiz;
import com.xxfc.platform.app.entity.AppDownloadRecord;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.*;
import java.util.Date;
/**
* @Auther: Administrator
* @Date: 2019/12/19 15:46
......@@ -16,14 +17,13 @@ import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/app/unauth/adr")
public class AppDownloadRecordController extends BaseController<AppDownloadRecordBiz, AppDownloadRecord> {
@Override
@ApiOperation("添加")
@PostMapping(value = "add")
public ObjectRestResponse<AppDownloadRecord> add(@RequestParam(value = "source") String source ){
if (StringUtils.isNotBlank(source)) {
AppDownloadRecord appDownloadRecord = new AppDownloadRecord();
appDownloadRecord.setSource(source);
public ObjectRestResponse<AppDownloadRecord> add(@RequestBody AppDownloadRecord appDownloadRecord ){
appDownloadRecord.setCreTime(new Date());
baseBiz.insertSelective(appDownloadRecord);
}
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