get方法优化,表新增时添加create_time

This commit is contained in:
王玺涛 2020-07-08 08:59:04 +08:00
parent e87a22b5ab
commit a9d8c01806
11 changed files with 96 additions and 58 deletions

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: javax.validation:validation-api:2.0.1.Final">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.hibernate:hibernate-validator:5.1.1.Final">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-validator/5.1.1.Final/hibernate-validator-5.1.1.Final.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-validator/5.1.1.Final/hibernate-validator-5.1.1.Final-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-validator/5.1.1.Final/hibernate-validator-5.1.1.Final-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -25,6 +25,10 @@
</content> </content>
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: org.hibernate:hibernate-validator:5.1.1.Final" level="project" />
<orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.1.Final" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" level="project" />
<orderEntry type="library" name="Maven: commons-lang:commons-lang:2.6" level="project" /> <orderEntry type="library" name="Maven: commons-lang:commons-lang:2.6" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-core:3.3.1" level="project" /> <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-core:3.3.1" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-annotation:3.3.1" level="project" /> <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-annotation:3.3.1" level="project" />
@ -69,7 +73,6 @@
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.9.2" level="project" /> <orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.9.2" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.9.2" level="project" /> <orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.9.2" level="project" />
<orderEntry type="library" name="Maven: com.google.guava:guava:20.0" level="project" /> <orderEntry type="library" name="Maven: com.google.guava:guava:20.0" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE" level="project" /> <orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE" level="project" /> <orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.2.0.Final" level="project" /> <orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.2.0.Final" level="project" />

View File

@ -26,6 +26,10 @@
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="module-common" /> <orderEntry type="module" module-name="module-common" />
<orderEntry type="library" name="Maven: org.hibernate:hibernate-validator:5.1.1.Final" level="project" />
<orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.1.Final" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" level="project" />
<orderEntry type="library" name="Maven: commons-lang:commons-lang:2.6" level="project" /> <orderEntry type="library" name="Maven: commons-lang:commons-lang:2.6" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-core:3.3.1" level="project" /> <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-core:3.3.1" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-annotation:3.3.1" level="project" /> <orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-annotation:3.3.1" level="project" />
@ -70,7 +74,6 @@
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.9.2" level="project" /> <orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.9.2" level="project" />
<orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.9.2" level="project" /> <orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.9.2" level="project" />
<orderEntry type="library" name="Maven: com.google.guava:guava:20.0" level="project" /> <orderEntry type="library" name="Maven: com.google.guava:guava:20.0" level="project" />
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" level="project" />
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE" level="project" /> <orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE" level="project" /> <orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.2.0.Final" level="project" /> <orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.2.0.Final" level="project" />

View File

