|
@@ -0,0 +1,37 @@
|
|
|
|
+package cn.rankin.cmsweb.controller.stmt;
|
|
|
|
+
|
|
|
|
+import cn.rankin.cmsweb.assist.resolver.NeedUser;
|
|
|
|
+import cn.rankin.cmsweb.entity.UserDetails;
|
|
|
|
+import cn.rankin.cmsweb.service.stmt.StmtUserTagService;
|
|
|
|
+import cn.rankin.common.utils.api.model.APIResult;
|
|
|
|
+import cn.rankin.common.utils.api.page.Page;
|
|
|
|
+import cn.rankin.common.utils.util.BeanUtil;
|
|
|
|
+import cn.rankin.data.api.cms.vo.UserTagStmt;
|
|
|
|
+import cn.rankin.data.api.user.dto.UserTagSearchDTO;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+@Slf4j
|
|
|
|
+@RestController
|
|
|
|
+@RequestMapping(value = "/stmt/userTagStmt")
|
|
|
|
+public class StmtUserTagController
|
|
|
|
+{
|
|
|
|
+ @Autowired
|
|
|
|
+ private StmtUserTagService stmtService;
|
|
|
|
+
|
|
|
|
+ @RequestMapping(value = "/list", method = RequestMethod.GET)
|
|
|
|
+ public APIResult<Page<UserTagStmt>> search(@NeedUser UserDetails user, UserTagSearchDTO searchDTO) {
|
|
|
|
+ if (!user.isPlatForm()) {
|
|
|
|
+ searchDTO.setMerchantId(user.getMerchantId());
|
|
|
|
+ }
|
|
|
|
+ return stmtService.UserTagStmtPage(BeanUtil.convertToMap(searchDTO));
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+}
|