Przeglądaj źródła

删除面谈笔录

humuyu 3 lat temu
rodzic
commit
0a5434dd9e

+ 10 - 2
eladmin-system/src/main/java/me/zhengjie/application/bank/service/impl/BankNotarizeServiceImpl.java

@@ -11,6 +11,7 @@ import java.util.UUID;
 
 import org.apache.commons.collections4.CollectionUtils;
 import org.apache.commons.collections4.MapUtils;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
 import com.alibaba.fastjson.JSONObject;
@@ -33,6 +34,7 @@ import me.zhengjie.dao.mybatis.entity.OrderFileEntity;
 import me.zhengjie.dao.mybatis.entity.OrderRoomIdEntity;
 import me.zhengjie.dao.mybatis.entity.SysUserEntity;
 import me.zhengjie.dao.mybatis.mapper.ContractOrderMapper;
+import me.zhengjie.dao.mybatis.mapper.OrderFileMapper;
 import me.zhengjie.dao.mybatis.mapper.OrderRoomIdMapper;
 import me.zhengjie.dao.mybatis.mapper.SysUserMapper;
 import me.zhengjie.domain.model.ModelConstant;
@@ -49,7 +51,9 @@ public class BankNotarizeServiceImpl implements BankNotarizeService {
 	private final SysUserMapper sysUserMapper;
 	private final OnlineUserService onlineUserService;
 	private final AppPcBindSocketIo appPcBindSocketIo;
-
+	@Autowired
+	OrderFileMapper orderFileMapper;
+	
 	/**
 	 * 
 	 * @param businessNo
@@ -137,7 +141,11 @@ public class BankNotarizeServiceImpl implements BankNotarizeService {
 		if (orderSize == 0) {
 			orderRoomIdMapper.insert(orderRoomId);
 		}
-
+		//删除面谈笔录,
+		QueryWrapper<OrderFileEntity> queryWrapper=new QueryWrapper<>();
+		queryWrapper.eq("business_no", businessNo);
+		queryWrapper.eq("code", 4);
+		orderFileMapper.delete(queryWrapper);
 		return ResponseDTO.success();
 	}