夏文涛 1 rok pred
rodič
commit
331ef8ee2f

+ 2 - 2
src/main/java/com/sqx/modules/printInfo/service/impl/PrintInfoServiceImpl.java

@@ -77,7 +77,7 @@ public class PrintInfoServiceImpl extends ServiceImpl<PrintInfoDao, PrintInfo> i
     @Override
     public int existInfo(Integer type,String field) {
         QueryWrapper<PrintInfo> queryWrapper = new QueryWrapper<>();
-        queryWrapper.eq("type",type);
+        queryWrapper.eq("type_id",type);
         queryWrapper.eq("print_field",field);
         queryWrapper.eq("delete_flag",0);
         int result = baseMapper.selectCount(queryWrapper);
@@ -87,7 +87,7 @@ public class PrintInfoServiceImpl extends ServiceImpl<PrintInfoDao, PrintInfo> i
     @Override
     public PrintInfo existInfoData(Integer type, String field) {
         QueryWrapper<PrintInfo> queryWrapper = new QueryWrapper<>();
-        queryWrapper.eq("type",type);
+        queryWrapper.eq("type_id",type);
         queryWrapper.eq("print_field",field);
         queryWrapper.eq("delete_flag",0);
         PrintInfo result = baseMapper.selectOne(queryWrapper);

+ 1 - 1
src/main/resources/application.yml

@@ -19,7 +19,7 @@ spring:
     allow-circular-references: true
   # 环境 dev|test|prod
   profiles:
-    active: dev
+    active: prod
   # jackson时间格式化
   jackson:
     time-zone: GMT+8