|
@@ -85,6 +85,10 @@ public class MouldServiceImpl extends ServiceImpl<MouldMapper, Mould> implements
|
|
if (count > 0) {
|
|
if (count > 0) {
|
|
msg.setError("当前模具编号已存在,请重新输入其他模具编号");
|
|
msg.setError("当前模具编号已存在,请重新输入其他模具编号");
|
|
} else {
|
|
} else {
|
|
|
|
+ if (mould.getProduceCompanyId() != null) {
|
|
|
|
+ Company company = companyMapper.selectById(mould.getProduceCompanyId());
|
|
|
|
+ mould.setArea(company.getCompanyAddress());
|
|
|
|
+ }
|
|
mould.setCreatorId(user.getId());
|
|
mould.setCreatorId(user.getId());
|
|
mould.setCompanyId(user.getCompanyId());
|
|
mould.setCompanyId(user.getCompanyId());
|
|
mouldMapper.insert(mould);
|
|
mouldMapper.insert(mould);
|