提交 f4a0217e 编写于 作者: M megagao

插入客户时,补全客户信息

上级 a6d52a22
......@@ -8,6 +8,7 @@ import org.hqu.production_ms.domain.CustomResult;
import org.hqu.production_ms.domain.EUDataGridResult;
import org.hqu.production_ms.mapper.CustomMapper;
import org.hqu.production_ms.service.CustomService;
import org.hqu.production_ms.util.IDUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -56,6 +57,9 @@ public class CustomServiceImpl implements CustomService{
@Override
public CustomResult insert(Custom custom) {
//custom补全
String customId = IDUtils.genStringId();
custom.setCustomId(customId);
customMapper.insert(custom);
return CustomResult.ok();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册