| | |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.doc.annotation.*; |
| | | import com.java110.intf.common.IItemReleaseResV1InnerServiceSMO; |
| | | import com.java110.intf.common.IItemReleaseV1InnerServiceSMO; |
| | | import com.java110.po.itemRelease.ItemReleasePo; |
| | | import com.java110.utils.exception.CmdException; |
| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | |
| | | @Java110CmdDoc(title = "查询物品放行", |
| | | description = "查询物品放行,供物业端使用", |
| | | httpMethod = "get", |
| | | url = "http://{ip}:{port}/app/itemRelease.listItemRelease", |
| | | resource = "commonDoc", |
| | | author = "吴学文", |
| | | serviceCode = "itemRelease.listItemRelease" |
| | | ) |
| | | |
| | | @Java110ParamsDoc(params = { |
| | | @Java110ParamDoc(name = "page", type = "int",length = 11, remark = "页数"), |
| | | @Java110ParamDoc(name = "row", type = "int",length = 11, remark = "行数"), |
| | | @Java110ParamDoc(name = "communityId", length = 30, remark = "放行小区"), |
| | | }) |
| | | |
| | | @Java110ResponseDoc( |
| | | params = { |
| | | @Java110ParamDoc(name = "code", type = "int", length = 11, defaultValue = "0", remark = "返回编号,0 成功 其他失败"), |
| | | @Java110ParamDoc(name = "msg", type = "String", length = 250, defaultValue = "成功", remark = "描述"), |
| | | @Java110ParamDoc(name = "data", type = "Array", length = -1, defaultValue = "成功", remark = "数据"), |
| | | @Java110ParamDoc(parentNodeName = "data", name = "amount", type = "Array", length = -1, remark = "数量"), |
| | | |
| | | } |
| | | ) |
| | | |
| | | @Java110ExampleDoc( |
| | | reqBody="{'typeId':'123','communityId':'123'}", |
| | | resBody="{'code':0,'msg':'成功'}" |
| | | ) |
| | | /** |
| | | * 类表述:查询 |
| | | * 服务编码:itemRelease.listItemRelease |
| | |
| | | private static Logger logger = LoggerFactory.getLogger(ListItemReleaseCmd.class); |
| | | @Autowired |
| | | private IItemReleaseV1InnerServiceSMO itemReleaseV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IItemReleaseResV1InnerServiceSMO itemReleaseResV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | |
| | | |
| | | if (count > 0) { |
| | | itemReleaseDtos = itemReleaseV1InnerServiceSMOImpl.queryItemReleases(itemReleaseDto); |
| | | |
| | | } else { |
| | | itemReleaseDtos = new ArrayList<>(); |
| | | } |
| | |
| | | |
| | | cmdDataFlowContext.setResponseEntity(responseEntity); |
| | | } |
| | | |
| | | |
| | | } |