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