package com.hzs.activity.pick.controller.manage;

import com.hzs.activity.pick.param.AcPickLogQueryParam;
import com.hzs.activity.pick.service.IAcPickLogService;
import com.hzs.common.core.utils.DateUtils;
import com.hzs.common.core.web.controller.BaseController;
import com.hzs.common.core.web.page.TableDataInfo;
import com.hzs.common.security.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 提货日志处理器
 * @Author: jiang chao
 * @Time: 2023/4/24 17:01
 * @Classname: AcPickLogController
 * @PackageName: com.hzs.activity.pick.controller.manage
 */
@RequestMapping("/manage/pick-log")
@RestController
public class AcPickLogController extends BaseController {

    @Autowired
    private IAcPickLogService iAcPickLogService;

    /**
     * 查询列表
     *
     * @param param 查询入参
     * @return
     */
    @GetMapping("/list")
    public TableDataInfo list(AcPickLogQueryParam param) {
        param.setCreationTime(DateUtils.handTimeStartAndEnd(param.getCreationTime()));

        startPage();
        return getDataTable(iAcPickLogService.queryList(param, SecurityUtils.getPkCountry()));
    }

}
