|
@@ -35,6 +35,7 @@ import com.rockstar.util.StringUtils;
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
@@ -141,12 +142,12 @@ public class IntentionalDepositService implements BaseService<IntentionalDeposit
|
|
}
|
|
}
|
|
ParkInfo parkInfo = parkInfoMapper.selectByPrimaryKey(groupId);
|
|
ParkInfo parkInfo = parkInfoMapper.selectByPrimaryKey(groupId);
|
|
ParkFloorDisc parkFloorDisc = parkFloorDiscMapper.selectByPrimaryKey(discId);
|
|
ParkFloorDisc parkFloorDisc = parkFloorDiscMapper.selectByPrimaryKey(discId);
|
|
- String serialNumber = parkInfo.getGroupName()+ parkFloorDisc.getName() + "YXJ" + number;
|
|
|
|
|
|
+ String serialNumber = parkInfo.getGroupName()+ parkFloorDisc.getName() + "-YXJ" + number;
|
|
return serialNumber;
|
|
return serialNumber;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 获取收据流水号(意向金编号)
|
|
|
|
|
|
+ * 获取收据流水号(定金编号)
|
|
* @param id
|
|
* @param id
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -263,6 +264,7 @@ public class IntentionalDepositService implements BaseService<IntentionalDeposit
|
|
* @param model
|
|
* @param model
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
|
|
+ @Transactional
|
|
public int toDeposit(IntentionalDeposit model) {
|
|
public int toDeposit(IntentionalDeposit model) {
|
|
|
|
|
|
String houseId = model.getHouseId();
|
|
String houseId = model.getHouseId();
|
|
@@ -326,6 +328,8 @@ public class IntentionalDepositService implements BaseService<IntentionalDeposit
|
|
ParkRoom parkRoom = new ParkRoom();
|
|
ParkRoom parkRoom = new ParkRoom();
|
|
parkRoom.setId(response.getId());
|
|
parkRoom.setId(response.getId());
|
|
parkRoom.setIsChoose(1);
|
|
parkRoom.setIsChoose(1);
|
|
|
|
+ // 已认购
|
|
|
|
+ parkRoom.setSoldStatus(2);
|
|
parkRoomMapper.updateByPrimaryKeySelective(parkRoom);
|
|
parkRoomMapper.updateByPrimaryKeySelective(parkRoom);
|
|
|
|
|
|
// 票据管理 新增一条记录
|
|
// 票据管理 新增一条记录
|