张晓波
2023-09-19 164694c47c35d6654df69b533e8dbf8b5423efc5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.thhy.mobile.modules.biz.hardware.service.impl;
 
import com.thhy.general.common.enums.MouldFreeType;
import com.thhy.mobile.modules.biz.hardware.service.HareWareService;
import com.thhy.mobile.modules.biz.mouldcheck.entity.MouldFree;
import com.thhy.mobile.modules.biz.pipeinfo.entity.PipeInfo;
import com.thhy.mobile.modules.biz.pipeinfo.mapper.PipeInfoMapper;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
 
import java.lang.annotation.Annotation;
 
@Service
public class HardWareServiceImpl implements HareWareService {
 
    @Autowired
    private PipeInfoMapper pipeInfoMapper;
 
    @Override
    @Transactional
    public void outMod(String pipeNum) {
        PipeInfo pipeInfo = pipeInfoMapper.queryByPipeNum(pipeNum);
        //模具表 改为 空闲状态
        pipeInfoMapper.updateSysMouldFree(new MouldFree(pipeInfo.getModId(), MouldFreeType.FREE.getValue()));
        //管片表 改为 已出模
        pipeInfoMapper.updatePipeOutMod(pipeNum);
        //模具检查记录  改为 已出模
        pipeInfoMapper.updateModCheck(pipeInfo.getModId());
 
 
    }
}