打印机 contentType固定local

This commit is contained in:
wangw 2024-04-07 11:21:34 +08:00
parent 78fc29fb0f
commit 55c0b270a0
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,6 @@ public class TbPrintPCMachineService {
public Result insert(PrintMachineDto resources) {
TbPrintPCMachine tbPrintMachine = new TbPrintPCMachine();
tbPrintMachine.setCreatedAt(Instant.now().toEpochMilli());
tbPrintMachine.setContentType("local");
if (resources.getConfig() != null) {
if (CollectionUtils.isEmpty(resources.getConfig().getCategoryList())) {
resources.getConfig().setCategoryList(null);
@ -112,6 +111,7 @@ public class TbPrintPCMachineService {
tbPrintMachine.setConfig(JSONUtil.toJSONString(resources.getConfig(), true));
}
BeanUtils.copyProperties(resources, tbPrintMachine);
tbPrintMachine.setContentType("local");
tbPrintMachineMapper.insert(tbPrintMachine);
return Result.success(CodeEnum.SUCCESS);
}