|
|
|
@@ -28,6 +28,7 @@ public class WxMsgSignatureController extends BaseController |
|
|
|
@ApiImplicitParam(name="pageSize",value="每页条数",dataType="int", paramType = "query",required=true)}) |
|
|
|
public ResultData list(@ModelAttribute WxMsgSignature wxMsgSignature,Integer pageNum, Integer pageSize) { |
|
|
|
if (null == wxMsgSignature) wxMsgSignature = new WxMsgSignature(); |
|
|
|
wxMsgSignature.setTenantId(getTenantId()); |
|
|
|
final PageInfo<WxMsgSignature> page = wxMsgSignatureService.listAsPage(wxMsgSignature, pageNum, pageSize); |
|
|
|
return new ResultData(page); |
|
|
|
} |
|
|
|
@@ -37,6 +38,7 @@ public class WxMsgSignatureController extends BaseController |
|
|
|
public ResultData add(@RequestBody WxMsgSignature wxMsgSignature) { |
|
|
|
//Assert.notNull(wxMsgSignature.getName(), "角色名不能为空"); |
|
|
|
//Assert.isTrue(!checkUnique(sysRole.getName(), null), "重复的角色名"); |
|
|
|
wxMsgSignature.setTenantId(getTenantId()); |
|
|
|
wxMsgSignatureService.saveOrUpdate(wxMsgSignature); |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
@@ -66,7 +68,7 @@ public class WxMsgSignatureController extends BaseController |
|
|
|
@ApiOperation("获取所有数据") |
|
|
|
@GetMapping("getsignaturelist") |
|
|
|
public ResultData getmodellist() { |
|
|
|
return wxMsgSignatureService.getsignaturelist(); |
|
|
|
return wxMsgSignatureService.getsignaturelist(getTenantId()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|