whycxzp
2021-09-28 7d64716cb0d406f21cde03976fd273bd07fdc06f
src/main/java/com/whyc/service/DeviceManageService.java
@@ -9,6 +9,7 @@
import com.github.pagehelper.PageInfo;
import com.whyc.dto.Response;
import com.whyc.mapper.DeviceManageMapper;
import com.whyc.pojo.DeviceMaintain;
import com.whyc.pojo.DeviceManage;
import org.springframework.stereotype.Service;
@@ -25,6 +26,7 @@
    public Response add(DeviceManage deviceManage) {
        //新增入库
        deviceManage.setStatus((byte) 1);
        deviceManage.setCreateTime(new Date());
        mapper.insert(deviceManage);
        return new Response().setMsg(1,"添加成功");
    }