package com.sqx.modules.artificer.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sqx.common.utils.Result;
import com.sqx.modules.app.annotation.Login;
import com.sqx.modules.app.dao.UserMoneyDao;
import com.sqx.modules.app.entity.UserEntity;
import com.sqx.modules.app.service.UserService;
import com.sqx.modules.artificer.entity.*;
import com.sqx.modules.artificer.service.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

@RestController
@RequestMapping("/artificerTime")
@Api(value = "师傅时间管理", tags = {"师傅时间管理"})
public class ArtificerTimeController {

    @Autowired
    private ArtificerTimeService artificerTimeService;


    @GetMapping("/selectArtificerTimeByArtificerId")
    @ApiOperation("查看时间")
    public Result selectArtificerTimeByArtificerId(Long artificerId,String artificerDate){
        return artificerTimeService.selectArtificerTimeByArtificerId(artificerId,artificerDate);
    }

    @PostMapping("/updateArtificerTime")
    @ApiOperation("修改时间管理")
    public Result updateArtificerTime(String artificerDate,String times, Long userId){
        return artificerTimeService.updateArtificerTime( artificerDate, times, userId);
    }




}