@ -1,6 +1,7 @@
package io.renren.modules.wcs.controller; package io.renren.modules.wcs.controller;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -46,7 +47,7 @@ public class MtDdDeviceCodeInfoController {
* 列表 * 列表
*/ */
@GetMapping("/list") @GetMapping("/list")
@RequiresPermissions("wcs:mtdddevicecodeinfo:list") // @RequiresPermissions("wcs:mtdddevicecodeinfo:list")
@ApiOperation(value = "分页list", notes = "传入deviceCodeInfo") @ApiOperation(value = "分页list", notes = "传入deviceCodeInfo")
public R list(@RequestParam Map<String, Object> params){ public R list(@RequestParam Map<String, Object> params){
PageUtils page = mtDdDeviceCodeInfoService.queryPage(params); PageUtils page = mtDdDeviceCodeInfoService.queryPage(params);
@ -59,7 +60,7 @@ public class MtDdDeviceCodeInfoController {
* 信息 * 信息
*/ */
@GetMapping("/info/{id}")@ApiOperation(value = "详情", notes = "传入id") @GetMapping("/info/{id}")@ApiOperation(value = "详情", notes = "传入id")
@RequiresPermissions("wcs:mtdddevicecodeinfo:info") // @RequiresPermissions("wcs:mtdddevicecodeinfo:info")
public R info(@PathVariable("id") Integer id){ public R info(@PathVariable("id") Integer id){
MtDdDeviceCodeInfoEntity mtDdDeviceCodeInfo = mtDdDeviceCodeInfoService.getById(id); MtDdDeviceCodeInfoEntity mtDdDeviceCodeInfo = mtDdDeviceCodeInfoService.getById(id);
@ -69,9 +70,10 @@ public class MtDdDeviceCodeInfoController {
/** /**
* 保存 * 保存
*/ */
@GetMapping("/save")@ApiOperation(value = "新增", notes = "传入deviceCodeInfo") @PostMapping("/save")@ApiOperation(value = "新增", notes = "传入deviceCodeInfo")
@RequiresPermissions("wcs:mtdddevicecodeinfo:save") // @RequiresPermissions("wcs:mtdddevicecodeinfo:save")
public R save(@RequestBody MtDdDeviceCodeInfoEntity mtDdDeviceCodeInfo){ public R save(@RequestBody MtDdDeviceCodeInfoEntity mtDdDeviceCodeInfo){
mtDdDeviceCodeInfo.setCreateTime(new Date());
mtDdDeviceCodeInfoService.save(mtDdDeviceCodeInfo); mtDdDeviceCodeInfoService.save(mtDdDeviceCodeInfo);
return R.ok(); return R.ok();
@ -80,8 +82,8 @@ public class MtDdDeviceCodeInfoController {
/** /**
* 修改 * 修改
*/ */
@GetMapping("/update")@ApiOperation(value = "修改", notes = "传入deviceCodeInfo") @PostMapping("/update")@ApiOperation(value = "修改", notes = "传入deviceCodeInfo")
@RequiresPermissions("wcs:mtdddevicecodeinfo:update") // @RequiresPermissions("wcs:mtdddevicecodeinfo:update")
public R update(@RequestBody MtDdDeviceCodeInfoEntity mtDdDeviceCodeInfo){ public R update(@RequestBody MtDdDeviceCodeInfoEntity mtDdDeviceCodeInfo){
mtDdDeviceCodeInfoService.updateById(mtDdDeviceCodeInfo); mtDdDeviceCodeInfoService.updateById(mtDdDeviceCodeInfo);
@ -91,8 +93,8 @@ public class MtDdDeviceCodeInfoController {
/** /**
* 删除 * 删除
*/ */
@GetMapping("/delete")@ApiOperation(value = "删除", notes = "传入ids") @PostMapping("/delete")@ApiOperation(value = "删除", notes = "传入ids")
@RequiresPermissions("wcs:mtdddevicecodeinfo:delete") // @RequiresPermissions("wcs:mtdddevicecodeinfo:delete")
public R delete(@RequestBody Integer[] ids){ public R delete(@RequestBody Integer[] ids){
mtDdDeviceCodeInfoService.removeByIds(Arrays.asList(ids)); mtDdDeviceCodeInfoService.removeByIds(Arrays.asList(ids));

View File

@ -45,7 +45,7 @@ public class MtDdDeviceCodeLogController {
* 列表 * 列表
*/ */
@GetMapping("/list")@ApiOperation("查询设备code日志list") @GetMapping("/list")@ApiOperation("查询设备code日志list")
@RequiresPermissions("wcs:mtdddevicecodelog:list") // @RequiresPermissions("wcs:mtdddevicecodelog:list")
public R list(@RequestParam Map<String, Object> params){ public R list(@RequestParam Map<String, Object> params){
PageUtils page = mtDdDeviceCodeLogService.queryPage(params); PageUtils page = mtDdDeviceCodeLogService.queryPage(params);
@ -57,7 +57,7 @@ public class MtDdDeviceCodeLogController {
* 信息 * 信息
*/ */
@GetMapping("/info/{id}")@ApiOperation("通过id查询设备code") @GetMapping("/info/{id}")@ApiOperation("通过id查询设备code")
@RequiresPermissions("wcs:mtdddevicecodelog:info") // @RequiresPermissions("wcs:mtdddevicecodelog:info")
public R info(@PathVariable("id") Integer id){ public R info(@PathVariable("id") Integer id){
MtDdDeviceCodeLogEntity mtDdDeviceCodeLog = mtDdDeviceCodeLogService.getById(id); MtDdDeviceCodeLogEntity mtDdDeviceCodeLog = mtDdDeviceCodeLogService.getById(id);
return R.ok().put("mtDdDeviceCodeLog", mtDdDeviceCodeLog); return R.ok().put("mtDdDeviceCodeLog", mtDdDeviceCodeLog);
@ -66,8 +66,8 @@ public class MtDdDeviceCodeLogController {
/** /**
* 保存 * 保存
*/ */
@GetMapping("/save")@ApiOperation(value = "新增", notes = "传入deviceCodeLog") @PostMapping("/save")@ApiOperation(value = "新增", notes = "传入deviceCodeLog")
@RequiresPermissions("wcs:mtdddevicecodelog:save") // @RequiresPermissions("wcs:mtdddevicecodelog:save")
public R save(@RequestBody MtDdDeviceCodeLogEntity mtDdDeviceCodeLog){ public R save(@RequestBody MtDdDeviceCodeLogEntity mtDdDeviceCodeLog){
mtDdDeviceCodeLogService.save(mtDdDeviceCodeLog); mtDdDeviceCodeLogService.save(mtDdDeviceCodeLog);
@ -77,8 +77,8 @@ public class MtDdDeviceCodeLogController {
/** /**
* 修改 * 修改
*/ */
@GetMapping("/update")@ApiOperation(value = "修改", notes = "传入deviceCodeLog") @PostMapping("/update")@ApiOperation(value = "修改", notes = "传入deviceCodeLog")
@RequiresPermissions("wcs:mtdddevicecodelog:update") // @RequiresPermissions("wcs:mtdddevicecodelog:update")
public R update(@RequestBody MtDdDeviceCodeLogEntity mtDdDeviceCodeLog){ public R update(@RequestBody MtDdDeviceCodeLogEntity mtDdDeviceCodeLog){
mtDdDeviceCodeLogService.updateById(mtDdDeviceCodeLog); mtDdDeviceCodeLogService.updateById(mtDdDeviceCodeLog);
@ -88,8 +88,8 @@ public class MtDdDeviceCodeLogController {
/** /**
* 删除 * 删除
*/ */
@GetMapping("/delete")@ApiOperation(value = "删除", notes = "传入ids") @PostMapping("/delete")@ApiOperation(value = "删除", notes = "传入ids")
@RequiresPermissions("wcs:mtdddevicecodelog:delete") // @RequiresPermissions("wcs:mtdddevicecodelog:delete")
public R delete(@RequestBody Integer[] ids){ public R delete(@RequestBody Integer[] ids){
mtDdDeviceCodeLogService.removeByIds(Arrays.asList(ids)); mtDdDeviceCodeLogService.removeByIds(Arrays.asList(ids));

View File

@ -1,6 +1,7 @@
package io.renren.modules.wcs.controller; package io.renren.modules.wcs.controller;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -44,7 +45,7 @@ public class MtDdDeviceInfoController {
* 列表 * 列表
*/ */
@GetMapping("/list") @ApiOperation(value = "分页", notes = "") @GetMapping("/list") @ApiOperation(value = "分页", notes = "")
@RequiresPermissions("wcs:mtdddeviceinfo:list") // @RequiresPermissions("wcs:mtdddeviceinfo:list")
public R list(@RequestParam Map<String, Object> params){ public R list(@RequestParam Map<String, Object> params){
PageUtils page = mtDdDeviceInfoService.queryPage(params); PageUtils page = mtDdDeviceInfoService.queryPage(params);
@ -56,7 +57,7 @@ public class MtDdDeviceInfoController {
* 信息 * 信息
*/ */
@GetMapping("/info/{id}")@ApiOperation(value = "参数查询", notes = "传入id") @GetMapping("/info/{id}")@ApiOperation(value = "参数查询", notes = "传入id")
@RequiresPermissions("wcs:mtdddeviceinfo:info") // @RequiresPermissions("wcs:mtdddeviceinfo:info")
public R info(@PathVariable("id") Integer id){ public R info(@PathVariable("id") Integer id){
MtDdDeviceInfoEntity mtDdDeviceInfo = mtDdDeviceInfoService.getById(id); MtDdDeviceInfoEntity mtDdDeviceInfo = mtDdDeviceInfoService.getById(id);
@ -66,9 +67,10 @@ public class MtDdDeviceInfoController {
/** /**
* 保存 * 保存
*/ */
@GetMapping("/save") @ApiOperation(value = "新增", notes = "传入deviceInfo") @PostMapping("/save") @ApiOperation(value = "新增", notes = "传入deviceInfo")
@RequiresPermissions("wcs:mtdddeviceinfo:save") // @RequiresPermissions("wcs:mtdddeviceinfo:save")
public R save(@RequestBody MtDdDeviceInfoEntity mtDdDeviceInfo){ public R save(@RequestBody MtDdDeviceInfoEntity mtDdDeviceInfo){
mtDdDeviceInfo.setCreateTime(new Date());
mtDdDeviceInfoService.save(mtDdDeviceInfo); mtDdDeviceInfoService.save(mtDdDeviceInfo);
return R.ok(); return R.ok();
@ -77,8 +79,8 @@ public class MtDdDeviceInfoController {
/** /**
* 修改 * 修改
*/ */
@GetMapping("/update") @ApiOperation(value = "修改", notes = "传入deviceInfo") @PostMapping("/update") @ApiOperation(value = "修改", notes = "传入deviceInfo")
@RequiresPermissions("wcs:mtdddeviceinfo:update") // @RequiresPermissions("wcs:mtdddeviceinfo:update")
public R update(@RequestBody MtDdDeviceInfoEntity mtDdDeviceInfo){ public R update(@RequestBody MtDdDeviceInfoEntity mtDdDeviceInfo){
mtDdDeviceInfoService.updateById(mtDdDeviceInfo); mtDdDeviceInfoService.updateById(mtDdDeviceInfo);
@ -88,8 +90,8 @@ public class MtDdDeviceInfoController {
/** /**
* 删除 * 删除
*/ */
@GetMapping("/delete") @ApiOperation(value = "删除", notes = "传入ids") @PostMapping("/delete") @ApiOperation(value = "删除", notes = "传入ids")
@RequiresPermissions("wcs:mtdddeviceinfo:delete") // @RequiresPermissions("wcs:mtdddeviceinfo:delete")
public R delete(@RequestBody Integer[] ids){ public R delete(@RequestBody Integer[] ids){
mtDdDeviceInfoService.removeByIds(Arrays.asList(ids)); mtDdDeviceInfoService.removeByIds(Arrays.asList(ids));

View File

@ -46,7 +46,7 @@ public class MtDdDeviceRunLogController {
* 列表 * 列表
*/ */
@GetMapping("/list") @ApiOperation(value = "分页", notes = "") @GetMapping("/list") @ApiOperation(value = "分页", notes = "")
@RequiresPermissions("wcs:mtdddevicerunlog:list") // @RequiresPermissions("wcs:mtdddevicerunlog:list")
public R list(@RequestParam Map<String, Object> params){ public R list(@RequestParam Map<String, Object> params){
PageUtils page = mtDdDeviceRunLogService.queryPage(params); PageUtils page = mtDdDeviceRunLogService.queryPage(params);
@ -58,7 +58,7 @@ public class MtDdDeviceRunLogController {
* 信息 * 信息
*/ */
@GetMapping("/info/{id}") @ApiOperation(value = "详情", notes = "传入id") @GetMapping("/info/{id}") @ApiOperation(value = "详情", notes = "传入id")
@RequiresPermissions("wcs:mtdddevicerunlog:info") // @RequiresPermissions("wcs:mtdddevicerunlog:info")
public R info(@PathVariable("id") Integer id){ public R info(@PathVariable("id") Integer id){
MtDdDeviceRunLogEntity mtDdDeviceRunLog = mtDdDeviceRunLogService.getById(id); MtDdDeviceRunLogEntity mtDdDeviceRunLog = mtDdDeviceRunLogService.getById(id);
@ -68,8 +68,8 @@ public class MtDdDeviceRunLogController {
/** /**
* 保存 * 保存
*/ */
@GetMapping("/save") @ApiOperation(value = "新增", notes = "传入deviceRunLog") @PostMapping("/save") @ApiOperation(value = "新增", notes = "传入deviceRunLog")
@RequiresPermissions("wcs:mtdddevicerunlog:save") // @RequiresPermissions("wcs:mtdddevicerunlog:save")
public R save(@RequestBody MtDdDeviceRunLogEntity mtDdDeviceRunLog){ public R save(@RequestBody MtDdDeviceRunLogEntity mtDdDeviceRunLog){
mtDdDeviceRunLogService.save(mtDdDeviceRunLog); mtDdDeviceRunLogService.save(mtDdDeviceRunLog);
@ -79,8 +79,8 @@ public class MtDdDeviceRunLogController {
/** /**
* 修改 * 修改
*/ */
@GetMapping("/update") @ApiOperation(value = "修改", notes = "传入deviceRunLog") @PostMapping("/update") @ApiOperation(value = "修改", notes = "传入deviceRunLog")
@RequiresPermissions("wcs:mtdddevicerunlog:update") // @RequiresPermissions("wcs:mtdddevicerunlog:update")
public R update(@RequestBody MtDdDeviceRunLogEntity mtDdDeviceRunLog){ public R update(@RequestBody MtDdDeviceRunLogEntity mtDdDeviceRunLog){
mtDdDeviceRunLogService.updateById(mtDdDeviceRunLog); mtDdDeviceRunLogService.updateById(mtDdDeviceRunLog);
@ -90,8 +90,8 @@ public class MtDdDeviceRunLogController {
/** /**
* 删除 * 删除
*/ */
@GetMapping("/delete") @ApiOperation(value = "删除", notes = "传入ids") @PostMapping("/delete") @ApiOperation(value = "删除", notes = "传入ids")
@RequiresPermissions("wcs:mtdddevicerunlog:delete") // @RequiresPermissions("wcs:mtdddevicerunlog:delete")
public R delete(@RequestBody Integer[] ids){ public R delete(@RequestBody Integer[] ids){
mtDdDeviceRunLogService.removeByIds(Arrays.asList(ids)); mtDdDeviceRunLogService.removeByIds(Arrays.asList(ids));

View File

@ -45,7 +45,7 @@ public class MtDdInterfaceInfoLogController {
* 列表 * 列表
*/ */
@GetMapping("/list") @ApiOperation(value = "分页", notes = "传入interfaceInfoLog") @GetMapping("/list") @ApiOperation(value = "分页", notes = "传入interfaceInfoLog")
@RequiresPermissions("wcs:mtddinterfaceinfolog:list") // @RequiresPermissions("wcs:mtddinterfaceinfolog:list")
public R list(@RequestParam Map<String, Object> params){ public R list(@RequestParam Map<String, Object> params){
PageUtils page = mtDdInterfaceInfoLogService.queryPage(params); PageUtils page = mtDdInterfaceInfoLogService.queryPage(params);
@ -57,7 +57,7 @@ public class MtDdInterfaceInfoLogController {
* 信息 * 信息
*/ */
@GetMapping("/info/{id}") @ApiOperation(value = "详情", notes = "传入id") @GetMapping("/info/{id}") @ApiOperation(value = "详情", notes = "传入id")
@RequiresPermissions("wcs:mtddinterfaceinfolog:info") // @RequiresPermissions("wcs:mtddinterfaceinfolog:info")
public R info(@PathVariable("id") Integer id){ public R info(@PathVariable("id") Integer id){
MtDdInterfaceInfoLogEntity mtDdInterfaceInfoLog = mtDdInterfaceInfoLogService.getById(id); MtDdInterfaceInfoLogEntity mtDdInterfaceInfoLog = mtDdInterfaceInfoLogService.getById(id);
@ -67,8 +67,8 @@ public class MtDdInterfaceInfoLogController {
/** /**
* 保存 * 保存
*/ */
@GetMapping("/save") @ApiOperation(value = "新增", notes = "传入interfaceInfoLog") @PostMapping("/save") @ApiOperation(value = "新增", notes = "传入interfaceInfoLog")
@RequiresPermissions("wcs:mtddinterfaceinfolog:save") // @RequiresPermissions("wcs:mtddinterfaceinfolog:save")
public R save(@RequestBody MtDdInterfaceInfoLogEntity mtDdInterfaceInfoLog){ public R save(@RequestBody MtDdInterfaceInfoLogEntity mtDdInterfaceInfoLog){
mtDdInterfaceInfoLogService.save(mtDdInterfaceInfoLog); mtDdInterfaceInfoLogService.save(mtDdInterfaceInfoLog);
@ -78,8 +78,8 @@ public class MtDdInterfaceInfoLogController {
/** /**
* 修改 * 修改
*/ */
@GetMapping("/update") @ApiOperation(value = "修改", notes = "传入interfaceInfoLog") @PostMapping("/update") @ApiOperation(value = "修改", notes = "传入interfaceInfoLog")
@RequiresPermissions("wcs:mtddinterfaceinfolog:update") // @RequiresPermissions("wcs:mtddinterfaceinfolog:update")
public R update(@RequestBody MtDdInterfaceInfoLogEntity mtDdInterfaceInfoLog){ public R update(@RequestBody MtDdInterfaceInfoLogEntity mtDdInterfaceInfoLog){
mtDdInterfaceInfoLogService.updateById(mtDdInterfaceInfoLog); mtDdInterfaceInfoLogService.updateById(mtDdInterfaceInfoLog);
@ -89,8 +89,8 @@ public class MtDdInterfaceInfoLogController {
/** /**
* 删除 * 删除
*/ */
@GetMapping("/delete") @ApiOperation(value = "新增或修改", notes = "传入interfaceInfoLog") @PostMapping("/delete") @ApiOperation(value = "新增或修改", notes = "传入interfaceInfoLog")
@RequiresPermissions("wcs:mtddinterfaceinfolog:delete") // @RequiresPermissions("wcs:mtddinterfaceinfolog:delete")
public R delete(@RequestBody Integer[] ids){ public R delete(@RequestBody Integer[] ids){
mtDdInterfaceInfoLogService.removeByIds(Arrays.asList(ids)); mtDdInterfaceInfoLogService.removeByIds(Arrays.asList(ids));

View File

@ -1,6 +1,7 @@
package io.renren.modules.wcs.controller; package io.renren.modules.wcs.controller;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -45,7 +46,7 @@ public class MtDdTaskInfoController {
* 列表 * 列表
*/ */
@GetMapping("/list") @ApiOperation(value = "分页", notes = "传入taskInfo") @GetMapping("/list") @ApiOperation(value = "分页", notes = "传入taskInfo")
@RequiresPermissions("wcs:mtddtaskinfo:list") // @RequiresPermissions("wcs:mtddtaskinfo:list")
public R list(@RequestParam Map<String, Object> params){ public R list(@RequestParam Map<String, Object> params){
PageUtils page = mtDdTaskInfoService.queryPage(params); PageUtils page = mtDdTaskInfoService.queryPage(params);
@ -68,7 +69,7 @@ public class MtDdTaskInfoController {
* 信息 * 信息
*/ */
@GetMapping("/info/{id}") @ApiOperation(value = "详情", notes = "传入id") @GetMapping("/info/{id}") @ApiOperation(value = "详情", notes = "传入id")
@RequiresPermissions("wcs:mtddtaskinfo:info") // @RequiresPermissions("wcs:mtddtaskinfo:info")
public R info(@PathVariable("id") Integer id){ public R info(@PathVariable("id") Integer id){
MtDdTaskInfoEntity mtDdTaskInfo = mtDdTaskInfoService.getById(id); MtDdTaskInfoEntity mtDdTaskInfo = mtDdTaskInfoService.getById(id);
@ -78,9 +79,10 @@ public class MtDdTaskInfoController {
/** /**
* 保存 * 保存
*/ */
@GetMapping("/save") @ApiOperation(value = "新增", notes = "传入taskInfo") @PostMapping("/save") @ApiOperation(value = "新增", notes = "传入taskInfo")
@RequiresPermissions("wcs:mtddtaskinfo:save") // @RequiresPermissions("wcs:mtddtaskinfo:save")
public R save(@RequestBody MtDdTaskInfoEntity mtDdTaskInfo){ public R save(@RequestBody MtDdTaskInfoEntity mtDdTaskInfo){
mtDdTaskInfo.setCreateTime(new Date());
mtDdTaskInfoService.save(mtDdTaskInfo); mtDdTaskInfoService.save(mtDdTaskInfo);
return R.ok(); return R.ok();
@ -89,8 +91,8 @@ public class MtDdTaskInfoController {
/** /**
* 修改 * 修改
*/ */
@GetMapping("/update") @ApiOperation(value = "更新", notes = "传入taskInfo") @PostMapping("/update") @ApiOperation(value = "更新", notes = "传入taskInfo")
@RequiresPermissions("wcs:mtddtaskinfo:update") // @RequiresPermissions("wcs:mtddtaskinfo:update")
public R update(@RequestBody MtDdTaskInfoEntity mtDdTaskInfo){ public R update(@RequestBody MtDdTaskInfoEntity mtDdTaskInfo){
mtDdTaskInfoService.updateById(mtDdTaskInfo); mtDdTaskInfoService.updateById(mtDdTaskInfo);
@ -100,8 +102,8 @@ public class MtDdTaskInfoController {
/** /**
* 删除 * 删除
*/ */
@GetMapping("/delete") @ApiOperation(value = "删除", notes = "传入ids") @PostMapping("/delete") @ApiOperation(value = "删除", notes = "传入ids")
@RequiresPermissions("wcs:mtddtaskinfo:delete") // @RequiresPermissions("wcs:mtddtaskinfo:delete")
public R delete(@RequestBody Integer[] ids){ public R delete(@RequestBody Integer[] ids){
mtDdTaskInfoService.removeByIds(Arrays.asList(ids)); mtDdTaskInfoService.removeByIds(Arrays.asList(ids));

View File

@ -44,7 +44,7 @@ public class MtDdTaskInfoLogController {
* 列表 * 列表
*/ */
@GetMapping("/list")@ApiOperation(value = "分页", notes = "") @GetMapping("/list")@ApiOperation(value = "分页", notes = "")
@RequiresPermissions("wcs:mtddtaskinfolog:list") // @RequiresPermissions("wcs:mtddtaskinfolog:list")
public R list(@RequestParam Map<String, Object> params){ public R list(@RequestParam Map<String, Object> params){
PageUtils page = mtDdTaskInfoLogService.queryPage(params); PageUtils page = mtDdTaskInfoLogService.queryPage(params);
@ -56,7 +56,7 @@ public class MtDdTaskInfoLogController {
* 信息 * 信息
*/ */
@GetMapping("/info/{id}") @ApiOperation(value = "详情", notes = "传入id") @GetMapping("/info/{id}") @ApiOperation(value = "详情", notes = "传入id")
@RequiresPermissions("wcs:mtddtaskinfolog:info") // @RequiresPermissions("wcs:mtddtaskinfolog:info")
public R info(@PathVariable("id") Integer id){ public R info(@PathVariable("id") Integer id){
MtDdTaskInfoLogEntity mtDdTaskInfoLog = mtDdTaskInfoLogService.getById(id); MtDdTaskInfoLogEntity mtDdTaskInfoLog = mtDdTaskInfoLogService.getById(id);
@ -66,8 +66,8 @@ public class MtDdTaskInfoLogController {
/** /**
* 保存 * 保存
*/ */
@GetMapping("/save") @ApiOperation(value = "新增", notes = "传入taskInfoLog") @PostMapping("/save") @ApiOperation(value = "新增", notes = "传入taskInfoLog")
@RequiresPermissions("wcs:mtddtaskinfolog:save") // @RequiresPermissions("wcs:mtddtaskinfolog:save")
public R save(@RequestBody MtDdTaskInfoLogEntity mtDdTaskInfoLog){ public R save(@RequestBody MtDdTaskInfoLogEntity mtDdTaskInfoLog){
mtDdTaskInfoLogService.save(mtDdTaskInfoLog); mtDdTaskInfoLogService.save(mtDdTaskInfoLog);
@ -77,8 +77,8 @@ public class MtDdTaskInfoLogController {
/** /**
* 修改 * 修改
*/ */
@GetMapping("/update") @ApiOperation(value = "更新", notes = "传入taskInfoLog") @PostMapping("/update") @ApiOperation(value = "更新", notes = "传入taskInfoLog")
@RequiresPermissions("wcs:mtddtaskinfolog:update") // @RequiresPermissions("wcs:mtddtaskinfolog:update")
public R update(@RequestBody MtDdTaskInfoLogEntity mtDdTaskInfoLog){ public R update(@RequestBody MtDdTaskInfoLogEntity mtDdTaskInfoLog){
mtDdTaskInfoLogService.updateById(mtDdTaskInfoLog); mtDdTaskInfoLogService.updateById(mtDdTaskInfoLog);
@ -88,8 +88,8 @@ public class MtDdTaskInfoLogController {
/** /**
* 删除 * 删除
*/ */
@GetMapping("/delete") @ApiOperation(value = "删除", notes = "传入ids") @PostMapping("/delete") @ApiOperation(value = "删除", notes = "传入ids")
@RequiresPermissions("wcs:mtddtaskinfolog:delete") // @RequiresPermissions("wcs:mtddtaskinfolog:delete")
public R delete(@RequestBody Integer[] ids){ public R delete(@RequestBody Integer[] ids){
mtDdTaskInfoLogService.removeByIds(Arrays.asList(ids)); mtDdTaskInfoLogService.removeByIds(Arrays.asList(ids));