自动化立体仓库 - WMS系统
1
zhang
昨天 00860b3f449e5b3289f2809c199dd56ec75d46e3
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
package com.zy.asrs.service.impl;
 
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.zy.asrs.entity.WrkMast;
import com.zy.asrs.entity.WrkMastLog;
import com.zy.asrs.mapper.WrkMastLogMapper;
import com.zy.asrs.service.WrkMastLogService;
import com.zy.common.utils.Synchro;
import org.springframework.stereotype.Service;
 
import java.util.Date;
 
@Service("wrkMastLogService")
public class WrkMastLogServiceImpl extends ServiceImpl<WrkMastLogMapper, WrkMastLog> implements WrkMastLogService {
 
    @Override
    public boolean save(Integer workNo) {
        return this.baseMapper.save(workNo) > 0;
    }
 
    @Override
    public boolean saveLog(WrkMast workNo) {
        WrkMastLog wrkMastLog = new WrkMastLog();
        Synchro.Copy(workNo, wrkMastLog);
        wrkMastLog.setModiTime(new Date());
        return super.insert(wrkMastLog);
    }
 
}